org.apache.jetspeed.security
Class FragmentPermission
java.lang.Object
java.security.Permission
org.apache.jetspeed.security.PortalResourcePermission
org.apache.jetspeed.security.FragmentPermission
- All Implemented Interfaces:
- Serializable, Guard
public class FragmentPermission
- extends PortalResourcePermission
Fragment permission.
This code was partially inspired from articles from:
This class represents access to a fragment within a
content document. A FragmentPermission consists
of a path, fragment name, or a simple fragment name
pattern and a set of actions valid for that pathname.
Here are some examples of valid fragment permissions names:
"/folder/page.psml/app::portlet" matches fragments
within a page for a specified portlet contained in a app
"security::*" matches fragments for portlets from the security app
"<<ALL FRAGMENTS>>" matches any fragment
- Author:
- Randy Watler
- See Also:
- Serialized Form
FragmentPermission
public FragmentPermission(String name,
String actions)
Constructor for FragmentPermission.
- Parameters:
name
- The fragment name.actions
- The actions on the fragment.
FragmentPermission
public FragmentPermission(String name,
int mask)
Constructor for FragmentPermission.
- Parameters:
name
- The fragment name.mask
- The mask of actions on the fragment.
implies
public boolean implies(Permission permission)
- Overrides:
implies
in class PortalResourcePermission
equals
public boolean equals(Object object)
- Specified by:
equals
in class Permission
- See Also:
Permission.equals(Object)
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.