org.apache.jetspeed.page.document.impl
Class DocumentImpl

java.lang.Object
  extended by org.apache.jetspeed.om.page.impl.BaseElementImpl
      extended by org.apache.jetspeed.page.document.impl.NodeImpl
          extended by org.apache.jetspeed.page.document.impl.DocumentImpl
All Implemented Interfaces:
SecuredResource, BaseElement, Document, Node
Direct Known Subclasses:
LinkImpl, PageImpl, PageSecurityImpl

public abstract class DocumentImpl
extends NodeImpl
implements Document

DocumentImpl

Version:
$Id$
Author:
Randy Watler

Field Summary
 
Fields inherited from interface org.apache.jetspeed.page.document.Node
PATH_SEPARATOR, PATH_SEPARATOR_CHAR
 
Constructor Summary
DocumentImpl(SecurityConstraintsImpl constraints)
           
 
Method Summary
 java.lang.String getTitle()
          Returns the title in the default Locale
 java.lang.String getVersion()
          Gets the version number
 boolean isDirty()
           isDirty
 void setDirty(boolean dirty)
           setDirty
 void setVersion(java.lang.String version)
          Sets the version number
 
Methods inherited from class org.apache.jetspeed.page.document.impl.NodeImpl
checkConstraints, checkPermissions, defaultTitleFromName, getCanonicalNodePath, getEffectivePageSecurity, getLogicalPermissionPath, getMetadata, getName, getPageMetadata, getParent, getPath, getPhysicalPermissionPath, getShortTitle, getTitle, getType, getUrl, isHidden, newPageMetadata, setHidden, setName, setParent, setPath
 
Methods inherited from class org.apache.jetspeed.om.page.impl.BaseElementImpl
checkAccess, checkConstraints, checkPermissions, checkPermissions, equals, getConstraintsEnabled, getId, getPermissionsEnabled, getSecurityConstraints, getShortTitle, grantViewActionAccess, hashCode, newSecurityConstraint, newSecurityConstraints, resetCachedSecurityConstraints, setConstraintsEnabled, setPermissionsEnabled, setSecurityConstraints, setShortTitle, setTitle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.page.document.Node
getMetadata, getName, getParent, getPath, getShortTitle, getTitle, getType, getUrl, isHidden, setHidden, setParent, setPath
 
Methods inherited from interface org.apache.jetspeed.om.page.BaseElement
getId, getShortTitle, setShortTitle, setTitle
 
Methods inherited from interface org.apache.jetspeed.om.common.SecuredResource
checkAccess, checkConstraints, checkPermissions, getConstraintsEnabled, getPermissionsEnabled, getSecurityConstraints, newSecurityConstraint, newSecurityConstraints, setSecurityConstraints
 

Constructor Detail

DocumentImpl

public DocumentImpl(SecurityConstraintsImpl constraints)
Method Detail

getTitle

public java.lang.String getTitle()
Description copied from interface: BaseElement
Returns the title in the default Locale

Specified by:
getTitle in interface BaseElement
Overrides:
getTitle in class BaseElementImpl
Returns:
the page title

getVersion

public java.lang.String getVersion()
Description copied from interface: Document
Gets the version number

Specified by:
getVersion in interface Document
Returns:
version number is a string composed of optionally point separated digits

setVersion

public void setVersion(java.lang.String version)
Description copied from interface: Document
Sets the version number

Specified by:
setVersion in interface Document
Parameters:
version - version number is a string composed of optional point separated digits

isDirty

public boolean isDirty()
Description copied from interface: Document

isDirty

Whether this node is dirty, i.e. should be updated in the persistent store.

Specified by:
isDirty in interface Document

setDirty

public void setDirty(boolean dirty)
Description copied from interface: Document

setDirty

Flag the node as dirty / clean, i.e. should be resp. should not be updated in the persistent store

Specified by:
setDirty in interface Document


Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.