Package org.alfresco.repo.remote
Class RepoRemoteService
java.lang.Object
org.alfresco.repo.remote.RepoRemoteService
- All Implemented Interfaces:
RepoRemote
Server side implementation of RepoRemote.
- Author:
- britt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDirectory(NodeRef base, String path) Create a new directory.createFile(NodeRef base, String path) Create a file relative to a base node.getListing(NodeRef dir) Get a listing of a directory.getRoot()Get the root node of the SpacesStore repo.Lookup a node by path relative to a node.Read a file directly.Read a file from a relative path.voidremoveNode(NodeRef toRemove) Remove a node directly.voidremoveNode(NodeRef base, String path) Remove a node via a relative path.voidRename a nodevoidsetContentService(ContentService service) Set the ContentService instance.voidsetFileFolderService(FileFolderService service) Set the FileFolderService instance.voidsetNodeService(NodeService service) Set the NodeService instance.Write to an already existing file.
-
Constructor Details
-
RepoRemoteService
public RepoRemoteService()Default constructor.
-
-
Method Details
-
setNodeService
Set the NodeService instance. -
setContentService
Set the ContentService instance. -
setFileFolderService
Set the FileFolderService instance. -
createDirectory
Description copied from interface:RepoRemoteCreate a new directory.- Specified by:
createDirectoryin interfaceRepoRemote- Parameters:
base- The base node ref.path- The relative path.- Returns:
- The node ref to the newly created directory.
-
createFile
Description copied from interface:RepoRemoteCreate a file relative to a base node.- Specified by:
createFilein interfaceRepoRemote- Parameters:
base- The base node ref.path- The relative path.- Returns:
- An OutputStream.
-
getListing
Description copied from interface:RepoRemoteGet a listing of a directory.- Specified by:
getListingin interfaceRepoRemote- Parameters:
dir- The node ref of the directory.- Returns:
- A Map of names to node refs.
-
getRoot
Description copied from interface:RepoRemoteGet the root node of the SpacesStore repo.- Specified by:
getRootin interfaceRepoRemote- Returns:
- The root node ref.
-
lookup
Description copied from interface:RepoRemoteLookup a node by path relative to a node.- Specified by:
lookupin interfaceRepoRemote- Parameters:
base- The base node ref.path- The relative path.- Returns:
- The node ref or null.
-
readFile
Description copied from interface:RepoRemoteRead a file directly.- Specified by:
readFilein interfaceRepoRemote- Parameters:
fileRef- The node ref of the file.- Returns:
- An InputStream.
-
readFile
Description copied from interface:RepoRemoteRead a file from a relative path.- Specified by:
readFilein interfaceRepoRemote- Parameters:
base- The base node ref.path- The relative path to the file.- Returns:
- An InputStream.
-
removeNode
Description copied from interface:RepoRemoteRemove a node directly.- Specified by:
removeNodein interfaceRepoRemote- Parameters:
toRemove- The node ref to remove.
-
removeNode
Description copied from interface:RepoRemoteRemove a node via a relative path.- Specified by:
removeNodein interfaceRepoRemote- Parameters:
base- The base node ref.path- The relative path.
-
rename
Description copied from interface:RepoRemoteRename a node- Specified by:
renamein interfaceRepoRemote- Parameters:
base- The base node ref.src- The relative source path.dst- The relative target path.
-
writeFile
Description copied from interface:RepoRemoteWrite to an already existing file.- Specified by:
writeFilein interfaceRepoRemote- Parameters:
base- The base node ref.path- The relative path.- Returns:
- An OutputStream
-