org.apache.chemistry.opencmis.workbench.model
Class ClientModel

java.lang.Object
  extended by org.apache.chemistry.opencmis.workbench.model.ClientModel

public class ClientModel
extends Object


Constructor Summary
ClientModel()
           
 
Method Summary
 void addFolderListener(FolderListener listener)
           
 void addObjectListener(ObjectListener listener)
           
 ContentStream createContentStream(String filename)
           
 void createDocument(String name, String type, String filename, VersioningState versioningState)
           
 void createFolder(String name, String type)
           
 ClientSession getClientSession()
           
 List<ObjectType> getCreateableTypes(String rootTypeId)
           
 List<CmisObject> getCurrentChildren()
           
 Folder getCurrentFolder()
           
 CmisObject getCurrentObject()
           
 CmisObject getFromCurrentChildren(String id)
           
 RepositoryInfo getRepositoryInfo()
           
 String getRepositoryName()
           
 List<Tree<ObjectType>> getTypeDescendants()
           
 void loadFolder(String folderId, boolean byPath)
           
 void loadObject(String objectId)
           
 ItemIterable<QueryResult> query(String q, boolean searchAllVersions, int maxHits)
           
 void reloadFolder()
           
 void reloadObject()
           
 void removeFolderListener(FolderListener listener)
           
 void removeObjectListener(ObjectListener listener)
           
 void setClientSession(ClientSession clientSession)
           
 boolean supportsChangeLog()
           
 boolean supportsQuery()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientModel

public ClientModel()
Method Detail

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 Exception
Throws:
Exception

getRepositoryName

public String getRepositoryName()

supportsQuery

public boolean supportsQuery()

supportsChangeLog

public boolean supportsChangeLog()

loadFolder

public void loadFolder(String folderId,
                       boolean byPath)
                throws Exception
Throws:
Exception

reloadFolder

public void reloadFolder()
                  throws Exception
Throws:
Exception

loadObject

public void loadObject(String objectId)
                throws Exception
Throws:
Exception

reloadObject

public void reloadObject()
                  throws Exception
Throws:
Exception

query

public ItemIterable<QueryResult> query(String q,
                                       boolean searchAllVersions,
                                       int maxHits)
                                throws Exception
Throws:
Exception

getTypeDescendants

public List<Tree<ObjectType>> getTypeDescendants()
                                          throws Exception
Throws:
Exception

createContentStream

public ContentStream createContentStream(String filename)
                                  throws Exception
Throws:
Exception

createDocument

public void createDocument(String name,
                           String type,
                           String filename,
                           VersioningState versioningState)
                    throws Exception
Throws:
Exception

createFolder

public void createFolder(String name,
                         String type)
                  throws Exception
Throws:
Exception

getCreateableTypes

public List<ObjectType> getCreateableTypes(String rootTypeId)

getCurrentFolder

public Folder getCurrentFolder()

getCurrentChildren

public List<CmisObject> getCurrentChildren()

getFromCurrentChildren

public CmisObject getFromCurrentChildren(String id)

getCurrentObject

public CmisObject getCurrentObject()


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.