public class TypeInfoAdapter extends Object implements TypeInfo
Constructor and Description |
---|
TypeInfoAdapter(DocumentModel doc) |
Modifier and Type | Method and 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 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 |
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 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() |
public TypeInfoAdapter(DocumentModel doc)
public String[] getActions()
public Map<String,SubType> getAllowedSubTypes()
getAllowedSubTypes
in interface TypeInfo
@Deprecated public String getCoreType()
getId()
instead.public String getCreateView()
getCreateView
in interface TypeInfo
public String getDefaultView()
getDefaultView
in interface TypeInfo
public String getEditView()
getEditView
in interface TypeInfo
public String getIconExpanded()
getIconExpanded
in interface TypeInfo
public String getBigIcon()
getBigIcon
in interface TypeInfo
public String getBigIconExpanded()
getBigIconExpanded
in interface TypeInfo
public String getDescription()
TypeInfo
getDescription
in interface TypeInfo
public String[] getLayouts(String mode)
TypeInfo
BuiltinModes.ANY
getLayouts
in interface TypeInfo
public String[] getLayouts(String mode, String defaultMode)
TypeInfo
If parameter "defaultMode" is null, returns only layout defined for given mode.
getLayouts
in interface TypeInfo
public String[] getContentViews(String category)
TypeInfo
getContentViews
in interface TypeInfo
public Map<String,String[]> getContentViews()
TypeInfo
getContentViews
in interface TypeInfo
public Map<String,String[]> getContentViewsForExport()
TypeInfo
Categories holding no content view shown in export views are omitted.
getContentViewsForExport
in interface TypeInfo
Copyright © 2015 Nuxeo SA. All rights reserved.