org.apache.wvcm
Class VersionImpl

java.lang.Object
  extended by org.apache.wvcm.ResourceImpl
      extended by org.apache.wvcm.VersionImpl
All Implemented Interfaces:
Resource, Version
Direct Known Subclasses:
BaselineImpl, FolderVersionImpl

public class VersionImpl
extends ResourceImpl
implements Version

Implementation of Version.

Version:
$Revision: 1.1.1.1.2.3 $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wvcm.ResourceImpl
ResourceImpl.LoadedProperties, ResourceImpl.XmlPropertyValue
 
Nested classes/interfaces inherited from interface javax.wvcm.Version
Version.Fork
 
Nested classes/interfaces inherited from interface javax.wvcm.Resource
Resource.GenericResourceImpl
 
Field Summary
 
Fields inherited from class org.apache.wvcm.ResourceImpl
dnsp, MISSING_PROPERTY_VALUE
 
Constructor Summary
VersionImpl(Location location)
          Constructor
 
Method Summary
 void doAddLabel(java.lang.String label)
          Add the specified label to this Version.
 void doRemoveLabel(java.lang.String label)
          Removes the specified label from this Version.
 void doSetLabel(java.lang.String label)
          Set the specified label on this Version.
 java.util.List getActivityList()
          Return a list of Activity objects that identify the activities to which this Version contributes, and on which lines of descent this version appears.
 int getCheckinFork()
          Return the CheckinFork property, which determines whether this Version can be given more than one successor.
 int getCheckoutFork()
          Return the CheckoutFork property, which determines whether a version-controlled resource selecting this Version can be checked out when it already has a successor version.
 java.util.List getCheckoutList()
          Return a list of ControllableResource objects that identify the checked-out version-controlled resources that refer to this Version in their CheckedOut property.
 java.util.List getLabelNameList()
          Return a list of String objects that identify labels that currently select this Version.
 java.util.List getPredecessorList()
          Return a list of Version objects that identify the predecessors of this Version.
 java.util.List getSuccessorList()
          Return a list of Version objects that identify the versions that are the successors of this Version.
 VersionHistory getVersionHistory()
          Return the version history resource that contains this Version.
 java.lang.String getVersionName()
          Return the version name of this Version.
 void setActivityList(java.util.List activityList)
          Set the ActivityList property.
 void setCheckinFork(int val)
          Set the CheckinFork property.
 void setCheckoutFork(int val)
          Set the CheckoutFork property.
 
Methods inherited from class org.apache.wvcm.ResourceImpl
accessor, addLockToken, commit, doBind, doCopy, doLock, doLock, doReadAccessControlList, doReadContent, doReadProperties, doRebind, doSearch, doUnbind, doUnlock, doUnlock, doWriteAccessControlList, doWriteContent, doWriteProperties, equals, folderAccessor, folderAccessor, getActiveLockTokens, getAttribute, getClientHttpMethod, getComment, getContentCharacterSet, getContentIdentifier, getContentLanguage, getContentLength, getContentType, getCreationDate, getCreationUser, getCreatorDisplayName, getDisplayName, getHttpMethod, getLastModified, getLockTokens, getModificationDate, getModificationUser, getOwner, getParentBindingList, getPrincipalFolderList, getPrivilegeFolderList, getProperty, getPropertyContainer, getPropertyNameList, getProviderList, getResourceIdentifier, getSupportedPrivilegeList, getUpdatedPropertyList, getWorkspaceFolderList, hashCode, listOfRemovedAttributes, listOfSetProperties, loadedProperties, location, removeAttribute, removeLockToken, setAttribute, setComment, setContentCharacterSet, setContentLanguage, setContentType, setCreatorDisplayName, setDisplayName, setHttpMethod, setHttpMethod, setProperty, setPropertyContainer, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.wvcm.Resource
doBind, doCopy, doLock, doLock, doReadAccessControlList, doReadContent, doReadProperties, doRebind, doSearch, doUnbind, doUnlock, doUnlock, doWriteAccessControlList, doWriteContent, doWriteProperties, getAttribute, getComment, getContentCharacterSet, getContentIdentifier, getContentLanguage, getContentLength, getContentType, getCreationDate, getCreationUser, getCreatorDisplayName, getDisplayName, getLastModified, getLockTokens, getModificationDate, getModificationUser, getOwner, getParentBindingList, getPrincipalFolderList, getPrivilegeFolderList, getProperty, getPropertyNameList, getProviderList, getResourceIdentifier, getSupportedPrivilegeList, getUpdatedPropertyList, getWorkspaceFolderList, location, removeAttribute, setAttribute, setComment, setContentCharacterSet, setContentLanguage, setContentType, setCreatorDisplayName, setDisplayName, setProperty
 

