public interface TypeManager
Modifier and Type | Method and Description |
---|---|
boolean |
canCreate(String typeName,
String containerTypeName)
Returns
true if typeName is a sub type, allowed in
creation mode, of containerTypeName , false otherwise. |
boolean |
canCreate(String typeName,
String containerTypeName,
DocumentModel currentDoc)
Returns
true if typeName is a sub type, allowed in
creation, of containerTypeName , false otherwise. |
Collection<Type> |
findAllAllowedSubTypesFrom(String typeName)
Returns recursively all the allowed sub types from the given
typeName . |
Collection<Type> |
findAllAllowedSubTypesFrom(String typeName,
DocumentModel currentDoc)
Returns recursively all the allowed sub types from the given
typeName , filtered by a local UI types configuration retrieved
from the currentDoc , if any. |
Collection<Type> |
getAllowedSubTypes(String typeName) |
Collection<Type> |
getAllowedSubTypes(String typeName,
DocumentModel currentDoc)
Returns the allowed sub types of the given
typeName , filtered by
a local UI types configuration retrieved from the currentDoc , if
any. |
String[] |
getSuperTypes(String typeName)
Gets the super type names for the given type.
|
Type |
getType(String typeName)
Returns the
Type instance for the given typeName . |
Map<String,List<Type>> |
getTypeMapForDocumentType(String typeName,
DocumentModel currentDoc)
Returns the sub type of the given
typeName , filtered by a local
UI types configuration retrieved from the currentDoc , if any, and
organized by type categories. |
Collection<Type> |
getTypes()
Returns all the registered
Type s. |
boolean |
hasType(String typeName)
Returns
true if typeName is a registered Type, false otherwise. |
boolean |
isAllowedSubType(String typeName,
String containerTypeName)
Returns
true if typeName is an allowed sub type of
containerTypeName , false otherwise. |
boolean |
isAllowedSubType(String typeName,
String containerTypeName,
DocumentModel currentDoc)
Returns
true if typeName is an allowed sub type of
containerTypeName , filtered by a local UI types configuration
retrieved from the currentDoc , if any, false otherwise. |
String[] getSuperTypes(String typeName)
Collection<Type> getTypes()
Type
s.boolean hasType(String typeName)
true
if typeName
is a registered Type, false
otherwise.Collection<Type> getAllowedSubTypes(String typeName)
Collection<Type> getAllowedSubTypes(String typeName, DocumentModel currentDoc)
typeName
, filtered by
a local UI types configuration retrieved from the currentDoc
, if
any.Collection<Type> findAllAllowedSubTypesFrom(String typeName)
typeName
.Collection<Type> findAllAllowedSubTypesFrom(String typeName, DocumentModel currentDoc)
typeName
, filtered by a local UI types configuration retrieved
from the currentDoc
, if any.Map<String,List<Type>> getTypeMapForDocumentType(String typeName, DocumentModel currentDoc)
typeName
, filtered by a local
UI types configuration retrieved from the currentDoc
, if any, and
organized by type categories.boolean canCreate(String typeName, String containerTypeName)
true
if typeName
is a sub type, allowed in
creation mode, of containerTypeName
, false
otherwise.boolean canCreate(String typeName, String containerTypeName, DocumentModel currentDoc)
true
if typeName
is a sub type, allowed in
creation, of containerTypeName
, false
otherwise.
It takes care of a local UI types configuration retrieved from the
currentDoc
to filter the sub types of typeName
before
checking the creation mode.
boolean isAllowedSubType(String typeName, String containerTypeName)
true
if typeName
is an allowed sub type of
containerTypeName
, false
otherwise.boolean isAllowedSubType(String typeName, String containerTypeName, DocumentModel currentDoc)
true
if typeName
is an allowed sub type of
containerTypeName
, filtered by a local UI types configuration
retrieved from the currentDoc
, if any, false
otherwise.Copyright © 2011 Nuxeo SA. All Rights Reserved.