org.apache.portals.graffito.model.core.impl
Class CmsObjectImpl

java.lang.Object
  extended by org.apache.portals.graffito.model.core.impl.CmsObjectImpl
All Implemented Interfaces:
java.io.Serializable, org.apache.portals.graffito.model.core.CmsObject
Direct Known Subclasses:
ContentImpl, FolderImpl, LinkImpl

public class CmsObjectImpl
extends java.lang.Object
implements org.apache.portals.graffito.model.core.CmsObject, java.io.Serializable

CmsObjectImpl

Author:
Christophe Lombart
See Also:
Serialized Form

Field Summary
protected  java.sql.Timestamp creationDate
           
protected  java.sql.Timestamp lastModified
           
protected  java.lang.String name
           
protected  java.lang.Long objectId
           
protected  java.lang.String ojbConcreteClass
          Special attribute telling OJB the object's concrete type.
protected  org.apache.portals.graffito.model.core.Folder parentFolder
           
protected  java.lang.Long parentId
           
protected  java.util.Collection properties
           
protected  java.lang.String uri
           
 
Fields inherited from interface org.apache.portals.graffito.model.core.CmsObject
URI_SEPARATOR
 
Constructor Summary
CmsObjectImpl()
          Constructor
 
Method Summary
 boolean equals(java.lang.Object cmsObject)
           
 java.sql.Timestamp getCreationDate()
           
 java.sql.Timestamp getLastModified()
           
 java.lang.String getName()
           
 java.lang.Long getObjectId()
           
 org.apache.portals.graffito.model.core.Folder getParentFolder()
           
 java.lang.Long getParentId()
           
 java.lang.String[] getPath()
           
 java.util.Collection getProperties()
           
 java.lang.String getProperty(java.lang.String propertyName)
           
 java.lang.String getUri()
           
 void setCreationDate(java.sql.Timestamp creationDate)
           
 void setLastModified(java.sql.Timestamp lastModified)
           
 void setName(java.lang.String name)
           
 void setObjectId(java.lang.Long objectId)
           
 void setParentFolder(org.apache.portals.graffito.model.core.Folder parentFolder)
           
 void setParentId(java.lang.Long parentId)
           
 void setProperties(java.util.Collection properties)
           
 void setProperty(java.lang.String name, java.lang.String value)
           
 void setUri(java.lang.String uri)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

objectId

protected java.lang.Long objectId

parentId

protected java.lang.Long parentId

parentFolder

protected org.apache.portals.graffito.model.core.Folder parentFolder

name

protected java.lang.String name

uri

protected java.lang.String uri

creationDate

protected java.sql.Timestamp creationDate

lastModified

protected java.sql.Timestamp lastModified

properties

protected java.util.Collection properties

ojbConcreteClass

protected java.lang.String ojbConcreteClass
Special attribute telling OJB the object's concrete type.

Constructor Detail

CmsObjectImpl

public CmsObjectImpl()
Constructor

Method Detail

getParentFolder

public org.apache.portals.graffito.model.core.Folder getParentFolder()
Specified by:
getParentFolder in interface org.apache.portals.graffito.model.core.CmsObject
Returns:
Returns the parentFolder.

setParentFolder

public void setParentFolder(org.apache.portals.graffito.model.core.Folder parentFolder)
Specified by:
setParentFolder in interface org.apache.portals.graffito.model.core.CmsObject
Parameters:
parentFolder - The parentFolder to set.

setParentId

public void setParentId(java.lang.Long parentId)
Parameters:
parentId - The parentId to set.

getParentId

public java.lang.Long getParentId()
Returns:
Returns the parentId.

getObjectId

public java.lang.Long getObjectId()
Returns:
Returns the objectId.

setObjectId

public void setObjectId(java.lang.Long objectId)
Parameters:
objectId - The objectId to set.

getName

public java.lang.String getName()
Specified by:
getName in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.getName()

setName

public void setName(java.lang.String name)
Specified by:
setName in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.setName(java.lang.String)

getUri

public java.lang.String getUri()
Specified by:
getUri in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.getUri()

setUri

public void setUri(java.lang.String uri)
Specified by:
setUri in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.setUri(java.lang.String)

getCreationDate

public java.sql.Timestamp getCreationDate()
Specified by:
getCreationDate in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.getCreationDate()

setCreationDate

public void setCreationDate(java.sql.Timestamp creationDate)
Specified by:
setCreationDate in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.setCreationDate(java.sql.Timestamp)

getLastModified

public java.sql.Timestamp getLastModified()
Specified by:
getLastModified in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.getLastModified()

setLastModified

public void setLastModified(java.sql.Timestamp lastModified)
Specified by:
setLastModified in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.setLastModified(java.sql.Timestamp)

getPath

public java.lang.String[] getPath()
Specified by:
getPath in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.getPath()

equals

public boolean equals(java.lang.Object cmsObject)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getProperties

public java.util.Collection getProperties()
Specified by:
getProperties in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.getProperties()

getProperty

public java.lang.String getProperty(java.lang.String propertyName)
Specified by:
getProperty in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.getProperty(java.lang.String)

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Specified by:
setProperty in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.setProperty(java.lang.String, java.lang.String)

setProperties

public void setProperties(java.util.Collection properties)
Specified by:
setProperties in interface org.apache.portals.graffito.model.core.CmsObject
See Also:
CmsObject.setProperties(java.util.Collection)


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.