Class Context.Default

  • All Implemented Interfaces:
    TreeContext, Context
    Enclosing interface:
    Context

    public static class Context.Default
    extends java.lang.Object
    implements Context
    Default implementation of the Context interface that always returns false.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.security.Context

        Context.Default
    • Field Summary

      • Fields inherited from interface org.apache.jackrabbit.oak.spi.security.Context

        DEFAULT
    • Constructor Summary

      Constructors 
      Constructor Description
      Default()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean definesContextRoot​(@NotNull Tree tree)
      Reveals if the specified Tree is the root of a subtree defined by the module that exposes this instance.
      boolean definesInternal​(@NotNull Tree tree)
      Reveals if the specified Tree defines repository internal information, which is not hidden by default.
      boolean definesLocation​(@NotNull TreeLocation location)
      Reveals if the specified TreeLocation is defined by the module that exposes this instance.
      boolean definesProperty​(@NotNull Tree parent, @NotNull PropertyState property)
      Reveals if the specified PropertyState is defined by the module that exposes this instance.
      boolean definesTree​(@NotNull Tree tree)
      Reveals if the specified Tree is defined by the module that exposes this instance.
      • Methods inherited from class java.lang.Object

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

      • Default

        public Default()
    • Method Detail

      • definesProperty

        public boolean definesProperty​(@NotNull
                                       @NotNull Tree parent,
                                       @NotNull
                                       @NotNull PropertyState property)
        Description copied from interface: TreeContext
        Reveals if the specified PropertyState is defined by the module that exposes this instance.
        Specified by:
        definesProperty in interface TreeContext
        Parameters:
        parent - The parent tree of the property state.
        property - The PropertyState to be tested.
        Returns:
        true if the specified property state is related to or defined by the security module.
      • definesContextRoot

        public boolean definesContextRoot​(@NotNull
                                          @NotNull Tree tree)
        Description copied from interface: TreeContext
        Reveals if the specified Tree is the root of a subtree defined by the module that exposes this instance. Note, that in contrast to TreeContext.definesTree(Tree) this method will return false for any tree located in the subtree.
        Specified by:
        definesContextRoot in interface TreeContext
        Parameters:
        tree - The tree to be tested.
        Returns:
        true if the specified tree is the root of a subtree of items that are defined by the security module.
      • definesTree

        public boolean definesTree​(@NotNull
                                   @NotNull Tree tree)
        Description copied from interface: TreeContext
        Reveals if the specified Tree is defined by the module that exposes this instance.
        Specified by:
        definesTree in interface TreeContext
        Parameters:
        tree - The tree to be tested.
        Returns:
        true if the specified tree is related to or defined by the security module.
      • definesLocation

        public boolean definesLocation​(@NotNull
                                       @NotNull TreeLocation location)
        Description copied from interface: TreeContext
        Reveals if the specified TreeLocation is defined by the module that exposes this instance.
        Specified by:
        definesLocation in interface TreeContext
        Parameters:
        location - The tree location to be tested.
        Returns:
        true if the specified tree location is related to or defined by the security module.