Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.types
Class Type

java.lang.Object
  extended by org.nuxeo.ecm.platform.types.Type
All Implemented Interfaces:
Serializable

public class Type
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static String[] EMPTY_ACTIONS
           
 
Constructor Summary
Type()
           
 
Method Summary
 void addSubType(List<SubType> subTypes)
           
 String[] getActions()
           
 Map<String,SubType> getAllowedSubTypes()
           
 String getBigIcon()
           
 String getBigIconExpanded()
           
 String getCategory()
           
 Map<String,DocumentContentViews> getContentViews()
           
 String[] getContentViews(String category)
          Return content views defined on this document type for given category
 String getCreateView()
           
 String getDefaultView()
           
 String[] getDeniedSubTypes()
           
 String getDescription()
           
 String getEditView()
           
 String getIcon()
           
 String getIconExpanded()
           
 String getId()
           
 String getLabel()
           
 FieldWidget[] getLayout()
          Deprecated. use getLayouts(String) instead, using mode BuiltinModes.ANY.
 Map<String,Layouts> getLayouts()
          Returns the layouts map
 String[] getLayouts(String mode)
          Returns layout names given a mode.
 String[] getLayouts(String mode, String defaultMode)
           
 boolean getRemove()
           
 TypeView getView(String viewId)
           
 TypeView[] getViews()
           
 void setActions(String[] actions)
           
 void setAllowedSubTypes(Map<String,SubType> allowedSubTypes)
           
 void setBigIcon(String bigIcon)
           
 void setBigIconExpanded(String bigIconExpanded)
           
 void setCategory(String category)
           
 void setContentViews(Map<String,DocumentContentViews> contentViews)
           
 void setCreateView(String createView)
           
 void setDefaultView(String defaultView)
           
 void setDeniedSubTypes(String[] deniedSubTypes)
           
 void setDescription(String description)
           
 void setEditView(String editView)
           
 void setIcon(String icon)
           
 void setIconExpanded(String iconExpanded)
           
 void setId(String id)
           
 void setLabel(String label)
           
 void setLayout(FieldWidget[] layout)
          Deprecated. 
 void setLayouts(Map<String,Layouts> layouts)
           
 void setRemove(boolean remove)
           
 void setView(TypeView view)
           
 void setViews(TypeView[] views)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_ACTIONS

public static final String[] EMPTY_ACTIONS
Constructor Detail

Type

public Type()
Method Detail

addSubType

public void addSubType(List<SubType> subTypes)

getActions

public String[] getActions()

setActions

public void setActions(String[] actions)

getIcon

public String getIcon()

setIcon

public void setIcon(String icon)

getBigIcon

public String getBigIcon()

setBigIcon

public void setBigIcon(String bigIcon)

getBigIconExpanded

public String getBigIconExpanded()

setBigIconExpanded

public void setBigIconExpanded(String bigIconExpanded)

getLabel

public String getLabel()

setLabel

public void setLabel(String label)

getId

public String getId()

setId

public void setId(String id)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getCategory

public String getCategory()

setCategory

public void setCategory(String category)

getLayout

@Deprecated
public FieldWidget[] getLayout()
Deprecated. use getLayouts(String) instead, using mode BuiltinModes.ANY.


setLayout

@Deprecated
public void setLayout(FieldWidget[] layout)
Deprecated. 


getLayouts

public String[] getLayouts(String mode)
Returns layout names given a mode.


getLayouts

public String[] getLayouts(String mode,
                           String defaultMode)

getLayouts

public Map<String,Layouts> getLayouts()
Returns the layouts map


setLayouts

public void setLayouts(Map<String,Layouts> layouts)

getDefaultView

public String getDefaultView()

setDefaultView

public void setDefaultView(String defaultView)

getCreateView

public String getCreateView()

setCreateView

public void setCreateView(String createView)

getEditView

public String getEditView()

setEditView

public void setEditView(String editView)

getViews

public TypeView[] getViews()

setViews

public void setViews(TypeView[] views)

getView

public TypeView getView(String viewId)

setView

public void setView(TypeView view)

getDeniedSubTypes

public String[] getDeniedSubTypes()

setDeniedSubTypes

public void setDeniedSubTypes(String[] deniedSubTypes)

getAllowedSubTypes

public Map<String,SubType> getAllowedSubTypes()

setAllowedSubTypes

public void setAllowedSubTypes(Map<String,SubType> allowedSubTypes)

getRemove

public boolean getRemove()

setRemove

public void setRemove(boolean remove)

toString

public String toString()
Overrides:
toString in class Object

getIconExpanded

public String getIconExpanded()

setIconExpanded

public void setIconExpanded(String iconExpanded)

getContentViews

public String[] getContentViews(String category)
Return content views defined on this document type for given category

Since:
5.4

getContentViews

public Map<String,DocumentContentViews> getContentViews()

setContentViews

public void setContentViews(Map<String,DocumentContentViews> contentViews)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.