org.apache.chemistry.opencmis.server.support
Interface TypeManager

All Known Implementing Classes:
JcrTypeManager

public interface TypeManager


Method Summary
 String getPropertyIdForQueryName(TypeDefinition typeDefinition, String propQueryName)
          retrieve the property id from a type for a given property query name
 List<TypeDefinitionContainer> getRootTypes()
          return a list of the root types as defined in the CMIS spec (for document, folder, policy and relationship
 TypeDefinitionContainer getTypeById(String typeId)
          return a type definition from the type definition id
 TypeDefinition getTypeByQueryName(String typeQueryName)
          return a type definition from the type query name or null if not found
 Collection<TypeDefinitionContainer> getTypeDefinitionList()
          return a list of all types known in this repository
 

Method Detail

getTypeById

TypeDefinitionContainer getTypeById(String typeId)
return a type definition from the type definition id

Parameters:
typeId - id of the type definition
Returns:
type definition for this id

getTypeByQueryName

TypeDefinition getTypeByQueryName(String typeQueryName)
return a type definition from the type query name or null if not found

Parameters:
typeQueryName - query name of the type definition
Returns:
type definition for this query name

getTypeDefinitionList

Collection<TypeDefinitionContainer> getTypeDefinitionList()
return a list of all types known in this repository

Returns:

getRootTypes

List<TypeDefinitionContainer> getRootTypes()
return a list of the root types as defined in the CMIS spec (for document, folder, policy and relationship

Returns:

getPropertyIdForQueryName

String getPropertyIdForQueryName(TypeDefinition typeDefinition,
                                 String propQueryName)
retrieve the property id from a type for a given property query name

Parameters:
typeDefinition - type definition containing query name
propQueryName - query name of property
Returns:
property id of property or null if not found


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