Class PermissionRule.ApplyStructure
Object
PermissionRule
ApplyStructure
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- PermissionRule
This rules applies a list of rules taken from a Structure, identified by the structure ID.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class PermissionRule
PermissionRule.ApplyStructure, PermissionRule.SetLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ApplicationUser user, PermissionLevel pass, List<Object> callStack, La<Long, List<PermissionRule>> resolver) Apply permission rule and return the result.booleaninthashCode()voidsetStructureId(Long structureId) Methods inherited from class PermissionRule
clone, decodePermissions, encodePermissions, fromEncodedString, fromEncodedString, toString
-
Constructor Details
-
ApplyStructure
public ApplyStructure() -
ApplyStructure
-
-
Method Details
-
getStructureId
-
setStructureId
-
toEncodedString
- Specified by:
toEncodedStringin classPermissionRule- Returns:
- a string representation of this permission rule
- See Also:
-
apply
@NotNull public PermissionLevel apply(ApplicationUser user, @NotNull PermissionLevel pass, List<Object> callStack, La<Long, List<PermissionRule>> resolver) Description copied from class:PermissionRuleApply permission rule and return the result.
Normally you should not call this method directly - call
Structure.getEffectivePermission()instead.- Specified by:
applyin classPermissionRule- Parameters:
user- 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 byPermissionRule.ApplyStructure. If null,PermissionRule.ApplyStructurewill not be able to apply and return pass value.- Returns:
- permission level for the passed user
-
equals
-
hashCode
public int hashCode()
-