Constructor Detail

VersionImpl

public VersionImpl(Location location)
Constructor

Method Detail

doSetLabel

public void doSetLabel(java.lang.String label)
                throws WvcmException
Set the specified label on this Version. If the label is already on another version in the same version history, the label is removed from that other version.

Parameters:
label - The label to set.
Throws:
WvcmException

getCheckoutList

public java.util.List getCheckoutList()
                               throws WvcmException
Return a list of ControllableResource objects that identify the checked-out version-controlled resources that refer to this Version in their CheckedOut property.

Specified by:
getCheckoutList in interface Version
Throws:
WvcmException - if this Version was not created with PropertyName.CHECKOUT_LIST as a wanted property.
See Also:
ControllableResource.getCheckedOut

getVersionHistory

public VersionHistory getVersionHistory()
                                 throws WvcmException
Return the version history resource that contains this Version.

Specified by:
getVersionHistory in interface Version
Throws:
WvcmException - if this Version was not created with PropertyName.VERSION_HISTORY as a wanted property.

setActivityList

public void setActivityList(java.util.List activityList)
Set the ActivityList property.

Specified by:
setActivityList in interface Version
Parameters:
activityList - A list of Activity objects that specify the new ActivityList property for this Version.

getLabelNameList

public java.util.List getLabelNameList()
                                throws WvcmException
Return a list of String objects that identify labels that currently select this Version.

Specified by:
getLabelNameList in interface Version
Throws:
WvcmException - if this Version was not created with PropertyName.LABEL_NAME_LIST as a wanted property.

setCheckoutFork

public void setCheckoutFork(int val)
Set the CheckoutFork property.

Specified by:
setCheckoutFork in interface Version
Parameters:
val - The new CheckoutFork value for this Version.

getSuccessorList

public java.util.List getSuccessorList()
                                throws WvcmException
Return a list of Version objects that identify the versions that are the successors of this Version.

Specified by:
getSuccessorList in interface Version
Throws:
WvcmException - if this Version was not created with PropertyName.SUCCESSOR_LIST as a wanted property.

getVersionName

public java.lang.String getVersionName()
                                throws WvcmException
Return the version name of this Version.

Specified by:
getVersionName in interface Version
Throws:
WvcmException - if this Version was not created with PropertyName.VERSION_NAME as a wanted property.

doRemoveLabel

public void doRemoveLabel(java.lang.String label)
                   throws WvcmException
Removes the specified label from this Version.

Parameters:
label - The label to remove.
Throws:
WvcmException

doAddLabel

public void doAddLabel(java.lang.String label)
                throws WvcmException
Add the specified label to this Version.

Parameters:
label - The label to add.
Throws:
WvcmException

getCheckinFork

public int getCheckinFork()
                   throws WvcmException
Return the CheckinFork property, which determines whether this Version can be given more than one successor.

Specified by:
getCheckinFork in interface Version
Throws:
WvcmException - if this Version was not created with PropertyName.CHECKIN_FORK as a wanted property.

getPredecessorList

public java.util.List getPredecessorList()
                                  throws WvcmException
Return a list of Version objects that identify the predecessors of this Version.

Specified by:
getPredecessorList in interface Version
Throws:
WvcmException - if this Version was not created with PropertyName.PREDECESSOR_LIST as a wanted property.

setCheckinFork

public void setCheckinFork(int val)
Set the CheckinFork property.

Specified by:
setCheckinFork in interface Version
Parameters:
val - The new CheckinFork value for this Version.

getCheckoutFork

public int getCheckoutFork()
                    throws WvcmException
Return the CheckoutFork property, which determines whether a version-controlled resource selecting this Version can be checked out when it already has a successor version.

Specified by:
getCheckoutFork in interface Version
Throws:
WvcmException - if this Version was not created with PropertyName.CHECKOUT_FORK as a wanted property.

getActivityList

public java.util.List getActivityList()
                               throws WvcmException
Return a list of Activity objects that identify the activities to which this Version contributes, and on which lines of descent this version appears.

Specified by:
getActivityList in interface Version
Throws:
WvcmException - if this Version was not created with PropertyName.ACTIVITY_LIST as a wanted property.


Copyright (c) 2003 - Apache Software Foundation