Class JcrAllUtil


  • public final class JcrAllUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.jackrabbit.oak.api.PropertyState asPropertyState​(@NotNull java.lang.String name, @NotNull PrivilegeBits bits, @NotNull PrivilegeBitsProvider provider)
      Returns a new multi-valued PropertyState of type Type.LONGS with the given name and the long representation of the given bits as values.
      static boolean denotesDynamicJcrAll​(@Nullable org.apache.jackrabbit.oak.api.PropertyState property)  
      static PrivilegeBits getPrivilegeBits​(@Nullable org.apache.jackrabbit.oak.api.PropertyState propertyState, @NotNull PrivilegeBitsProvider provider)
      Get or create an instance of privilege bits for the given property state.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Method Detail

      • asPropertyState

        public static org.apache.jackrabbit.oak.api.PropertyState asPropertyState​(@NotNull
                                                                                  @NotNull java.lang.String name,
                                                                                  @NotNull
                                                                                  @NotNull PrivilegeBits bits,
                                                                                  @NotNull
                                                                                  @NotNull PrivilegeBitsProvider provider)
        Returns a new multi-valued PropertyState of type Type.LONGS with the given name and the long representation of the given bits as values. If the bits present include jcr:all the value will be DYNAMIC_JCR_ALL_VALUE instead to mark the dynamic nature of the jcr:all privilege. For any other bits this method is equivalent to PrivilegeBits.asPropertyState(String).
        Parameters:
        name - The name of the property to be created.
        bits - The privilege bits from which the values will be retrieved.
        provider - The PrivilegeBitsProvider needed to check if the given bits include jcr:all.
        Returns:
        The property state equivalent to PrivilegeBits.asPropertyState(String) or a state with the dynamic value marker in case the given bits represent jcr:all.
      • denotesDynamicJcrAll

        public static boolean denotesDynamicJcrAll​(@Nullable
                                                   @Nullable org.apache.jackrabbit.oak.api.PropertyState property)