Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webapp.action
Class TypesTool

java.lang.Object
  extended by 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

Constructor Summary
TypesTool()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypesTool

public TypesTool()
Method Detail

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)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.