lumis.util.security.acl
Class Permissions
java.lang.Object
lumis.util.security.acl.Permissions
- All Implemented Interfaces:
- Cloneable
public class Permissions
- extends Object
- implements Cloneable
- Since:
- 4.0.0
Constructor Summary |
Permissions(int allowPermissions,
int allowPermissionsInheriting,
int denyPermissions,
int denyPermissionsInheriting)
|
Permissions
public Permissions(int allowPermissions,
int allowPermissionsInheriting,
int denyPermissions,
int denyPermissionsInheriting)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getAllowPermissions
public int getAllowPermissions()
getAllowPermissionsInheriting
public int getAllowPermissionsInheriting()
getDenyPermissions
public int getDenyPermissions()
getDenyPermissionsInheriting
public int getDenyPermissionsInheriting()
setImpliedPermissions
public void setImpliedPermissions(int[] permissionImplies)
inherit
public void inherit(Permissions inheritPermission,
HashMap<Integer,Integer> permissionsMapping)
inherit
public void inherit(Permissions inheritPermission)
removeInheriting
public void removeInheriting()
merge
public void merge(Permissions mergePermissions)
checkPermission
public boolean checkPermission(IPermission permission)
hasDenyPermission
public boolean hasDenyPermission(IPermission permission)
checkPermissionByPosition
public boolean checkPermissionByPosition(int position)
setAllowPermissions
public void setAllowPermissions(int allowPermissions)
- Parameters:
allowPermissions
- The allowPermissions to set.
setAllowPermissionsInheriting
public void setAllowPermissionsInheriting(int allowPermissionsInheriting)
- Parameters:
allowPermissionsInheriting
- The allowPermissionsInheriting to set.
setDenyPermissions
public void setDenyPermissions(int denyPermissions)
- Parameters:
denyPermissions
- The denyPermissions to set.
setDenyPermissionsInheriting
public void setDenyPermissionsInheriting(int denyPermissionsInheriting)
- Parameters:
denyPermissionsInheriting
- The denyPermissionsInheriting to set.
serialize
protected void serialize(Permissions permissions,
StringBuilder stringBuilder)
deserialize
protected void deserialize(Node permissionsNode)
throws PortalException
- Throws:
PortalException
getImplies
public static <T extends Enum<T>> int[] getImplies(Class<T> permissionsEnumClass)
throws PortalException
- Throws:
PortalException
getRequiredPermissions
public static <T extends IPermission> int getRequiredPermissions(Class<T> permissionsEnumClass)
throws PortalException
- Throws:
PortalException
getRecursiveImplies
public static <T extends Enum<T>> String getRecursiveImplies(Class<T> permissionsEnumClass,
IPermission permission)
clone
protected Permissions clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
Lumisportal 6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.