com.centrasite.control.repository.items
Class RepositoryHistoryItem

java.lang.Object
  extended by com.centrasite.control.AbstractItem
      extended by com.centrasite.control.repository.items.RepositoryObjectItem
          extended by com.centrasite.control.repository.items.RepositoryHistoryItem
All Implemented Interfaces:
Item

public class RepositoryHistoryItem
extends RepositoryObjectItem


Field Summary
 
Fields inherited from class com.centrasite.control.repository.items.RepositoryObjectItem
DEDICATED_PROPERTIES
 
Fields inherited from class com.centrasite.control.AbstractItem
rcs_id
 
Constructor Summary
RepositoryHistoryItem(Connector connector, RepositoryFileItem parent, javax.wvcm.Resource version)
           
 
Method Summary
 java.lang.String getComment()
          Get comment.
 java.lang.String getContentLength()
          Get content length.
 java.lang.String getDescription()
           
 java.lang.String getHistoryName()
          Gets name of the WebDAV object for in current version.
 java.lang.String getImageURL()
           
 java.lang.String getName()
          Get version name.
 java.lang.String getNameEx()
          Get version name.
 ReportInterface getReport()
          Get report to be used when selecting given object in tree.
 ReportInterface getReportForDetailView()
          Get report to be used for data access in detail view of THIS Item - not for child nodes!
 java.lang.String getUrl()
          Obtain the URL to be used to access version of repository file
 java.lang.Float getVersion()
          Get version number.
 boolean hasChildren()
          Indicates whether childs objects exist.
 boolean isReadOnly()
           
 void setComment(java.lang.String value)
          Set comment.
 
Methods inherited from class com.centrasite.control.repository.items.RepositoryObjectItem
checkAndDeleteExternaLinkReferencies, clearProperties, create, createItem, equals, getAccessControlElements, getAutoVersion, getChildren, getChildren, getContentType, getCreationDate, getCurrentUserPermissionItem, getDocumentName, getKey, getModificationDate, getModifiedDateObject, getOwner, getParent, getPath, getProperties, getProvider, getRepositoryConnector, getResource, getTrimmedPath, getTrimmedPath, hashCode, hasNoChildren, isLocationChanged, isModified, isReferenced, isReferencedByMyCentraSite, rename, save, save, setAccessControlElements, setDisplayName, setLocationChanged, setNewLocation, setParent, setProperties, setResource, toString
 
Methods inherited from class com.centrasite.control.AbstractItem
addBulkCommand, addCommand, addDetailViewTab, cannotHaveChildren, clearCache, getBulkCommands, getCommand, getCommand, getCommands, getConnector, getDefaultCommand, getDetailsCommand, getDetailViewTabs, getItem, getLanguage, getLocale, getNonPermissionAccessControlElements, getPersistanceLocale, getPrivilegeDescriptor, getRelatedItems, hasRequiredAttribute, isLocked, isStandalone, isSubTabModified, removeCommand, replaceCommand, setCommandEnabled, setConnector, setDefaultCommand, setDetailsCommand, setLocked, setRelatedItems, setRequiredAttribute, setTabModified, showDetailView, showReport
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepositoryHistoryItem

public RepositoryHistoryItem(Connector connector,
                             RepositoryFileItem parent,
                             javax.wvcm.Resource version)
Method Detail

hasChildren

public boolean hasChildren()
Indicates whether childs objects exist.

Specified by:
hasChildren in class RepositoryObjectItem
Returns:
false if childs exist.

getName

public java.lang.String getName()
Get version name.

Specified by:
getName in interface Item
Overrides:
getName in class RepositoryObjectItem
Returns:
Version name.

getHistoryName

public java.lang.String getHistoryName()
Gets name of the WebDAV object for in current version.

Returns:
name

getNameEx

public java.lang.String getNameEx()
Get version name.

Specified by:
getNameEx in interface Item
Overrides:
getNameEx in class RepositoryObjectItem
Returns:
Version name.

getDescription

public java.lang.String getDescription()
                                throws java.lang.Exception
Specified by:
getDescription in interface Item
Overrides:
getDescription in class RepositoryObjectItem
Throws:
java.lang.Exception

getImageURL

public java.lang.String getImageURL()
Specified by:
getImageURL in interface Item
Overrides:
getImageURL in class RepositoryObjectItem

getReport

public ReportInterface getReport()
Description copied from class: AbstractItem
Get report to be used when selecting given object in tree.

Specified by:
getReport in interface Item
Overrides:
getReport in class AbstractItem

getVersion

public java.lang.Float getVersion()
Get version number.

Returns:
Version number.

getContentLength

public java.lang.String getContentLength()
                                  throws java.lang.Exception
Get content length.

Overrides:
getContentLength in class RepositoryObjectItem
Returns:
Content length
Throws:
java.lang.Exception

getReportForDetailView

public ReportInterface getReportForDetailView()
Description copied from class: AbstractItem
Get report to be used for data access in detail view of THIS Item - not for child nodes!

Specified by:
getReportForDetailView in interface Item
Overrides:
getReportForDetailView in class AbstractItem

getUrl

public java.lang.String getUrl()
Obtain the URL to be used to access version of repository file

Returns:
the URL

getComment

public java.lang.String getComment()
Description copied from class: RepositoryObjectItem
Get comment.

Overrides:
getComment in class RepositoryObjectItem
Returns:
Comment of repository node.

setComment

public void setComment(java.lang.String value)
Description copied from class: RepositoryObjectItem
Set comment.

Overrides:
setComment in class RepositoryObjectItem
Parameters:
value - Comment to set

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface Item
Overrides:
isReadOnly in class AbstractItem