Class FolderClientImpl
- java.lang.Object
-
- com.lexmark.saperion.client.implementation.folder.FolderClientImpl
-
- All Implemented Interfaces:
FolderClient
public class FolderClientImpl extends java.lang.Object implements FolderClient
- Author:
- jschwarz
-
-
Constructor Summary
Constructors Constructor Description FolderClientImpl(com.lexmark.saperion.folder.FolderService folderService, com.lexmark.saperion.folder.FolderReferenceType reference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()This method deletes the specified folder.java.util.List<com.lexmark.saperion.administration.AclReferenceType>getACLs()This method returns the ACLs currently set on the folder.FolderDocumentSearchServiceClientgetDocuments()This method returns a search client for the collection of documents contained in the current folder.SearchClient<com.lexmark.saperion.folder.FolderListItemType>getSubFolders()This method returns a collection containing the sub folders of this folder.com.lexmark.saperion.folder.FolderListItemTypeload()This method returns the properties of the specified folder.voidmoveFolder(com.lexmark.saperion.folder.FolderReferenceType parent)This method moves a folder to another parent.SearchClient<com.lexmark.saperion.PropertyType>searchMultiValueField(java.lang.String fieldName)This method returns a search client for the content of the given multi value field of the given folder.voidupdate(com.lexmark.saperion.folder.UpdateFolderInputType properties)This method updates the properties of the given folder.voidupdate(java.util.Map<java.lang.String,com.lexmark.saperion.PropertyType> input)This method updates the properties of the given folder.
-
-
-
Method Detail
-
delete
public void delete() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:FolderClientThis method deletes the specified folder.- Specified by:
deletein interfaceFolderClient- Throws:
com.lexmark.saperion.exceptions.EcmException- indicates that a system exception occurred
-
load
public com.lexmark.saperion.folder.FolderListItemType load() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:FolderClientThis method returns the properties of the specified folder.- Specified by:
loadin interfaceFolderClient- Returns:
- the properties of the folder
- Throws:
com.lexmark.saperion.exceptions.EcmException- indicates that a system exception occurred
-
moveFolder
public void moveFolder(com.lexmark.saperion.folder.FolderReferenceType parent) throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:FolderClientThis method moves a folder to another parent. As in the creation of the folder the new parent must not have a child with the same name already.- Specified by:
moveFolderin interfaceFolderClient- Parameters:
parent- the new parent reference- Throws:
com.lexmark.saperion.exceptions.EcmException- indicates that a system exception occurred
-
update
public void update(java.util.Map<java.lang.String,com.lexmark.saperion.PropertyType> input) throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:FolderClientThis method updates the properties of the given folder.- Specified by:
updatein interfaceFolderClient- Parameters:
input- the new properties- Throws:
com.lexmark.saperion.exceptions.EcmException
-
update
public void update(com.lexmark.saperion.folder.UpdateFolderInputType properties) throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:FolderClientThis method updates the properties of the given folder.- Specified by:
updatein interfaceFolderClient- Parameters:
properties- the new properties- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getDocuments
public FolderDocumentSearchServiceClient getDocuments() throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:FolderClientThis method returns a search client for the collection of documents contained in the current folder.- Specified by:
getDocumentsin interfaceFolderClient- Returns:
- current folder's document collection
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getSubFolders
public SearchClient<com.lexmark.saperion.folder.FolderListItemType> getSubFolders() throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:FolderClientThis method returns a collection containing the sub folders of this folder.- Specified by:
getSubFoldersin interfaceFolderClient- Returns:
- a collection containing the sub folders of this folder
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
searchMultiValueField
public SearchClient<com.lexmark.saperion.PropertyType> searchMultiValueField(java.lang.String fieldName) throws com.lexmark.saperion.exceptions.EcmException
Description copied from interface:FolderClientThis method returns a search client for the content of the given multi value field of the given folder.- Specified by:
searchMultiValueFieldin interfaceFolderClient- Parameters:
fieldName- the name of the multi value field- Returns:
- a search client for the content of the given multi value field of the given folder
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
getACLs
public java.util.List<com.lexmark.saperion.administration.AclReferenceType> getACLs() throws com.lexmark.saperion.exceptions.EcmExceptionDescription copied from interface:FolderClientThis method returns the ACLs currently set on the folder.- Specified by:
getACLsin interfaceFolderClient- Returns:
- the ACLs currently set on the folder
- Throws:
com.lexmark.saperion.exceptions.EcmException- when loading the ACLs failed
-
-