public interface ModelObject extends Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_DESCRIPTION |
static String |
PROP_DESCRIPTION_ID |
static String |
PROP_ID
IMPORTANT - public fields starting with PROP_ are inspected by the ModelHelper
|
static String |
PROP_TITLE |
static String |
PROP_TITLE_ID |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanProperty(String propertyName) |
Map<String,Serializable> |
getCustomProperties() |
String |
getCustomProperty(String propertyName) |
String |
getDescription()
Returns the description property of the model object
|
String |
getDescriptionId()
Returns the description id property of the model object
|
org.dom4j.Document |
getDocument() |
String |
getId()
Returns the id of the model object.
|
ModelPersisterInfo |
getKey()
Returns the model object key instance
|
Map<String,Serializable> |
getModelProperties() |
String |
getModelProperty(String propertyName) |
long |
getModificationTime() |
String |
getPersisterId() |
Map<String,Serializable> |
getProperties() |
String |
getProperty(String propertyName) |
String |
getStoragePath() |
String |
getTitle()
Returns the title property of the model object.
|
String |
getTitleId()
Returns the title id property of the model object.
|
String |
getTypeId()
Returns the type id of the model object.
|
boolean |
isSaved()
Indicates whether the object is currently persisted (saved)
or not.
|
void |
removeCustomProperty(String propertyName) |
void |
removeModelProperty(String propertyName) |
void |
removeProperty(String propertyName) |
void |
setCustomProperty(String propertyName,
String propertyValue) |
void |
setDescription(String value)
Sets the description property of the model object
|
void |
setDescriptionId(String value)
Sets the description id property of the model object
|
void |
setModelProperty(String propertyName,
String propertyValue) |
void |
setProperty(String propertyName,
String propertyValue) |
void |
setTitle(String value)
Sets the title property of the model object
|
void |
setTitleId(String value)
Sets the title id property of the model object
|
void |
touch() |
String |
toXML()
Serializes the object to XML.
|
static final String PROP_ID
static final String PROP_TITLE
static final String PROP_TITLE_ID
static final String PROP_DESCRIPTION
static final String PROP_DESCRIPTION_ID
ModelPersisterInfo getKey()
String getId()
String getTypeId()
String getTitle()
void setTitle(String value)
value - The new titleString getTitleId()
void setTitleId(String value)
value - The new title idString getDescription()
void setDescription(String value)
value - The descriptionString getDescriptionId()
void setDescriptionId(String value)
value - The description idboolean isSaved()
String toXML()
boolean getBooleanProperty(String propertyName)
void removeProperty(String propertyName)
Map<String,Serializable> getProperties()
void removeModelProperty(String propertyName)
Map<String,Serializable> getModelProperties()
void removeCustomProperty(String propertyName)
Map<String,Serializable> getCustomProperties()
String getStoragePath()
String getPersisterId()
long getModificationTime()
void touch()
org.dom4j.Document getDocument()
Copyright © 2005–2016 Alfresco Software. All rights reserved.