public class ThemeImpl extends AbstractModelObject implements Theme
customProperties, description, descriptionId, id, info, modelProperties, modificationTime, resourceContainer, title, titleIdCSS_TOKENS, TYPE_IDPROP_DESCRIPTION, PROP_DESCRIPTION_ID, PROP_ID, PROP_TITLE, PROP_TITLE_ID| Constructor and Description |
|---|
ThemeImpl(String id,
ModelPersisterInfo key,
org.dom4j.Document document)
Instantiates a new theme for a given XML document.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getCssTokens() |
String |
getPageId(String pageTypeId)
Checks the theme to find the id of the page that is mapped to the requested page type.
|
String |
getTypeId()
Returns the type id of the model object.
|
void |
setDefaultPageId(String pageTypeId,
String pageId)
Sets the page id for a page type.
|
addResource, addResource, getBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModificationTime, getPersisterId, getProperties, getProperty, getResource, getResourceContainer, getResources, getResourcesMap, getStoragePath, getTitle, getTitleId, isCustomProperty, isModelProperty, isSaved, removeCustomProperty, removeModelProperty, removeProperty, removeResource, setCustomProperty, setDescription, setDescriptionId, setId, setModelProperty, setModificationTime, setProperty, setTitle, setTitleId, toString, touch, toXML, updateResource, updateXMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBooleanProperty, getCustomProperties, getCustomProperty, getDescription, getDescriptionId, getDocument, getId, getKey, getModelProperties, getModelProperty, getModificationTime, getPersisterId, getProperties, getProperty, getStoragePath, getTitle, getTitleId, isSaved, removeCustomProperty, removeModelProperty, removeProperty, setCustomProperty, setDescription, setDescriptionId, setModelProperty, setProperty, setTitle, setTitleId, touch, toXMLpublic ThemeImpl(String id, ModelPersisterInfo key, org.dom4j.Document document)
document - the documentpublic Map<String,String> getCssTokens()
getCssTokens in interface ThemeMap of CSS tokens to substitution values. These are used when processing
CSS source files so that a common CSS file can be modified per theme.public String getTypeId()
ModelObjectgetTypeId in interface ModelObjectgetTypeId in class AbstractModelObjectpublic String getPageId(String pageTypeId)
public void setDefaultPageId(String pageTypeId, String pageId)
ThemesetDefaultPageId in interface ThemepageTypeId - the page type idpageId - the page idCopyright © 2005–2016 Alfresco Software. All rights reserved.