org.xcmis.client.gwt.service.object
Class ObjectService

java.lang.Object
  extended by org.xcmis.client.gwt.service.object.ObjectService

public class ObjectService
extends Object

Created by The eXo Platform SAS.

Version:
$Id: ${date} ${time}
Author:
Ann Zhuleva

Constructor Summary
ObjectService(com.google.gwt.event.shared.HandlerManager eventBus)
           
 
Method Summary
 void createDocument(String url, CreateDocument createDocument)
          Creates a document object of the specified type (given by the cmis:objectTypeId property) in the (optionally) specified location.
 void createDocument(String url, CreateDocument createDocument, String sourceUrl)
           
 void createDocumentFromSource(String url, CreateDocumentFromSource createDocumentFromSource)
          Creates a document object as a copy of the given source document in the (optionally) specified location.
 void createEmptyDocument(String url, CreateDocument createDocument)
          On success response received, EmptyDocumentCreatedEvent event is fired.
 void createFolder(String url, CreateFolder createFolder)
          Creates a folder object of the specified type in the specified location.
 void createPolicy(String url, CreatePolicy createPolicy)
          Creates a policy object of the specified type with pointed name and policy text.
 void createRelationship(String url, CreateRelationship createRelationship)
          Creates a relationship object of the specified type.
 void deleteContentStream(String url, String changeToken)
          Deletes the content stream for the specified Document object.
 void deleteObject(String url, boolean allVersions)
          Deletes the specified object.
 void deleteTree(String url, boolean allVersions, EnumUnfileObject unfileObject, boolean continueOnFailure)
          Delete tree of objects in specified folder On success results received TreeDeletedEvent event is fired
 void getAllowableActions(String url)
          Gets the specified information for the Object.
 void getContentStream(String url, String streamId)
          Gets the content stream for the specified Document object, or gets a rendition stream for a specified rendition of a document or folder object.
 void getObject(String url, String filter, EnumIncludeRelationships includeRelationships, boolean includePolicyIds, String renditionFilter, boolean includeACL, boolean includeAllowableActions)
          Gets the specified information for the Object.
 void getProperties(String url, String filter)
          Gets the list of properties for an Object.
 void moveObject(String url, MoveObject moveObject)
          Moves the specified file-able object from one folder to another.
 void setContentStream(String url, CmisContentStreamType contentStream, boolean overwriteFlag, String changeToken)
          Sets the content stream for the specified Document object.
 void updateDocumentContent(String url, String sourceUrl)
          Updating document's content stream copying by url pointed in second parameter.
 void updateProperties(String url, UpdateProperties updateProperties)
          Updates properties of the specified object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectService

public ObjectService(com.google.gwt.event.shared.HandlerManager eventBus)
Parameters:
eventBus - eventBus
Method Detail

createDocument

public void createDocument(String url,
                           CreateDocument createDocument)
Creates a document object of the specified type (given by the cmis:objectTypeId property) in the (optionally) specified location. On success response received, DocumentCreatedEvent event is fired.

Parameters:
url - url
createDocument - createDocument

createDocument

public void createDocument(String url,
                           CreateDocument createDocument,
                           String sourceUrl)
Parameters:
url -
createDocument -
sourceUrl -
contentType -

updateDocumentContent

public void updateDocumentContent(String url,
                                  String sourceUrl)
Updating document's content stream copying by url pointed in second parameter.

Parameters:
url - document location
sourceUrl - location of source for content stream

createEmptyDocument

public void createEmptyDocument(String url,
                                CreateDocument createDocument)
On success response received, EmptyDocumentCreatedEvent event is fired.

Parameters:
url - url
createDocument - createDocument

createDocumentFromSource

public void createDocumentFromSource(String url,
                                     CreateDocumentFromSource createDocumentFromSource)
Creates a document object as a copy of the given source document in the (optionally) specified location. * On success response received, DocumentFromSourceCreatedEvent event is fired.

Parameters:
url - url
createDocumentFromSource - createDocumentFromSource

createFolder

public void createFolder(String url,
                         CreateFolder createFolder)
Creates a folder object of the specified type in the specified location. On success response received, FolderCreatedEvent event is fired.

Parameters:
url - url
createFolder - createFolder

createRelationship

public void createRelationship(String url,
                               CreateRelationship createRelationship)
Creates a relationship object of the specified type. On success response received, RelationshipCreatedEvent event is fired.

Parameters:
url - url
createRelationship - createRelationship

createPolicy

public void createPolicy(String url,
                         CreatePolicy createPolicy)
Creates a policy object of the specified type with pointed name and policy text. On success response received, PolicyCreatedEvent event is fired.

Parameters:
url - url
createPolicy - createPolicy

getAllowableActions

public void getAllowableActions(String url)
Gets the specified information for the Object. On success response received, AllowableActionsReceivedEvent event is fired

Parameters:
url - url

getObject

public void getObject(String url,
                      String filter,
                      EnumIncludeRelationships includeRelationships,
                      boolean includePolicyIds,
                      String renditionFilter,
                      boolean includeACL,
                      boolean includeAllowableActions)
Gets the specified information for the Object. On success response received, ObjectReceivedEvent event is fired

Parameters:
url - url
filter - filter
includeEnumIncludeRelationships - includeEnumIncludeRelationships
includePolicyIds - includePolicyIds
renditionFilter - renditionFilter
includeACL - includeACL
includeAllowableActions - includeAllowableActions

getProperties

public void getProperties(String url,
                          String filter)
Gets the list of properties for an Object. On success response received, PropertiesReceivedEvent event is fired.

Parameters:
url - url
filter - filter

getContentStream

public void getContentStream(String url,
                             String streamId)
Gets the content stream for the specified Document object, or gets a rendition stream for a specified rendition of a document or folder object. On success response received, ContentStreamReceivedEvent event is fired.

Parameters:
url - url
streamId - streamId

updateProperties

public void updateProperties(String url,
                             UpdateProperties updateProperties)
Updates properties of the specified object. On success response received, PropertiesUpdatedEvent event is fired.

Parameters:
url - url
updateProperties - updateProperties

moveObject

public void moveObject(String url,
                       MoveObject moveObject)
Moves the specified file-able object from one folder to another. On success response received, ObjectMovedEvent event is fired.

Parameters:
url - url
moveObject - moveObject

deleteObject

public void deleteObject(String url,
                         boolean allVersions)
Deletes the specified object. On success response received, ObjectDeletedEvent event is fired.

Parameters:
url - url
deleteAllVersions - deleteAllVersions

deleteTree

public void deleteTree(String url,
                       boolean allVersions,
                       EnumUnfileObject unfileObject,
                       boolean continueOnFailure)
Delete tree of objects in specified folder On success results received TreeDeletedEvent event is fired

Parameters:
url - url
allVersions - all versions
unfileObject - unfile object
continueOnFailure - continue on failure

setContentStream

public void setContentStream(String url,
                             CmisContentStreamType contentStream,
                             boolean overwriteFlag,
                             String changeToken)
Sets the content stream for the specified Document object. On success response received, ContentStreamSetEvent event is fired.

Parameters:
url -
contentStream - content stream
overwriteFlag - overwrite flag
changeToken - change token

deleteContentStream

public void deleteContentStream(String url,
                                String changeToken)
Deletes the content stream for the specified Document object. On success result received ContentStreamDeletedEvent is fired

Parameters:
url - url
changeToken - change token


Copyright © 2010 eXo Platform SAS. All Rights Reserved.