wt.vc
Class StandardVersionControlSvrService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.vc.StandardVersionControlService
          extended bywt.vc.StandardVersionControlSvrService
All Implemented Interfaces:
Manager, NetFactor, Serializable, VersionControlService, VersionControlSvrService

public class StandardVersionControlSvrService
extends StandardVersionControlService
implements VersionControlSvrService

Implementation of the Server only VersionControlService. See interface documentation

Use the newStandardVersionControlSvrService static factory method(s), not the StandardVersionControlSvrService constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wt.vc.StandardVersionControlService
 
Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Fields inherited from class wt.vc.StandardVersionControlService
MULTI_DELETE_MODE, SVCS_CONTROLBRANCH_CREATE_IGNORE_KEY, SVCS_DELETE_KEY
 
Fields inherited from class wt.services.StandardManager
 
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE
 
Constructor Summary
StandardVersionControlSvrService()
           
 
Method Summary
 Iterated appendIteration(long branch_id, Iterated iteration)
          Append iteration will find the last iteration in the specified branch and append the passed in iteration to the end of the branch.
 OneOffVersioned constructNewOneOffVersion(OneOffVersioned version)
          Constructs a new in-line version from the given version.
 WTValuedMap constructNewOneOffVersions(WTCollection versions)
          

Supported API: false
private  void dbAppendIteration(Iterated latestIteration, Iterated newIteration)
          Manage interface with the persistence layer to append an iteration onto an existing version tree.
private  void dbInsertIteration(Iterated latestIteration, Iterated newIteration)
          Manage interface with the persistence layer to insert an iteration into an existing version tree.
 void deleteIteration()
          NOT AVAILABLE AT THIS TIME

Supported API: false
protected  Persistable duplicate(Persistable original)
           
 String getConceptualClassname()
          Deprecated.  
 void insertIteration()
          NOT AVAILABLE AT THIS TIME

Supported API: false
 Iterated newIterationForNonWTObject(Iterated iteration)
          Makes a new iteration for non - WTObject to support 887507.
static StandardVersionControlSvrService newStandardVersionControlSvrService()
          Default factory for the class.
protected  void performStartupProcess()
          Overrides the startup process specific to the versioning service to provide custom startup for event subscription.
 
Methods inherited from class wt.vc.StandardVersionControlService
addDirective, allIterationsFrom, allIterationsOf, allVersionsFrom, allVersionsOf, allVersionsOf, allVersionsOf, appendIteration, assignOneOffSeries, copyBranchInfo, deleteIterations, deleteIterations, dispatchVetoableEvent, dispatchVetoableEvent, dispatchVetoableEvent, dispatchVetoableEvent, dispatchVetoableMultiObjectEvent, dispatchVetoableMultiObjectEvent, getInwardsMergesOf, getLatestIteration, getLatestIterations, getOutwardMergesOf, getPredBranchPointUfid, getUfidOf, insertIteration, insertNode, insertNode, isFirstIteration, iterationsBetween, iterationsOf, iterationsOf, iterationsOf, iterationsOf, merge, merge, newAdHocStringVersion, newBranch, newIteration, newIteration, newIterations, newIterations, newOneOffVersion, newStandardVersionControlService, newUncontrolledVersion, newVersion, newVersion, newVersionable, newVersionables, newVersions, newVersions, orderedIterationsOf, predecessorOf, refresh, refsEqual, registerEvents, remove, remove, removeIterations, removeMasters, restore, rollback, rollup, setSuccessorVersionable, setSuccessorVersionable, signalPersistenceOf, signalPersistenceOf, storeControlBranchOf, storeMasterOf, successorsOf, successorsOf, supersede, supersede, updateHistoricalIterations, validateDeletionOf, validateReferencesOf, validateReferencesOf
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

StandardVersionControlSvrService

public StandardVersionControlSvrService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardVersionControlService
Returns:
String

dbInsertIteration

private void dbInsertIteration(Iterated latestIteration,
                               Iterated newIteration)
                        throws WTException
Manage interface with the persistence layer to insert an iteration into an existing version tree.

Parameters:
latestIteration -
newIteration -
Throws:
WTException

dbAppendIteration

private void dbAppendIteration(Iterated latestIteration,
                               Iterated newIteration)
                        throws WTException
Manage interface with the persistence layer to append an iteration onto an existing version tree.

Parameters:
latestIteration -
newIteration -
Throws:
WTException

newStandardVersionControlSvrService

public static StandardVersionControlSvrService newStandardVersionControlSvrService()
                                                                            throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardVersionControlSvrService
Throws:
WTException

appendIteration

public Iterated appendIteration(long branch_id,
                                Iterated iteration)
                         throws WTException
Append iteration will find the last iteration in the specified branch and append the passed in iteration to the end of the branch. It will replace new iteration's iterationInfo and versionInfo with that of the latest.

Supported API: false

Specified by:
appendIteration in interface VersionControlSvrService
Parameters:
branch_id -
iteration -
Returns:
Iterated
Throws:
WTException

deleteIteration

public void deleteIteration()
NOT AVAILABLE AT THIS TIME

Supported API: false

Specified by:
deleteIteration in interface VersionControlSvrService

insertIteration

public void insertIteration()
NOT AVAILABLE AT THIS TIME

Supported API: false

Specified by:
insertIteration in interface VersionControlSvrService

constructNewOneOffVersion

public OneOffVersioned constructNewOneOffVersion(OneOffVersioned version)
                                          throws WTException,
                                                 VersionControlException,
                                                 WTPropertyVetoException
Constructs a new in-line version from the given version. This method does no access control checking since it assumes that it is being wrapped by a higher level method which is reponsible for the actual business operation. When persisted, a one-off version identifier will be assigned to the object.

Supported API: false

Specified by:
constructNewOneOffVersion in interface VersionControlSvrService
Parameters:
version -
Returns:
OneOffVersioned
Throws:
WTException
VersionControlException
WTPropertyVetoException

constructNewOneOffVersions

public WTValuedMap constructNewOneOffVersions(WTCollection versions)
                                       throws WTException,
                                              VersionControlException,
                                              WTPropertyVetoException


Supported API: false

Specified by:
constructNewOneOffVersions in interface VersionControlSvrService
Parameters:
versions -
Returns:
WTValuedMap
Throws:
WTException
VersionControlException
WTPropertyVetoException

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Description copied from class: StandardVersionControlService
Overrides the startup process specific to the versioning service to provide custom startup for event subscription. During subscription an anonymous inner class adapter is created per subscription to handle each specific event of interest.

Supported API: false

Overrides:
performStartupProcess in class StandardVersionControlService
Throws:
ManagerException

newIterationForNonWTObject

public Iterated newIterationForNonWTObject(Iterated iteration)
                                    throws WTException,
                                           VersionControlException
Makes a new iteration for non - WTObject to support 887507. This is a tempory fix only in support of R6.0 A different solution will be provided by PDM app's to make this chnage un-necessary

Supported API: true

Specified by:
newIterationForNonWTObject in interface VersionControlSvrService
Parameters:
iteration -
Returns:
Iterated
Throws:
WTException
VersionControlException
WTPropertyVetoException

duplicate

protected Persistable duplicate(Persistable original)
                         throws WTException
Throws:
WTException