org.apache.portals.graffito.model.core
Interface CmsObject

All Known Subinterfaces:
Content, Document, Folder, Link, VersionnedContent

public interface CmsObject

The CmsObject interface is the ancestor for all Cms objects present into the content tree (Document, folder, link, ...).

Version:
$Id: CmsObject.java,v 1.1 2004/12/22 21:16:10 christophe Exp $
Author:
David Sean Taylor

Field Summary
static java.lang.String URI_SEPARATOR
          URI Path Separator
 
Method Summary
 java.sql.Timestamp getCreationDate()
          Get the document's creation date
 java.sql.Timestamp getLastModified()
          Get the last modified date for this document
 java.lang.String getName()
          Get the Name
 Folder getParentFolder()
          Get the parent folder
 java.lang.String[] getPath()
          Return the splitted uri
 java.util.Collection getProperties()
          Get a collection of all non standard properties for this object
 java.lang.String getProperty(java.lang.String name)
          Get a named property for this object
 java.lang.String getUri()
          Get the object's URI, a unique resource identifier
 void setCreationDate(java.sql.Timestamp creationDate)
          Set the creation date for this document
 void setLastModified(java.sql.Timestamp lastModified)
          Set the last modified date for this document
 void setName(java.lang.String v)
          Set the value of Name
 void setParentFolder(Folder parentFolder)
          Set the parent folder
 void setProperties(java.util.Collection properties)
          Set the properties
 void setProperty(java.lang.String name, java.lang.String property)
          Sets a named property for this string
 void setUri(java.lang.String uri)
          Set the object's URI, a unique resource identifier
 

Field Detail

URI_SEPARATOR

static final java.lang.String URI_SEPARATOR
URI Path Separator

See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Get the Name

Returns:
String

setName

void setName(java.lang.String v)
Set the value of Name

Parameters:
v - new value

getUri

java.lang.String getUri()
Get the object's URI, a unique resource identifier

Returns:
String the URI value

setUri

void setUri(java.lang.String uri)
Set the object's URI, a unique resource identifier

Parameters:
uri - The uri to set

getParentFolder

Folder getParentFolder()
Get the parent folder

Returns:
Folder the folder which contains this object

setParentFolder

void setParentFolder(Folder parentFolder)
Set the parent folder

Parameters:
parentFolder - the folder which contains this object

getLastModified

java.sql.Timestamp getLastModified()
Get the last modified date for this document

Returns:
Date

setLastModified

void setLastModified(java.sql.Timestamp lastModified)
Set the last modified date for this document

Parameters:
lastModified - the new last modified date value

getCreationDate

java.sql.Timestamp getCreationDate()
Get the document's creation date

Returns:
Date

setCreationDate

void setCreationDate(java.sql.Timestamp creationDate)
Set the creation date for this document

Parameters:
creationDate - The new creation date value

getPath

java.lang.String[] getPath()
Return the splitted uri

Returns:
an array of String matching to the cms object path

getProperties

java.util.Collection getProperties()
Get a collection of all non standard properties for this object

Returns:
a collection of properties

setProperties

void setProperties(java.util.Collection properties)
Set the properties

Parameters:
properties - the new properties to set

getProperty

java.lang.String getProperty(java.lang.String name)
Get a named property for this object

Parameters:
name - of the property
Returns:
the property as an string

setProperty

void setProperty(java.lang.String name,
                 java.lang.String property)
Sets a named property for this string

Parameters:
name -
property -


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