public final class ScriptModelObject extends ScriptBase
context, properties| Constructor and Description |
|---|
ScriptModelObject(RequestContext context,
ModelObject modelObject)
Instantiates a new script model object.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.extensions.webscripts.ScriptableMap |
buildProperties() |
ScriptModelObject |
clone()
Creates a clone of this model object
|
ScriptModelObject |
clone(String newObjectId)
Creates a clone of this model object
The provided is to set as the new id of the object
|
void |
delete()
Deletes the object
|
boolean |
getBooleanProperty(String propertyName)
Gets the boolean property.
|
String |
getDescription()
Gets the description.
|
String |
getDescriptionId()
Gets the description id.
|
String |
getId()
Gets the id.
|
ModelObject |
getModelObject()
Returns the model object
|
String |
getPersisterId()
Gets the persister id.
|
String |
getProperty(String propertyName)
Gets the property.
|
ScriptResources |
getResources() |
String |
getStoragePath()
Gets the storage path.
|
long |
getTimestamp()
Gets the timestamp.
|
String |
getTitle()
Gets the title.
|
String |
getTitleId()
Gets the title id.
|
String |
getTypeId()
Gets the type id for the underlying model object
|
void |
remove()
Removes the object
|
void |
removeProperty(String propertyName)
Removes the property.
|
void |
save()
Persist the object and all modified properties.
|
void |
save(boolean persist)
Persist the object and all modified properties.
|
void |
setDescription(Serializable value)
Sets the description.
|
void |
setDescriptionId(Serializable value)
Sets the description id.
|
void |
setId(String id)
Sets the id.
|
void |
setProperty(String propertyName,
String propertyValue)
Sets the property.
|
void |
setTitle(Serializable value)
Sets the title.
|
void |
setTitleId(Serializable value)
Sets the title id.
|
void |
touch()
Touches the object.
|
String |
toXML()
To xml.
|
getConfig, getObject, getObjectService, getProperties, getRequestContext, toStringpublic ScriptModelObject(RequestContext context, ModelObject modelObject)
context - the request contextmodelObject - the model objectprotected org.springframework.extensions.webscripts.ScriptableMap buildProperties()
buildProperties in class ScriptBasepublic String getId()
public void setId(String id)
id - the new idpublic String getTypeId()
public String getTitle()
public void setTitle(Serializable value)
value - the new titlepublic String getTitleId()
public void setTitleId(Serializable value)
value - the new title idpublic String getDescription()
public String getDescriptionId()
public void setDescriptionId(Serializable value)
value - the new description idpublic void setDescription(Serializable value)
value - the new descriptionpublic long getTimestamp()
public String getPersisterId()
public String getStoragePath()
public ScriptResources getResources()
public void save(boolean persist)
throws ModelObjectPersisterException
ModelObjectPersisterExceptionpublic void save()
throws ModelObjectPersisterException
ModelObjectPersisterExceptionpublic void remove()
public void delete()
public String toXML()
public void touch()
public boolean getBooleanProperty(String propertyName)
propertyName - the property namepublic String getProperty(String propertyName)
propertyName - the property namepublic void setProperty(String propertyName, String propertyValue)
propertyName - the property namepropertyValue - the property valuepublic void removeProperty(String propertyName)
propertyName - the property namepublic ModelObject getModelObject()
public ScriptModelObject clone()
public ScriptModelObject clone(String newObjectId)
Copyright © 2005–2016 Alfresco Software. All rights reserved.