|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.remote.RepoRemoteService
public class RepoRemoteService
Server side implementation of RepoRemote.
Constructor Summary | |
---|---|
RepoRemoteService()
Default constructor. |
Method Summary | |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
createDirectory(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String path)
Create a new directory. |
java.io.OutputStream |
createFile(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String path)
Create a file relative to a base node. |
java.util.Map |
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 |
lookup(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String path)
Lookup a node by path relative to a node. |
java.io.InputStream |
readFile(org.alfresco.service.cmr.repository.NodeRef fileRef)
Read a file directly. |
java.io.InputStream |
readFile(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.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,
java.lang.String path)
Remove a node via a relative path. |
void |
rename(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String src,
java.lang.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. |
java.io.OutputStream |
writeFile(org.alfresco.service.cmr.repository.NodeRef base,
java.lang.String path)
Write to an already existing file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepoRemoteService()
Method Detail |
---|
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, java.lang.String path)
RepoRemote
createDirectory
in interface RepoRemote
base
- The base node ref.path
- The relative path.
public java.io.OutputStream createFile(org.alfresco.service.cmr.repository.NodeRef base, java.lang.String path)
RepoRemote
createFile
in interface RepoRemote
base
- The base node ref.path
- The relative path.
public java.util.Map 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 lookup(org.alfresco.service.cmr.repository.NodeRef base, java.lang.String path)
RepoRemote
lookup
in interface RepoRemote
base
- The base node ref.path
- The relative path.
public java.io.InputStream readFile(org.alfresco.service.cmr.repository.NodeRef fileRef)
RepoRemote
readFile
in interface RepoRemote
fileRef
- The node ref of the file.
public java.io.InputStream readFile(org.alfresco.service.cmr.repository.NodeRef base, java.lang.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, java.lang.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, java.lang.String src, java.lang.String dst)
RepoRemote
rename
in interface RepoRemote
base
- The base node ref.src
- The relative source path.dst
- The relative target path.public java.io.OutputStream writeFile(org.alfresco.service.cmr.repository.NodeRef base, java.lang.String path)
RepoRemote
writeFile
in interface RepoRemote
base
- The base node ref.path
- The relative path.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |