com.bea.content.el.support
Class VersionServiceImpl

java.lang.Object
  extended by com.bea.content.el.support.VersionServiceImpl

public class VersionServiceImpl
extends Object

Provides versioning services to NodeWrapperImpl.

Examples:

     ${myNode.versions.allVersions}
     ${myNode.versions.versionById['3'].propertyMap['myNamedProperty'].value.stringValue}
     ${myNode.versions.latest.versionComment}
 

See Also
NodeWrapperImpl, IVersionManager

Method Summary
 VersionWrapperImpl[] getAllVersions()
          Returns all versions for a particular node.
 VersionWrapperImpl getLatest()
          Returns the latest published version of a particular node.
 VersionByIdServiceImpl getVersionById()
          Returns a service to retrieve a version by ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLatest

public VersionWrapperImpl getLatest()
Returns the latest published version of a particular node.

Returns
The latest version of a node, if there is one. Returns null otherwise.

getAllVersions

public VersionWrapperImpl[] getAllVersions()
Returns all versions for a particular node.

Returns
The array of com.bea.content.virtual.version.Version or null if there are none, or an exception is thrown.

getVersionById

public VersionByIdServiceImpl getVersionById()
Returns a service to retrieve a version by ID.

Returns
VersionByIdServiceImpl


Copyright © 2011, Oracle. All rights reserved.