Class LocalRestriction


  • public class LocalRestriction
    extends Object
    Use to holds details of a restriction
    • Constructor Detail

      • LocalRestriction

        public LocalRestriction​(@NotNull
                                @NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinition rd,
                                @Nullable
                                @Nullable javax.jcr.Value value)
      • LocalRestriction

        public LocalRestriction​(@NotNull
                                @NotNull org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionDefinition rd,
                                @Nullable
                                @Nullable javax.jcr.Value[] values)
    • Method Detail

      • getName

        public String getName()
      • isMultiValue

        public boolean isMultiValue()
      • getValue

        public javax.jcr.Value getValue()
      • getValues

        public javax.jcr.Value[] getValues()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • cloneWithNewValues

        @NotNull
        public static @NotNull LocalRestriction cloneWithNewValues​(@NotNull
                                                                   @NotNull LocalRestriction lr,
                                                                   @NotNull
                                                                   @NotNull javax.jcr.Value[] newValues)
        Clone from an existing object and then assign the new values