@Name(value="typesTool") @Scope(value=CONVERSATION) @Install(precedence=10) public class TypesTool extends Object implements Serializable
Constructor and Description |
---|
TypesTool() |
Modifier and Type | Method and Description |
---|---|
Map<String,List<List<Type>>> |
getOrganizedTypeMapForDocumentType(String type) |
Type |
getSelectedType() |
Type |
getType(String typeName) |
Map<String,List<List<Type>>> |
getTypesList() |
boolean |
hasType(String typeName) |
void |
populateTypesList()
Retrieves the list of allowed sub types given a current type.
|
void |
resetTypesList() |
void |
setSelectedType(Type type)
If the selected type is supposed to be automatically injected by Seam
through @DataModelSelection callback (i.e.
|
void |
setTypesList(Map<String,List<List<Type>>> typesList) |
@Observer(value={"contentRootSelectionChanged","documentSelectionChanged","domainSelectionChanged","localConfigurationChanged"}, create=false) @BypassInterceptors public void resetTypesList()
public void populateTypesList()
This is used at creation time. Current type is retrieved thanks to the document model hold and passed by the event.
public Map<String,List<List<Type>>> getOrganizedTypeMapForDocumentType(String type)
public Type getSelectedType()
public void setSelectedType(Type type)
null
parameter before.@Factory(value="typesMap", scope=EVENT) public Map<String,List<List<Type>>> getTypesList()
public boolean hasType(String typeName)
Copyright © 2011 Nuxeo SA. All Rights Reserved.