Class JcrAllUtil
java.lang.Object
org.apache.jackrabbit.oak.spi.security.privilege.JcrAllUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertyStateasPropertyState(@NotNull String name, @NotNull PrivilegeBits bits, @NotNull PrivilegeBitsProvider provider) Returns a new multi-valuedPropertyStateof typeType.LONGSwith the givennameand the long representation of the givenbitsas values.static booleandenotesDynamicJcrAll(@Nullable PropertyState property) static PrivilegeBitsgetPrivilegeBits(@Nullable PropertyState propertyState, @NotNull PrivilegeBitsProvider provider) Get or create an instance of privilege bits for the given property state.
-
Field Details
-
DYNAMIC_JCR_ALL_VALUE
public static final long DYNAMIC_JCR_ALL_VALUE- See Also:
-
-
Method Details
-
getPrivilegeBits
public static PrivilegeBits getPrivilegeBits(@Nullable @Nullable PropertyState propertyState, @NotNull @NotNull PrivilegeBitsProvider provider) Get or create an instance of privilege bits for the given property state. In contrast toPrivilegeBits.getInstance(PropertyState)this implementation will respect the special marker used to reflect the dynamic nature of thePrivilegeConstants.JCR_ALLprivilege.- Parameters:
propertyState- A property storing privilege bits asType.LONGSrepresentation or the dynamicmarkerforjcr:all.provider- An instanceofPrivilegeBitsProviderto compute the bits for thePrivilegeConstants.JCR_ALL, when the given property contains the dynamicmarkerforjcr:all.- Returns:
- an instance of
PrivilegeBits - See Also:
-
asPropertyState
public static PropertyState asPropertyState(@NotNull @NotNull String name, @NotNull @NotNull PrivilegeBits bits, @NotNull @NotNull PrivilegeBitsProvider provider) Returns a new multi-valuedPropertyStateof typeType.LONGSwith the givennameand the long representation of the givenbitsas values. If the bits present includejcr:allthe value will beDYNAMIC_JCR_ALL_VALUEinstead to mark the dynamic nature of thejcr:allprivilege. For any other bits this method is equivalent toPrivilegeBits.asPropertyState(String).- Parameters:
name- The name of the property to be created.bits- The privilege bits from which the values will be retrieved.provider- ThePrivilegeBitsProviderneeded to check if the given bits includejcr:all.- Returns:
- The property state equivalent to
PrivilegeBits.asPropertyState(String)or a state with thedynamic value markerin case the given bits representjcr:all.
-
denotesDynamicJcrAll
-