com.ithit.webdav.server.deltav
Interface DeltaVItem

All Superinterfaces:
HierarchyItem
All Known Subinterfaces:
Version, VersionableItem

public interface DeltaVItem
extends HierarchyItem

Base interface for items that support versioning and item versions (DeltaV items).

This interface defines properties common to all items that support versioning and item versions. It provides the means of getting and setting comments and author name when creating new version. The author of the version is set and get via setCreatorDisplayName(java.lang.String) and comment via setComment(java.lang.String).


Method Summary
 java.lang.String getComment()
          Retrieves brief comment about a resource that is suitable for presentation to a user.
 java.lang.String getCreatorDisplayName()
          Retrieves display name of the user that created this item.
 void setComment(java.lang.String comment)
          Sets brief comment about a resource that is suitable for presentation to a user.
 void setCreatorDisplayName(java.lang.String name)
          Sets display name of the user that created this item.
 
Methods inherited from interface com.ithit.webdav.server.HierarchyItem
copyTo, delete, getCreated, getModified, getName, getPath, getProperties, getPropertyNames, moveTo, updateProperties
 

Method Detail

getComment

java.lang.String getComment()
                            throws ServerException
Retrieves brief comment about a resource that is suitable for presentation to a user.

Returns:
comment string.
Throws:
ServerException - in case of failure.

setComment

void setComment(java.lang.String comment)
                throws ServerException
Sets brief comment about a resource that is suitable for presentation to a user.

This property can be used to indicate why that version was created.

Parameters:
comment - comment string.
Throws:
ServerException - in case of failure.

getCreatorDisplayName

java.lang.String getCreatorDisplayName()
                                       throws ServerException
Retrieves display name of the user that created this item.

Returns:
user name.
Throws:
ServerException - in case of error.

setCreatorDisplayName

void setCreatorDisplayName(java.lang.String name)
                           throws ServerException
Sets display name of the user that created this item.

This should be a description of the creator of the resource that is suitable for presentation to a user. Can be used to indicate who created that version.

Parameters:
name - user name.
Throws:
ServerException - in case of error.


Copyright © 2009 ITHit. All Rights Reserved.