org.xcmis.client.gwt.service.repository
Class RepositoryService

java.lang.Object
  extended by org.xcmis.client.gwt.service.repository.RepositoryService

public class RepositoryService
extends Object

Created by The eXo Platform SAS.

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

Constructor Summary
RepositoryService(com.google.gwt.event.shared.HandlerManager eventBus)
           
 
Method Summary
 void addType(String url, TypeDefinition createType)
          Create type.
 void deleteType(String url)
          Delete type by url.
 void getBaseTypes(String url, boolean includePropertyDefinition)
          Get base types of the repository.
 void getRepositories(String url)
          Get a list of CMIS repositories available from this CMIS service endpoint.
 void getRepositoryInfo(String url)
          Get information about the CMIS repository, the optional capabilities it supports and its Access Control information if applicable.
 void getTypeChildren(String url, boolean includePropertyDefinitions, int maxItems, int skipCount)
          Returns the list of Object-Types defined for the Repository that are children of the specified type.
 void getTypeDefinition(String url)
          Gets the definition of the specified Object-Type.
 void getTypeDescendants(String url, String typeId, int depth, boolean includePropertyDefinition)
          Get the set of descendant Object-Types defined for the Repository under the specified type.
 void getTypeList(String href, boolean includePropertyDefinition)
          Get types as a plain list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryService

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

getRepositories

public void getRepositories(String url)
Get a list of CMIS repositories available from this CMIS service endpoint. On success response received, RepositoriesReceivedEvent event is fired

Parameters:
url - url

getRepositoryInfo

public void getRepositoryInfo(String url)
Get information about the CMIS repository, the optional capabilities it supports and its Access Control information if applicable. On success response received, RepositoryInfoReceivedEvent event is fired

Parameters:
url - url

getTypeChildren

public void getTypeChildren(String url,
                            boolean includePropertyDefinitions,
                            int maxItems,
                            int skipCount)
Returns the list of Object-Types defined for the Repository that are children of the specified type. On success response received, TypeChildrenReceivedEvent event is fired

Parameters:
url - url
includePropertyDefinitions - include property definitions
maxItems - max items
skipCount - skip count

getTypeDescendants

public void getTypeDescendants(String url,
                               String typeId,
                               int depth,
                               boolean includePropertyDefinition)
Get the set of descendant Object-Types defined for the Repository under the specified type. On success response received, TypeDescendantsRecievedEvent event is fired

Parameters:
url - url
typeId - type id
depth - depth
includePropertyDefinition - include property definition

getTypeDefinition

public void getTypeDefinition(String url)
Gets the definition of the specified Object-Type. On success response received, TypeDefinitionReceivedEvent event is fired

Parameters:
url - url

getBaseTypes

public void getBaseTypes(String url,
                         boolean includePropertyDefinition)
Get base types of the repository. On success response received, BaseTypesReceivedEvent event is fired

Parameters:
url - url
includePropertyDefinition - include property definition

getTypeList

public void getTypeList(String href,
                        boolean includePropertyDefinition)
Get types as a plain list. On success response received, TypeListReceivedEvent event is fired

Parameters:
url - url
includePropertyDefinition - include property definition

addType

public void addType(String url,
                    TypeDefinition createType)
Create type. On success response received, TypeCreatedEvent event is fired

Parameters:
url - url
type - type

deleteType

public void deleteType(String url)
Delete type by url. On success response received, TypeDeletedEvent event is fired

Parameters:
url - url


Copyright © 2010 eXo Platform SAS. All Rights Reserved.