org.apache.chemistry.opencmis.workbench.model
Class ClientModel
java.lang.Object
org.apache.chemistry.opencmis.workbench.model.ClientModel
public class ClientModel
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientModel
public ClientModel()
addFolderListener
public void addFolderListener(FolderListener listener)
removeFolderListener
public void removeFolderListener(FolderListener listener)
addObjectListener
public void addObjectListener(ObjectListener listener)
removeObjectListener
public void removeObjectListener(ObjectListener listener)
setClientSession
public void setClientSession(ClientSession clientSession)
getClientSession
public ClientSession getClientSession()
getRepositoryInfo
public RepositoryInfo getRepositoryInfo()
throws java.lang.Exception
- Throws:
java.lang.Exception
getRepositoryName
public java.lang.String getRepositoryName()
supportsQuery
public boolean supportsQuery()
supportsChangeLog
public boolean supportsChangeLog()
loadFolder
public void loadFolder(java.lang.String folderId,
boolean byPath)
throws java.lang.Exception
- Throws:
java.lang.Exception
reloadFolder
public void reloadFolder()
throws java.lang.Exception
- Throws:
java.lang.Exception
loadObject
public void loadObject(java.lang.String objectId)
throws java.lang.Exception
- Throws:
java.lang.Exception
reloadObject
public void reloadObject()
throws java.lang.Exception
- Throws:
java.lang.Exception
query
public ItemIterable<QueryResult> query(java.lang.String q,
boolean searchAllVersions,
int maxHits)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTypeDescendants
public java.util.List<Tree<ObjectType>> getTypeDescendants()
throws java.lang.Exception
- Throws:
java.lang.Exception
createContentStream
public ContentStream createContentStream(java.lang.String filename)
throws java.lang.Exception
- Throws:
java.lang.Exception
createDocument
public void createDocument(java.lang.String name,
java.lang.String type,
java.lang.String filename,
VersioningState versioningState)
throws java.lang.Exception
- Throws:
java.lang.Exception
createFolder
public void createFolder(java.lang.String name,
java.lang.String type)
throws java.lang.Exception
- Throws:
java.lang.Exception
getCreateableTypes
public java.util.List<ObjectType> getCreateableTypes(java.lang.String rootTypeId)
getCurrentFolder
public Folder getCurrentFolder()
getCurrentChildren
public java.util.List<CmisObject> getCurrentChildren()
getFromCurrentChildren
public CmisObject getFromCurrentChildren(java.lang.String id)
getCurrentObject
public CmisObject getCurrentObject()
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.