Class JcrAllUtil
- java.lang.Object
 - 
- org.apache.jackrabbit.oak.spi.security.privilege.JcrAllUtil
 
 
- 
public final class JcrAllUtil extends java.lang.Object 
- 
- 
Field Summary
Fields Modifier and Type Field Description static longDYNAMIC_JCR_ALL_VALUE 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyStateasPropertyState(@NotNull java.lang.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 Detail
- 
DYNAMIC_JCR_ALL_VALUE
public static final long DYNAMIC_JCR_ALL_VALUE
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
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(String, PrivilegeBits, PrivilegeBitsProvider)
 
- 
asPropertyState
public static PropertyState asPropertyState(@NotNull @NotNull java.lang.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
public static boolean denotesDynamicJcrAll(@Nullable @Nullable PropertyState property) 
 - 
 
 -