org.nuxeo.ecm.webapp.action
Class TypesTool
java.lang.Object
org.nuxeo.ecm.webapp.action.TypesTool
- All Implemented Interfaces:
- Serializable
@Name(value="typesTool")
@Scope(value=CONVERSATION)
@Install(precedence=10)
public class TypesTool
- extends Object
- implements Serializable
Document type service for document type creation.
- Author:
- eionica@nuxeo.com, Anahide Tchertchian
- See Also:
- Serialized Form
TypesTool
public TypesTool()
resetTypesList
@Observer(value={"contentRootSelectionChanged","documentSelectionChanged","domainSelectionChanged","localConfigurationChanged"},
create=false)
@BypassInterceptors
public void resetTypesList()
populateTypesList
public void populateTypesList()
- Retrieves the list of allowed sub types given a current type.
This is used at creation time. Current type is retrieved thanks to the
document model hold and passed by the event.
getOrganizedTypeMapForDocumentType
public Map<String,List<List<Type>>> getOrganizedTypeMapForDocumentType(String type)
getSelectedType
public Type getSelectedType()
setSelectedType
public void setSelectedType(Type type)
- If the selected type is supposed to be automatically injected by Seam
through @DataModelSelection callback (i.e. the user will select the type
from a list), this method should be called with
null
parameter before.
getTypesList
@Factory(value="typesMap",
scope=EVENT)
public Map<String,List<List<Type>>> getTypesList()
setTypesList
public void setTypesList(Map<String,List<List<Type>>> typesList)
getType
public Type getType(String typeName)
hasType
public boolean hasType(String typeName)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.