Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.types.adapter
Class TypeInfoAdapter

java.lang.Object
  extended by org.nuxeo.ecm.platform.types.adapter.TypeInfoAdapter
All Implemented Interfaces:
TypeInfo

public class TypeInfoAdapter
extends Object
implements TypeInfo

Author:
Anahide Tchertchian

Constructor Summary
TypeInfoAdapter(DocumentModel doc)
           
 
Method Summary
 String[] getActions()
           
 Map<String,SubType> getAllowedSubTypes()
           
 String getBigIcon()
           
 String getBigIconExpanded()
           
 Map<String,String[]> getContentViews()
          Returns content views defined on this document type for all categories.
 String[] getContentViews(String category)
          Returns content views defined on this document type for given category
 Map<String,String[]> getContentViewsForExport()
          Returns content views defined on this document type for all categories that are shown in export views.
 String getCoreType()
          Deprecated. Use getId() instead.
 String getCreateView()
           
 String getDefaultView()
           
 String getEditView()
           
 String getIcon()
           
 String getIconExpanded()
           
 String getId()
           
 String getLabel()
           
 FieldWidget[] getLayout()
           
 String[] getLayouts(String mode)
          Returns layout names for this mode, defaulting to layouts defined for mode BuiltinModes.ANY
 String[] getLayouts(String mode, String defaultMode)
          Returns layout names for this mode, defaulting to layouts defined for given default mode name.
 String getView(String viewId)
           
 TypeView[] getViews()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeInfoAdapter

public TypeInfoAdapter(DocumentModel doc)
Method Detail

getActions

public String[] getActions()

getAllowedSubTypes

public Map<String,SubType> getAllowedSubTypes()
Specified by:
getAllowedSubTypes in interface TypeInfo

getCoreType

@Deprecated
public String getCoreType()
Deprecated. Use getId() instead.


getCreateView

public String getCreateView()
Specified by:
getCreateView in interface TypeInfo

getDefaultView

public String getDefaultView()
Specified by:
getDefaultView in interface TypeInfo

getEditView

public String getEditView()
Specified by:
getEditView in interface TypeInfo

getIcon

public String getIcon()
Specified by:
getIcon in interface TypeInfo

getIconExpanded

public String getIconExpanded()
Specified by:
getIconExpanded in interface TypeInfo

getBigIcon

public String getBigIcon()
Specified by:
getBigIcon in interface TypeInfo

getBigIconExpanded

public String getBigIconExpanded()
Specified by:
getBigIconExpanded in interface TypeInfo

getId

public String getId()
Specified by:
getId in interface TypeInfo

getLabel

public String getLabel()
Specified by:
getLabel in interface TypeInfo

getLayout

public FieldWidget[] getLayout()
Specified by:
getLayout in interface TypeInfo

getLayouts

public String[] getLayouts(String mode)
Description copied from interface: TypeInfo
Returns layout names for this mode, defaulting to layouts defined for mode BuiltinModes.ANY

Specified by:
getLayouts in interface TypeInfo

getLayouts

public String[] getLayouts(String mode,
                           String defaultMode)
Description copied from interface: TypeInfo
Returns layout names for this mode, defaulting to layouts defined for given default mode name.

If parameter "defaultMode" is null, returns only layout defined for given mode.

Specified by:
getLayouts in interface TypeInfo

getView

public String getView(String viewId)
Specified by:
getView in interface TypeInfo

getViews

public TypeView[] getViews()
Specified by:
getViews in interface TypeInfo

getContentViews

public String[] getContentViews(String category)
Description copied from interface: TypeInfo
Returns content views defined on this document type for given category

Specified by:
getContentViews in interface TypeInfo

getContentViews

public Map<String,String[]> getContentViews()
Description copied from interface: TypeInfo
Returns content views defined on this document type for all categories.

Specified by:
getContentViews in interface TypeInfo

getContentViewsForExport

public Map<String,String[]> getContentViewsForExport()
Description copied from interface: TypeInfo
Returns content views defined on this document type for all categories that are shown in export views.

Categories holding no content view shown in export views are omitted.

Specified by:
getContentViewsForExport in interface TypeInfo

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.