public static class PermissionRule.ApplyStructure extends PermissionRule
StructurePermissionRule.ApplyStructure, PermissionRule.SetLevel| Constructor and Description |
|---|
ApplyStructure() |
ApplyStructure(Long structureId) |
| Modifier and Type | Method and Description |
|---|---|
PermissionLevel |
apply(ApplicationUser user,
PermissionLevel pass,
List<Object> callStack,
La<Long,List<PermissionRule>> resolver)
Apply permission rule and return the result.
|
boolean |
equals(Object o) |
Long |
getStructureId() |
int |
hashCode() |
void |
setStructureId(Long structureId) |
String |
toEncodedString() |
clone, decodePermissions, encodePermissions, fromEncodedString, fromEncodedString, toStringpublic ApplyStructure()
public ApplyStructure(Long structureId)
public Long getStructureId()
public void setStructureId(Long structureId)
public String toEncodedString()
toEncodedString in class PermissionRulePermissionRule.fromEncodedString(java.lang.String)@NotNull public PermissionLevel apply(ApplicationUser user, @NotNull PermissionLevel pass, List<Object> callStack, La<Long,List<PermissionRule>> resolver)
PermissionRuleApply permission rule and return the result.
Normally you should not call this method directly - call
Structure.getEffectivePermission() instead.
apply in class PermissionRuleuser - the user, null means anonymouspass - the default value, which is returned in case this rule does not applycallStack - auxiliary container for objects used to check for recursive rulesresolver - auxiliary function that converts structure ID into associated list of permission rules - used by PermissionRule.ApplyStructure. If null, PermissionRule.ApplyStructure will not be able to apply and return pass value.Copyright © 2021 ALM Works. All Rights Reserved.