Package com.composum.sling.nodes.mount
Interface ExtendedResolver
-
- All Known Implementing Classes:
RemoteResolver
public interface ExtendedResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable String
getResolverRootPath()
org.apache.sling.api.resource.Resource
move(@NotNull String srcAbsPath, @NotNull String destParentAbsPath, @Nullable String destChildName, @Nullable String order)
move with optional rename and orderingorg.apache.sling.api.resource.Resource
upload(@NotNull String absPath, @NotNull InputStream content, @Nullable String filename, @Nullable String mimeType, @Nullable String charset)
uploads the content of a file to update or create a file resource
-
-
-
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 movedestParentAbsPath
- the absolute path of the designated parent resourcedestChildName
- the designated name of the new resourceorder
- 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 updatecontent
- the new file contentfilename
- the name of the uploaded filemimeType
- the mime type of the content if knowncharset
- the charset of the content- Throws:
org.apache.sling.api.resource.PersistenceException
-
-