wt.dataops.containermove
Class StandardContainerMoveService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.dataops.containermove.StandardContainerMoveService
All Implemented Interfaces:
ContainerMoveService, Manager, NetFactor, Serializable

public class StandardContainerMoveService
extends StandardManager
implements ContainerMoveService, Serializable

Use the newStandardContainerMoveService static factory method(s), not the StandardContainerMoveService 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: true

Extendable: false

See Also:
Serialized Form

Nested Class Summary
private static class StandardContainerMoveService.ClassTypeComparator
           
(package private)  class StandardContainerMoveService.ContainerMoveServiceEventListener
           
private static class StandardContainerMoveService.LocationInfo
           
private static class StandardContainerMoveService.Timer
           
 
Field Summary
private static String CLASSNAME
           
private static boolean isWCPDMInstalled
           
private static String RESOURCE
           
private static Object SECRET_HANDSHAKE
           
private static boolean TIMING
           
private static boolean VERBOSE
           
 
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
StandardContainerMoveService()
           
 
Method Summary
private  void addConflictElement(ArrayList conflictElements, MessageType messageType, WTMessage message, WTCollection objects)
           
private  void checkAllVersions(WTKeyedMap allVersions, ArrayList conflictElements)
           
private  void checkContainers(WTCollection objects, WTCollection destFolders, ArrayList conflictElements)
           
private  int checkDestFolderAccess(WTPrincipal currentUser, Class typeClass, AdminDomainRef domRef, LifeCycleTemplateReference tempRef, State lcState)
           
private  void checkLifeCycleTemplates(WTCollection objects, WTCollection destFolders, ArrayList conflictElements)
           
private  void dispatchEvent(String eventType, WTKeyedMap objs)
           
private  void getAllObjectsToMove(WTCollection objects, WTCollection containers, WTCollection folders, WTKeyedMap allMasters, WTKeyedMap allIterations, WTKeyedMap allVersions, ArrayList conflictElements, Map isLocalMoveMap)
           
private static void getAllWfProcessObjects(WfContainer container, WTCollection objs)
           
 String getConceptualClassname()
          Deprecated.  
private static QueryResult getConfigurations(WTProductMaster prodMaster)
           
private static QueryResult getContainerNodes(WfContainer container)
           
private static ObjectIdentifier getId(Object object)
           
private static QueryResult getInstances(WTProductMaster prodMaster)
           
private static LifeCycleTemplate getLifeCycleTemplateForType(Class objClass, WTContainerRef contRef)
           
private  WTContainerRef getOrgContainerRef(WTContainer cont, HashMap orgCache)
           
private  boolean isLocalMove(Mastered master, Map isLocalMoveMap)
           
private  boolean isLocalMove(WTContained contained, Folder destFolder)
           
private  boolean isMoveNeeded(Folder srcFolder, Folder destFolder)
           
private  WTSet moveAllObjects(WTKeyedMap allMasters, WTKeyedMap allVersions, WTKeyedMap allIterations)
           
 WTCollection moveAllVersions(WTValuedMap objectDestFolderMap)
          Move all versions of the input objects (WTPart, WTDocument, and EPMDocument) to a new folder.
private  void moveMasters(WTKeyedMap allMasters)
           
private  void moveProductObjects(WTKeyedMap allMasters)
           
private  void moveRepresentations(WTKeyedMap allIterations, Map isLocalMoveMap)
           
private  void moveTeamObjects(WTKeyedMap allVersions, Map isLocalMoveMap)
           
private  void moveWorkflowObjects(WTKeyedMap allVersions, Map isLocalMoveMap)
           
static StandardContainerMoveService newStandardContainerMoveService()
          Default factory for the class.
protected  void performStartupProcess()
          

Supported API: false
private  WTContained setContainer(WTContained contained, WTContainer newContainer)
           
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, registerEvents, 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

VERBOSE

private static final boolean VERBOSE

TIMING

private static final boolean TIMING

isWCPDMInstalled

private static final boolean isWCPDMInstalled

SECRET_HANDSHAKE

private static final Object SECRET_HANDSHAKE
Constructor Detail

StandardContainerMoveService

public StandardContainerMoveService()
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 StandardManager
Returns:
String

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException


Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

newStandardContainerMoveService

public static StandardContainerMoveService newStandardContainerMoveService()
                                                                    throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardContainerMoveService
Throws:
WTException

moveAllVersions

