palio.pelements
Class PObject
java.lang.Object
palio.pelements.PObject
- All Implemented Interfaces:
- java.io.Serializable, IInstanceTreeElement, IObject, PElement
public final class PObject
- extends java.lang.Object
- implements java.io.Serializable, PElement, IObject
- Author:
- Krzysztof Synowiec
- See Also:
- Serialized Form
Constructor Summary |
PObject(Instance instance,
java.lang.Long ID,
java.lang.Long typeID,
java.util.Date created,
java.util.Date lastUpdated,
java.lang.String name,
java.lang.String tag,
java.lang.String description,
java.lang.String code,
boolean compress,
java.lang.Long languageTypeId,
java.lang.Long contentTypeId,
java.lang.Long compatible)
Constructor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PObject
public PObject(Instance instance,
java.lang.Long ID,
java.lang.Long typeID,
java.util.Date created,
java.util.Date lastUpdated,
java.lang.String name,
java.lang.String tag,
java.lang.String description,
java.lang.String code,
boolean compress,
java.lang.Long languageTypeId,
java.lang.Long contentTypeId,
java.lang.Long compatible)
- Constructor
getLanguageTypeId
public java.lang.Long getLanguageTypeId()
getID
public java.lang.Long getID()
- Specified by:
getID
in interface PElement
getTypeID
public java.lang.Long getTypeID()
getCreated
public java.util.Date getCreated()
getLastUpdated
public java.util.Date getLastUpdated()
getName
public java.lang.String getName()
- Specified by:
getName
in interface IInstanceTreeElement
- Returns:
- name of this element
getTag
public java.lang.String getTag()
getDescription
public java.lang.String getDescription()
getCode
public java.lang.String getCode()
- Specified by:
getCode
in interface IInstanceTreeElement
- Returns:
- code of this element
getCompatible
public java.lang.Long getCompatible()
getInstance
public Instance getInstance()
getLanguageType
public pl.com.torn.jpalio.lang.Type getLanguageType()
getContentTypeId
public java.lang.Long getContentTypeId()
execute
public java.lang.Object execute(java.lang.Object[] args)
throws palio.PalioException
- Throws:
palio.PalioException
executeAsRoot
public void executeAsRoot(java.util.Map requestParams)
throws palio.PalioException
- Throws:
palio.PalioException
getGroovyClass
public java.lang.Class getGroovyClass()
throws palio.PalioException
- Throws:
palio.PalioException
precompile
public void precompile()
throws palio.PalioException
- Throws:
palio.PalioException
setInstance
public void setInstance(Instance instance)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getContent
public java.lang.String getContent()
throws palio.PalioException
- Specified by:
getContent
in interface IObject
- Returns:
- content of this object
- Throws:
palio.PalioException
- if content of this object was unavailable and exception has occured while accessing to database