|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission org.apache.portals.graffito.model.permission.impl.CmsPermissionImpl
public class CmsPermissionImpl
CMS Permissions
Field Summary | |
---|---|
protected int |
mask
Mask used for determining what action to perform |
protected java.util.Collection |
principalFullPaths
The full path associated to the principals |
Fields inherited from interface org.apache.portals.graffito.model.permission.CmsPermission |
---|
ALL, DELETE, EDIT, INSERT, LOCK, UNLOCK, UPDATE, VIEW |
Constructor Summary | |
---|---|
CmsPermissionImpl(java.lang.String name,
java.lang.String actions)
Constructor |
|
CmsPermissionImpl(java.lang.String name,
java.lang.String actions,
java.util.Collection principalFullPaths)
Constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getActions()
|
java.util.Collection |
getPrincipalFullPaths()
Get the principal full paths associated to this permission |
int |
hashCode()
|
boolean |
implies(java.security.Permission p)
Checks if this FolderPermission object "implies" the specified permission. |
boolean |
isApplyToChildren()
|
boolean |
isRecursive()
|
protected void |
parseActions(java.lang.String actions)
|
Methods inherited from class java.security.Permission |
---|
checkGuard, getName, newPermissionCollection, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.portals.graffito.model.permission.CmsPermission |
---|
getName |
Field Detail |
---|
protected java.util.Collection principalFullPaths
protected int mask
Constructor Detail |
---|
public CmsPermissionImpl(java.lang.String name, java.lang.String actions)
name
- The uri name (eg. /mypath/mydoc.doc)actions
- The actions allowed for this namepublic CmsPermissionImpl(java.lang.String name, java.lang.String actions, java.util.Collection principalFullPaths)
name
- The uri name (eg. /mypath/mydoc.doc)actions
- The actions allowed for this nameprincipalFullPaths
- The principals full path associated to this permissionMethod Detail |
---|
protected void parseActions(java.lang.String actions)
public java.util.Collection getPrincipalFullPaths()
getPrincipalFullPaths
in interface org.apache.portals.graffito.model.permission.CmsPermission
public boolean isApplyToChildren()
isApplyToChildren
in interface org.apache.portals.graffito.model.permission.CmsPermission
CmsPermission.isApplyToChildren()
public boolean isRecursive()
isRecursive
in interface org.apache.portals.graffito.model.permission.CmsPermission
CmsPermission.isRecursive()
public java.lang.String getActions()
getActions
in interface org.apache.portals.graffito.model.permission.CmsPermission
getActions
in class java.security.Permission
Permission.getActions()
public boolean implies(java.security.Permission p)
More specifically, this method returns true if:
implies
in class java.security.Permission
p
- the permission to check against.
public boolean equals(java.lang.Object obj)
equals
in class java.security.Permission
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.security.Permission
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |