Interface ExtendedResolver

  • All Known Implementing Classes:
    RemoteResolver

    public interface ExtendedResolver
    • Method Detail

      • getResolverRootPath

        @Nullable
        @Nullable String getResolverRootPath()
        Returns:
        the local root path of the resolver (mount point) if useful
      • move

        org.apache.sling.api.resource.Resource move​(@NotNull
                                                    @NotNull String srcAbsPath,
                                                    @NotNull
                                                    @NotNull String destParentAbsPath,
                                                    @Nullable
                                                    @Nullable String destChildName,
                                                    @Nullable
                                                    @Nullable String order)
                                             throws org.apache.sling.api.resource.PersistenceException
        move with optional rename and ordering
        Parameters:
        srcAbsPath - the absolute path of th resource to move
        destParentAbsPath - the absolute path of the designated parent resource
        destChildName - the designated name of the new resource
        order - an ordering rule as described for the SlingPostServlet
        Throws:
        org.apache.sling.api.resource.PersistenceException
      • upload

        org.apache.sling.api.resource.Resource upload​(@NotNull
                                                      @NotNull String absPath,
                                                      @NotNull
                                                      @NotNull InputStream content,
                                                      @Nullable
                                                      @Nullable String filename,
                                                      @Nullable
                                                      @Nullable String mimeType,
                                                      @Nullable
                                                      @Nullable String charset)
                                               throws org.apache.sling.api.resource.PersistenceException
        uploads the content of a file to update or create a file resource
        Parameters:
        absPath - the absolute path oof the file resource to update
        content - the new file content
        filename - the name of the uploaded file
        mimeType - the mime type of the content if known
        charset - the charset of the content
        Throws:
        org.apache.sling.api.resource.PersistenceException