Class ImmutablePrivilegeDefinition
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.privilege.ImmutablePrivilegeDefinition
-
- All Implemented Interfaces:
PrivilegeDefinition
public final class ImmutablePrivilegeDefinition extends Object implements PrivilegeDefinition
Default implementation of thePrivilegeDefinitioninterface.
-
-
Constructor Summary
Constructors Constructor Description ImmutablePrivilegeDefinition(@NotNull String name, boolean isAbstract, @Nullable Iterable<String> declaredAggregateNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)@NotNull Set<String>getDeclaredAggregateNames()Returns the internal names of the declared aggregated privileges or an empty array if the privilege defined by this definition isn't an aggregate.@NotNull StringgetName()The internal name of this privilege.inthashCode()booleanisAbstract()Returnstrueif the privilege described by this definition is abstract.StringtoString()
-
-
-
Method Detail
-
getName
@NotNull public @NotNull String getName()
Description copied from interface:PrivilegeDefinitionThe internal name of this privilege.- Specified by:
getNamein interfacePrivilegeDefinition- Returns:
- the internal name.
-
isAbstract
public boolean isAbstract()
Description copied from interface:PrivilegeDefinitionReturnstrueif the privilege described by this definition is abstract.- Specified by:
isAbstractin interfacePrivilegeDefinition- Returns:
trueif the resulting privilege is abstract;falseotherwise.
-
getDeclaredAggregateNames
@NotNull public @NotNull Set<String> getDeclaredAggregateNames()
Description copied from interface:PrivilegeDefinitionReturns the internal names of the declared aggregated privileges or an empty array if the privilege defined by this definition isn't an aggregate.- Specified by:
getDeclaredAggregateNamesin interfacePrivilegeDefinition- Returns:
- The internal names of the aggregated privileges or an empty array.
-
-