public interface I_CmsRepositorySession
| 限定符和类型 | 方法和说明 |
|---|---|
void |
copy(java.lang.String src,
java.lang.String dest,
boolean overwrite)
Copies the item found at the source path to the destination path.
|
void |
create(java.lang.String path)
Creates a new item at the given path.
|
void |
delete(java.lang.String path)
Deletes the item at the given path.
|
boolean |
exists(java.lang.String path)
Returns if an item exists at the given path.
|
I_CmsRepositoryItem |
getItem(java.lang.String path)
Returns the item found at the given path.
|
CmsRepositoryLockInfo |
getLock(java.lang.String path)
Returns the lock for the resource at the given path.
|
java.util.List<I_CmsRepositoryItem> |
list(java.lang.String path)
Returns a list with all items found directly in the given path.
|
boolean |
lock(java.lang.String path,
CmsRepositoryLockInfo lock)
Creates a new lock on the item at the path with the given information
in the lock info.
|
void |
move(java.lang.String src,
java.lang.String dest,
boolean overwrite)
Moves an item from a source path to a destination path.
|
void |
save(java.lang.String path,
java.io.InputStream inputStream,
boolean overwrite)
Saves an item at the given path.
|
void |
unlock(java.lang.String path)
Unlocks the item found at the path.
|
void copy(java.lang.String src,
java.lang.String dest,
boolean overwrite)
throws CmsException
src - the path of the item which should be copieddest - the destination path where to copy tooverwrite - should any existing item be overwrittenCmsException - if something goes wrongvoid create(java.lang.String path)
throws CmsException
In this case this should be a collection (directory).
path - the complete path of the new collectionCmsException - if something goes wrongvoid delete(java.lang.String path)
throws CmsException
path - the complete path of the item to deleteCmsException - if something goes wrongboolean exists(java.lang.String path)
path - the complete path of the item to check existanceI_CmsRepositoryItem getItem(java.lang.String path) throws CmsException
path - the complete path of the item to returnCmsException - if something goes wrongCmsRepositoryLockInfo getLock(java.lang.String path)
path - the complete path where to return the lock forjava.util.List<I_CmsRepositoryItem> list(java.lang.String path) throws CmsException
path - the complete path from which to return the itemsI_CmsRepositoryItem found in the pathCmsException - if something goes wrongboolean lock(java.lang.String path,
CmsRepositoryLockInfo lock)
throws CmsException
path - the complete path of the itemlock - the information about the lock to createCmsException - if something goes wrongvoid move(java.lang.String src,
java.lang.String dest,
boolean overwrite)
throws CmsException
src - the complete path to the item which should be copieddest - the complete destination path where to copy tooverwrite - should any existing item should be overwrittenCmsException - if something goes wrongvoid save(java.lang.String path,
java.io.InputStream inputStream,
boolean overwrite)
throws CmsException,
java.io.IOException
This creates a new single item (file) if it does not exist.
path - the complete path of the new iteminputStream - the content of the itemoverwrite - should an existing item at the path be overwrittenCmsException - if something goes wrongjava.io.IOException - if a write error occursvoid unlock(java.lang.String path)
path - The complete path of the item to unlock