|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.spi.DelegatedTypeManager
public class DelegatedTypeManager
A wrapper for TypeManager that exposes only the TypeManager methods of the TypeManager implementation.
| Constructor Summary | |
|---|---|
DelegatedTypeManager(TypeManager typeManager)
|
|
| Method Summary | |
|---|---|
String |
addType(TypeDefinition type)
Add new type in repository. |
ItemsIterator<TypeDefinition> |
getTypeChildren(String typeId,
boolean includePropertyDefinitions)
Iterator over object types. |
TypeDefinition |
getTypeDefinition(String typeId,
boolean includePropertyDefinition)
Get type definition for type typeId . |
void |
removeType(String typeId)
Remove type definition for type typeId . |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatedTypeManager(TypeManager typeManager)
| Method Detail |
|---|
public String addType(TypeDefinition type)
throws ConstraintException,
StorageException
TypeManager
addType in interface TypeManagertype - the type definition
ConstraintException - if any of the following conditions are met:
TypeDefinition.getId()TypeDefinition.getBaseId()TypeDefinition.getParentId()StorageException - if type can't be added cause to storage internal
problem
public TypeDefinition getTypeDefinition(String typeId,
boolean includePropertyDefinition)
throws TypeNotFoundException
TypeManagertypeId .
getTypeDefinition in interface TypeManagertypeId - type IdincludePropertyDefinition - if true property definition
should be included
TypeNotFoundException - if type typeId does not exist
public ItemsIterator<TypeDefinition> getTypeChildren(String typeId,
boolean includePropertyDefinitions)
throws TypeNotFoundException
TypeManager
getTypeChildren in interface TypeManagertypeId - the type id, if not null then return only
specified Object Type and its direct descendant. If
null then return base typesincludePropertyDefinitions - true if property definition
should be included false otherwise
TypeNotFoundException - if type typeId does not exist
public void removeType(String typeId)
throws ConstraintException,
TypeNotFoundException,
StorageException
TypeManagertypeId .
removeType in interface TypeManagertypeId - type Id
ConstraintException - if removing type violates a storage
constraint. For example, if storage already contains object of
this type
TypeNotFoundException - if type typeId not found in
repository
StorageException - if type can't be added cause to storage internal
problem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||