|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.webapp.action.TypesTool
@Name(value="typesTool") @Scope(value=CONVERSATION) @Install(precedence=10) public class TypesTool
Document type service for document type creation.
Constructor Summary | |
---|---|
TypesTool()
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getAllowedSubTypesFor(java.lang.String docType)
Retrieves the list of allowed sub types given a current type. |
java.util.Map<java.lang.String,java.util.List<java.util.List<Type>>> |
getOrganizedTypeMapForDocumentType(java.lang.String type)
|
Type |
getSelectedType()
|
Type |
getType(java.lang.String typeName)
|
java.util.Map<java.lang.String,java.util.List<java.util.List<Type>>> |
getTypesList()
|
boolean |
hasType(java.lang.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. the user will select the type from a list), this method should be called with null
parameter before. |
void |
setTypesList(java.util.Map<java.lang.String,java.util.List<java.util.List<Type>>> typesList)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypesTool()
Method Detail |
---|
@Observer(value={"contentRootSelectionChanged","documentSelectionChanged","domainSelectionChanged"}, 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 java.util.Map<java.lang.String,java.util.List<java.util.List<Type>>> getOrganizedTypeMapForDocumentType(java.lang.String type)
public java.util.List<java.lang.String> getAllowedSubTypesFor(java.lang.String docType)
public Type getSelectedType()
public void setSelectedType(Type type)
null
parameter before.
type
- @Factory(value="typesMap", scope=EVENT) public java.util.Map<java.lang.String,java.util.List<java.util.List<Type>>> getTypesList()
public void setTypesList(java.util.Map<java.lang.String,java.util.List<java.util.List<Type>>> typesList)
public Type getType(java.lang.String typeName)
public boolean hasType(java.lang.String typeName)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |