palio.pelements
Class PObject

java.lang.Object
  extended by 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
 
Method Summary
 java.lang.Object execute(java.lang.Object[] args)
           
 void executeAsRoot(java.util.Map requestParams)
           
 java.lang.String getCode()
           
 java.lang.Long getCompatible()
           
 java.lang.String getContent()
           
 java.lang.Long getContentTypeId()
           
 java.util.Date getCreated()
           
 java.lang.String getDescription()
           
 java.lang.Class getGroovyClass()
           
 java.lang.Long getID()
           
 Instance getInstance()
           
 pl.com.torn.jpalio.lang.Type getLanguageType()
           
 java.lang.Long getLanguageTypeId()
           
 java.util.Date getLastUpdated()
           
 java.lang.String getName()
           
 java.lang.String getTag()
           
 java.lang.Long getTypeID()
           
 void precompile()
           
 void setInstance(Instance instance)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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

Method Detail

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