com.bea.content.virtual.version
Class Version

java.lang.Object
  extended by com.bea.content.virtual.version.VersionableContent
      extended by com.bea.content.virtual.version.Version
All Implemented Interfaces
Serializable

public class Version
extends VersionableContent
implements Serializable

Version maintains information on the verion of a VirtualNode. The Version object is created by the Library Services API and it's not intended to be constructed by the customer directly.

Methods which return an com.bea.content.paging.ISortableFilterablePagedList from IVersionManager can sort and filter the responses. For a discussion on paging, sorting and filtering, see com.bea.content.paging and ContentListKeys. Native sortable properties for the BEA Repository are found via the ISortablePagedList.getNativeSortableProperties() method on a paged list of Node objects.

For Versions in the BEA Repository, the current list of native sortable and filterable properties is:

See Also
Serialized Form

Constructor Summary
Version(int status, String comment, Property[] properties, String versionName, String modifiedBy, Calendar modifiedDate)
          Deprecated  
Version(int status, String comment, Property[] properties, String versionName, String modifiedBy, Calendar modifiedDate, VirtualNode virtualNode)
          Deprecated Version should not have the virtual node associated with it. Please use the constructor which uses the NodeId (InternalVersion)
 
Method Summary
 String getModifiedBy()
          Gets the id of the last user that modified this version.
 Calendar getModifiedDate()
          Gets the date this version was last modified.
 ID getNodeId()
          Return the NodeId associated with the version
 String getVersionName()
          Gets the name of this version.
 VirtualNode getVirtualNode()
          Deprecated Due to security concerns. Please use getNodeId() instead. This will return null for versions returned via meta-data search queries.
 String toString()
          Returns the attributes of this Node in a String.
 
Methods inherited from class com.bea.content.virtual.version.VersionableContent
addProperty, getComment, getProperties, getProperties, getProperty, getStatus, setComment, setProperties, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Version

public Version(int status,
               String comment,
               Property[] properties,
               String versionName,
               String modifiedBy,
               Calendar modifiedDate)
Deprecated 


Version

public Version(int status,
               String comment,
               Property[] properties,
               String versionName,
               String modifiedBy,
               Calendar modifiedDate,
               VirtualNode virtualNode)
Deprecated Version should not have the virtual node associated with it. Please use the constructor which uses the NodeId (InternalVersion)

Create a new Version object. The Version object is created by the Library Services API and it's not intended to be constructed by the customer directly.

Parameters
status - Workflow status.
comment - User created comment for the version.
properties - The node properties for this version.
versionName - The name of this version, ie "1", "2", etc.
modifiedBy - The user that modified this version.
modifiedDate - The date that this version was modified.
virtualNode - The VirtualNode that this version belongs to.
Method Detail

getVersionName

public String getVersionName()
Gets the name of this version.


getModifiedBy

public String getModifiedBy()
Gets the id of the last user that modified this version.


getModifiedDate

public Calendar getModifiedDate()
Gets the date this version was last modified.


getVirtualNode

public VirtualNode getVirtualNode()
Deprecated Due to security concerns. Please use getNodeId() instead. This will return null for versions returned via meta-data search queries.

Gets the VirtualNode object that is associated with this Version


getNodeId

public ID getNodeId()
Return the NodeId associated with the version

Returns
The NodeID

toString

public String toString()
Returns the attributes of this Node in a String.

Overrides:
toString in class VersionableContent


Copyright © 2006 BEA Systems, Inc. All Rights Reserved