public static class PermissionRule.ApplyStructure extends PermissionRule
Structure
PermissionRule.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, toString
public ApplyStructure()
public ApplyStructure(Long structureId)
public Long getStructureId()
public void setStructureId(Long structureId)
public String toEncodedString()
toEncodedString
in class PermissionRule
PermissionRule.fromEncodedString(java.lang.String)
@NotNull public PermissionLevel apply(ApplicationUser user, @NotNull PermissionLevel pass, List<Object> callStack, La<Long,List<PermissionRule>> resolver)
PermissionRule
Apply permission rule and return the result.
Normally you should not call this method directly - call
Structure.getEffectivePermission()
instead.
apply
in class PermissionRule
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 by PermissionRule.ApplyStructure
. If null, PermissionRule.ApplyStructure
will not be able to apply and return pass value.Copyright © 2024 Tempo Software. All Rights Reserved.