public class RepoRemoteService extends Object implements RepoRemote
Constructor and Description |
---|
RepoRemoteService()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
createDirectory(org.alfresco.service.cmr.repository.NodeRef base,
String path)
Create a new directory.
|
OutputStream |
createFile(org.alfresco.service.cmr.repository.NodeRef base,
String path)
Create a file relative to a base node.
|
Map<String,org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,Boolean>> |
getListing(org.alfresco.service.cmr.repository.NodeRef dir)
Get a listing of a directory.
|
org.alfresco.service.cmr.repository.NodeRef |
getRoot()
Get the root node of the SpacesStore repo.
|
org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,Boolean> |
lookup(org.alfresco.service.cmr.repository.NodeRef base,
String path)
Lookup a node by path relative to a node.
|
InputStream |
readFile(org.alfresco.service.cmr.repository.NodeRef fileRef)
Read a file directly.
|
InputStream |
readFile(org.alfresco.service.cmr.repository.NodeRef base,
String path)
Read a file from a relative path.
|
void |
removeNode(org.alfresco.service.cmr.repository.NodeRef toRemove)
Remove a node directly.
|
void |
removeNode(org.alfresco.service.cmr.repository.NodeRef base,
String path)
Remove a node via a relative path.
|
void |
rename(org.alfresco.service.cmr.repository.NodeRef base,
String src,
String dst)
Rename a node
|
void |
setContentService(ContentService service)
Set the ContentService instance.
|
void |
setFileFolderService(FileFolderService service)
Set the FileFolderService instance.
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService service)
Set the NodeService instance.
|
OutputStream |
writeFile(org.alfresco.service.cmr.repository.NodeRef base,
String path)
Write to an already existing file.
|
public void setNodeService(org.alfresco.service.cmr.repository.NodeService service)
public void setContentService(ContentService service)
public void setFileFolderService(FileFolderService service)
public org.alfresco.service.cmr.repository.NodeRef createDirectory(org.alfresco.service.cmr.repository.NodeRef base, String path)
RepoRemote
createDirectory
in interface RepoRemote
base
- The base node ref.path
- The relative path.public OutputStream createFile(org.alfresco.service.cmr.repository.NodeRef base, String path)
RepoRemote
createFile
in interface RepoRemote
base
- The base node ref.path
- The relative path.public Map<String,org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,Boolean>> getListing(org.alfresco.service.cmr.repository.NodeRef dir)
RepoRemote
getListing
in interface RepoRemote
dir
- The node ref of the directory.public org.alfresco.service.cmr.repository.NodeRef getRoot()
RepoRemote
getRoot
in interface RepoRemote
public org.alfresco.util.Pair<org.alfresco.service.cmr.repository.NodeRef,Boolean> lookup(org.alfresco.service.cmr.repository.NodeRef base, String path)
RepoRemote
lookup
in interface RepoRemote
base
- The base node ref.path
- The relative path.public InputStream readFile(org.alfresco.service.cmr.repository.NodeRef fileRef)
RepoRemote
readFile
in interface RepoRemote
fileRef
- The node ref of the file.public InputStream readFile(org.alfresco.service.cmr.repository.NodeRef base, String path)
RepoRemote
readFile
in interface RepoRemote
base
- The base node ref.path
- The relative path to the file.public void removeNode(org.alfresco.service.cmr.repository.NodeRef toRemove)
RepoRemote
removeNode
in interface RepoRemote
toRemove
- The node ref to remove.public void removeNode(org.alfresco.service.cmr.repository.NodeRef base, String path)
RepoRemote
removeNode
in interface RepoRemote
base
- The base node ref.path
- The relative path.public void rename(org.alfresco.service.cmr.repository.NodeRef base, String src, String dst)
RepoRemote
rename
in interface RepoRemote
base
- The base node ref.src
- The relative source path.dst
- The relative target path.public OutputStream writeFile(org.alfresco.service.cmr.repository.NodeRef base, String path)
RepoRemote
writeFile
in interface RepoRemote
base
- The base node ref.path
- The relative path.Copyright © 2005–2017 Alfresco Software. All rights reserved.