Class ResolvePathHandler.Builder

  • Enclosing class:
    ResolvePathHandler

    public static class ResolvePathHandler.Builder
    extends Object
    Build an operation to resolve the
    • Method Detail

      • of

        public static ResolvePathHandler.Builder of​(PathManager pathManager)
        Creates a builder with the default operation name of resolve-path.
        Parameters:
        pathManager - the path manager used to resolve the path
        Returns:
        the operation handler builder
      • of

        @Deprecated
        public static ResolvePathHandler.Builder of​(String operationName,
                                                    PathManager pathManager)
        Deprecated.
        Creates a builder with the default operation name of defined in the operationName parameter.

        While this seems odd to add a deprecated method from the start, the transaction extension requires a separate operation as there are two relative paths. Other extensions should not use this method and if the transaction subsystem changes to use a proper resource for the object-store, this method should be removed.

        Parameters:
        operationName - the name of the operation to register
        pathManager - the path manager used to resolve the path
        Returns:
        the operation handler builder
      • build

        public ResolvePathHandler build()
        Builds the resolve path handler.
        Returns:
        the operation step handler
      • setParentAttribute

        public ResolvePathHandler.Builder setParentAttribute​(AttributeDefinition parentAttribute)
        Sets the parent attribute that the relative-to and path attributes are children of. A value of null indicates they are a direct decedent of the resource.
        Parameters:
        parentAttribute - the parent attribute
        Returns:
        the builder
      • setCheckAbsolutePath

        public ResolvePathHandler.Builder setCheckAbsolutePath​(boolean checkAbsolutePath)
        Sets whether the path is absolute and should ignore the relative-to value.
        Parameters:
        checkAbsolutePath - {code true} if an absolute path should ignore the relative-to value
        Returns:
        the builder