Class Context.Default

java.lang.Object
org.apache.jackrabbit.oak.spi.security.Context.Default
All Implemented Interfaces:
TreeContext, Context
Enclosing interface:
Context

public static class Context.Default extends 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    definesContextRoot(@NotNull org.apache.jackrabbit.oak.api.Tree tree)
    Reveals if the specified Tree is the root of a subtree defined by the module that exposes this instance.
    boolean
    definesInternal(@NotNull org.apache.jackrabbit.oak.api.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 org.apache.jackrabbit.oak.api.Tree parent, @NotNull org.apache.jackrabbit.oak.api.PropertyState property)
    Reveals if the specified PropertyState is defined by the module that exposes this instance.
    boolean
    definesTree(@NotNull org.apache.jackrabbit.oak.api.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 Details

    • Default

      public Default()
  • Method Details

    • definesProperty

      public boolean definesProperty(@NotNull @NotNull org.apache.jackrabbit.oak.api.Tree parent, @NotNull @NotNull org.apache.jackrabbit.oak.api.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 org.apache.jackrabbit.oak.api.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 org.apache.jackrabbit.oak.api.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.
    • definesInternal

      public boolean definesInternal(@NotNull @NotNull org.apache.jackrabbit.oak.api.Tree tree)
      Description copied from interface: TreeContext
      Reveals if the specified Tree defines repository internal information, which is not hidden by default.
      Specified by:
      definesInternal in interface TreeContext
      Parameters:
      tree - The tree to be tested.
      Returns:
      true if the specified tree defines repository internal information.
      See Also:
      • NodeStateUtils.isHidden(String)
      • NodeStateUtils.isHiddenPath(String)