Class TypeInfoAdapter
- java.lang.Object
-
- org.nuxeo.ecm.platform.types.adapter.TypeInfoAdapter
-
- All Implemented Interfaces:
TypeInfo
public class TypeInfoAdapter extends Object implements TypeInfo
- Author:
- Anahide Tchertchian
-
-
Constructor Summary
Constructors Constructor Description TypeInfoAdapter(DocumentModel doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 categoryMap<String,String[]>
getContentViewsForExport()
Returns content views defined on this document type for all categories that are shown in export views.String
getCreateView()
String
getDefaultView()
String
getDescription()
Returns the type's description.String
getEditView()
String
getIcon()
String
getIconExpanded()
String
getId()
String
getLabel()
String[]
getLayouts(String mode)
Returns layout names for this mode, defaulting to layouts defined for modeBuiltinModes.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()
-
-
-
Constructor Detail
-
TypeInfoAdapter
public TypeInfoAdapter(DocumentModel doc)
-
-
Method Detail
-
getActions
public String[] getActions()
-
getAllowedSubTypes
public Map<String,SubType> getAllowedSubTypes()
- Specified by:
getAllowedSubTypes
in interfaceTypeInfo
-
getCreateView
public String getCreateView()
- Specified by:
getCreateView
in interfaceTypeInfo
-
getDefaultView
public String getDefaultView()
- Specified by:
getDefaultView
in interfaceTypeInfo
-
getEditView
public String getEditView()
- Specified by:
getEditView
in interfaceTypeInfo
-
getIconExpanded
public String getIconExpanded()
- Specified by:
getIconExpanded
in interfaceTypeInfo
-
getBigIcon
public String getBigIcon()
- Specified by:
getBigIcon
in interfaceTypeInfo
-
getBigIconExpanded
public String getBigIconExpanded()
- Specified by:
getBigIconExpanded
in interfaceTypeInfo
-
getDescription
public String getDescription()
Description copied from interface:TypeInfo
Returns the type's description.- Specified by:
getDescription
in interfaceTypeInfo
-
getLayouts
public String[] getLayouts(String mode)
Description copied from interface:TypeInfo
Returns layout names for this mode, defaulting to layouts defined for modeBuiltinModes.ANY
- Specified by:
getLayouts
in interfaceTypeInfo
-
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 interfaceTypeInfo
-
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 interfaceTypeInfo
-
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 interfaceTypeInfo
-
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 interfaceTypeInfo
-
-