public WTCollection moveAllVersions(WTValuedMap objectDestFolderMap)
                             throws WTException
Move all versions of the input objects (WTPart, WTDocument, and EPMDocument) to a new folder. This folder may reside in a different container than the source folder. If so, the masters for the objects and other objects associated with the objects being moved are also moved. Returns a collection containing the moved objects.

Supported API: true

Specified by:
moveAllVersions in interface ContainerMoveService
Parameters:
objectDestFolderMap - Map where the key is the object to be moved and the value is the destination folder.
Returns:
WTCollection
Throws:
WTException

moveMasters

private void moveMasters(WTKeyedMap allMasters)
                  throws WTException
Throws:
WTException

moveWorkflowObjects

private void moveWorkflowObjects(WTKeyedMap allVersions,
                                 Map isLocalMoveMap)
                          throws WTException
Throws:
WTException

moveProductObjects

private void moveProductObjects(WTKeyedMap allMasters)
                         throws WTException
Throws:
WTException

moveRepresentations

private void moveRepresentations(WTKeyedMap allIterations,
                                 Map isLocalMoveMap)
                          throws WTException
Throws:
WTException

moveTeamObjects

private void moveTeamObjects(WTKeyedMap allVersions,
                             Map isLocalMoveMap)
                      throws WTException
Throws:
WTException

checkContainers

private void checkContainers(WTCollection objects,
                             WTCollection destFolders,
                             ArrayList conflictElements)
                      throws WTException
Throws:
WTException

checkAllVersions

private void checkAllVersions(WTKeyedMap allVersions,
                              ArrayList conflictElements)
                       throws WTException
Throws:
WTException

getOrgContainerRef

private WTContainerRef getOrgContainerRef(WTContainer cont,
                                          HashMap orgCache)
                                   throws WTException
Throws:
WTException

checkLifeCycleTemplates

private void checkLifeCycleTemplates(WTCollection objects,
                                     WTCollection destFolders,
                                     ArrayList conflictElements)
                              throws WTException
Throws:
WTException

getAllObjectsToMove

private void getAllObjectsToMove(WTCollection objects,
                                 WTCollection containers,
                                 WTCollection folders,
                                 WTKeyedMap allMasters,
                                 WTKeyedMap allIterations,
                                 WTKeyedMap allVersions,
                                 ArrayList conflictElements,
                                 Map isLocalMoveMap)
                          throws WTException
Throws:
WTException

dispatchEvent

private void dispatchEvent(String eventType,
                           WTKeyedMap objs)
                    throws WTException
Throws:
WTException

getConfigurations

private static QueryResult getConfigurations(WTProductMaster prodMaster)
                                      throws WTException
Throws:
WTException

getInstances

private static QueryResult getInstances(WTProductMaster prodMaster)
                                 throws WTException
Throws:
WTException

moveAllObjects

private WTSet moveAllObjects(WTKeyedMap allMasters,
                             WTKeyedMap allVersions,
                             WTKeyedMap allIterations)
                      throws WTException
Throws:
WTException

getAllWfProcessObjects

private static void getAllWfProcessObjects(WfContainer container,
                                           WTCollection objs)
                                    throws WTException
Throws:
WTException

getContainerNodes

private static QueryResult getContainerNodes(WfContainer container)
                                      throws WTException
Throws:
WTException

getId

private static ObjectIdentifier getId(Object object)

setContainer

private WTContained setContainer(WTContained contained,
                                 WTContainer newContainer)
                          throws WTException
Throws:
WTException

addConflictElement

private void addConflictElement(ArrayList conflictElements,
                                MessageType messageType,
                                WTMessage message,
                                WTCollection objects)
                         throws WTException
Throws:
WTException

isLocalMove

private boolean isLocalMove(WTContained contained,
                            Folder destFolder)

isLocalMove

private boolean isLocalMove(Mastered master,
                            Map isLocalMoveMap)

isMoveNeeded

private boolean isMoveNeeded(Folder srcFolder,
                             Folder destFolder)

checkDestFolderAccess

private int checkDestFolderAccess(WTPrincipal currentUser,
                                  Class typeClass,
                                  AdminDomainRef domRef,
                                  LifeCycleTemplateReference tempRef,
                                  State lcState)
                           throws WTException
Throws:
WTException

getLifeCycleTemplateForType

private static LifeCycleTemplate getLifeCycleTemplateForType(Class objClass,
                                                             WTContainerRef contRef)
                                                      throws WTException
Throws:
WTException