Constructor and Description |
---|
Permissions(int allowPermissions,
int allowPermissionsInheriting,
int denyPermissions,
int denyPermissionsInheriting) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPermission(IPermission permission) |
boolean |
checkPermissionByPosition(int position) |
protected Permissions |
clone() |
protected void |
deserialize(Node permissionsNode) |
boolean |
equals(Object obj) |
int |
getAllowPermissions() |
int |
getAllowPermissionsInheriting() |
int |
getDenyPermissions() |
int |
getDenyPermissionsInheriting() |
static <T extends Enum<T>> |
getImplies(Class<T> permissionsEnumClass) |
static <T extends Enum<T>> |
getRecursiveImplies(Class<T> permissionsEnumClass,
IPermission permission) |
static <T extends IPermission> |
getRequiredPermissions(Class<T> permissionsEnumClass) |
boolean |
hasDenyPermission(IPermission permission) |
int |
hashCode() |
void |
inherit(Permissions inheritPermission) |
void |
inherit(Permissions inheritPermission,
HashMap<Integer,Integer> permissionsMapping) |
void |
merge(Permissions mergePermissions) |
void |
removeInheriting() |
protected void |
serialize(Permissions permissions,
StringBuilder stringBuilder) |
void |
setAllowPermissions(int allowPermissions) |
void |
setAllowPermissionsInheriting(int allowPermissionsInheriting) |
void |
setDenyPermissions(int denyPermissions) |
void |
setDenyPermissionsInheriting(int denyPermissionsInheriting) |
void |
setImpliedPermissions(int[] permissionImplies) |
public Permissions(int allowPermissions, int allowPermissionsInheriting, int denyPermissions, int denyPermissionsInheriting)
public int getAllowPermissions()
public int getAllowPermissionsInheriting()
public int getDenyPermissions()
public int getDenyPermissionsInheriting()
public void setImpliedPermissions(int[] permissionImplies)
public void inherit(Permissions inheritPermission, HashMap<Integer,Integer> permissionsMapping)
public void inherit(Permissions inheritPermission)
public void removeInheriting()
public void merge(Permissions mergePermissions)
public boolean checkPermission(IPermission permission)
public boolean hasDenyPermission(IPermission permission)
public boolean checkPermissionByPosition(int position)
public void setAllowPermissions(int allowPermissions)
allowPermissions
- The allowPermissions to set.public void setAllowPermissionsInheriting(int allowPermissionsInheriting)
allowPermissionsInheriting
- The allowPermissionsInheriting to set.public void setDenyPermissions(int denyPermissions)
denyPermissions
- The denyPermissions to set.public void setDenyPermissionsInheriting(int denyPermissionsInheriting)
denyPermissionsInheriting
- The denyPermissionsInheriting to set.protected void serialize(Permissions permissions, StringBuilder stringBuilder)
protected void deserialize(Node permissionsNode) throws PortalException
PortalException
public static <T extends Enum<T>> int[] getImplies(Class<T> permissionsEnumClass) throws PortalException
PortalException
public static <T extends IPermission> int getRequiredPermissions(Class<T> permissionsEnumClass) throws PortalException
PortalException
public static <T extends Enum<T>> String getRecursiveImplies(Class<T> permissionsEnumClass, IPermission permission)
protected Permissions clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.