|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.epm.workspaces.EPMStandardWorkspaceManager
Use the newEPMStandardWorkspaceManager
static factory method(s),
not the EPMStandardWorkspaceManager
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
Field Summary | |
private static String |
CLASSNAME
|
static String |
EPM_FAMILY_CHECKOUT
|
private static String |
EPMRESOURCE
|
static boolean |
logTime
|
private static String |
RESOURCE
|
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 | |
EPMStandardWorkspaceManager()
|
Method Summary | |
EPMWorkspace |
addToWorkspace(EPMWorkspace workspace,
WTCollection baselineables)
Add the specified baselineable objects and family table objectsto the Workspace. |
WTSet |
checkin(EPMWorkspace workspace,
WTKeyedMap toCheckin)
Checks in the given list of working copies or new objects. |
WTValuedMap |
checkout(EPMWorkspace workspace,
WTCollection objects)
Checks out the given list of objects to the given workspace folder. |
private void |
dispatchCheckoutToWorkspaceEvent(WTValuedMap checkoutMap)
|
private void |
dispatchNewToWorkspaceEvent(WTCollection newVersionObjects)
|
private static WTList |
filterNewObjects(WTCollection objects)
Given a list of Iterated objects, returns the newly created objects. |
protected static WTKeyedMap |
findWorkspaceObjects(WTCollection objects)
|
String |
getConceptualClassname()
Deprecated. |
Folder |
getDefaultFolder(EPMWorkspace workspace,
WTContainerRef containerRef,
Class classObject)
Returns the default folder to where a new object of the given class in the given workspace and container will be checked in. |
WTSet |
getNewObjects(EPMWorkspace workspace)
Returns a set of new objects in the given workspace. |
WTSet |
getNewObjects(WTCollection objects)
Given a list of objects, returns a set of new objects. |
WTSet |
getObjectsInWorkspace(EPMWorkspace workspace,
Class classObject)
Get the set of objects included in the Checkpoint associated with the workspace. |
WTKeyedMap |
getRefreshCandidates(EPMWorkspace workspace,
WTCollection baselineables)
Return a map whose keys are the input originals and whose values are the refreshed candidates. |
WTKeyedMap |
getTargetFolder(WTCollection docsAndParts,
boolean returnFolderPath)
Given a collection of new EPMDocument and WTPart, returns the target folders. |
WTKeyedMap |
getTargetLocation(EPMWorkspace workspace,
WTCollection docsAndParts,
boolean returnFolderPath)
Given a list of EPMDocument or WTPart, returns the default target folder location for new objects, the folder to where the objects will be checked in for checked out objects, and the current folder location for any other objects. |
WTKeyedMap |
getUpdateCounter(EPMWorkspace workspace)
Returns the update counter associated with the trackables in the given workspace. |
WTKeyedMap |
getUpdateCounter(WTCollection trackables)
Returns the update counter associated with Trackables. |
WTSet |
getWorkspaces(WTPrincipal user,
WTContainerRef solution)
Returns all of the workspaces associated with a given user and container. |
Integer |
getWorkspaceUpdateCounter(EPMWorkspace workspace)
Returns the update counter associated with the given workspace. |
protected void |
initialize()
Supported API: false |
static EPMStandardWorkspaceManager |
newEPMStandardWorkspaceManager()
Default factory for the class. |
protected void |
performStartupProcess()
Overrides the startup process specific to the locking service to provide custom startup for event subscription. |
EPMWorkspace |
populateWorkspace(EPMWorkspace workspace,
WTCollection baselineables)
Adds the Baselineable item iterations to the Workspace. |
private void |
processNewToWorkspaceEvent(EPMWorkspace workspace,
WTCollection newWorkspaceObjects)
For a NEW_TO_WORKSPACE event, creates EPMInitialCheckinData for EPMDocuments and WTParts, and adds the new workspace objects to workspace baseline. |
protected void |
registerEPMCacheListeners()
|
void |
registerEvents(ManagerService manager)
Overrides the registration of all applicable locking service events with the service manager. |
EPMWorkspace |
removeFromWorkspace(EPMWorkspace workspace,
WTCollection baselinables)
Remove the specified objects from the Workspace. |
void |
setTargetFolder(WTKeyedMap targetFolders)
Sets the location to the given folder for the given a collection of new objects. |
WTSet |
undoCheckout(EPMWorkspace workspace,
WTCollection workingCopies)
Undoes check out the given list of working copies from the given workspace folder. |
WTSet |
undoCheckoutAndRestoreInWorkspace(EPMWorkspace workspace,
WTCollection workingCopies)
Undoes check out the given list of working copies from the given workspace folder and restores originals in Workspace baseline. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String EPMRESOURCE
public static final String EPM_FAMILY_CHECKOUT
public static boolean logTime
Constructor Detail |
public EPMStandardWorkspaceManager()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void initialize() throws WTException
initialize
in class StandardManager
WTException
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public void registerEvents(ManagerService manager)
registerEvents
in interface Manager
registerEvents
in class StandardManager
manager
- public static EPMStandardWorkspaceManager newEPMStandardWorkspaceManager() throws WTException
WTException
public WTValuedMap checkout(EPMWorkspace workspace, WTCollection objects) throws WTException
checkout
in interface EPMWorkspaceManager
workspace
- objects
- A collection of objects to be checked out.
WTException
public WTSet undoCheckout(EPMWorkspace workspace, WTCollection workingCopies) throws WTException
undoCheckout
in interface EPMWorkspaceManager
workspace
- workingCopies
- A collection of objects to be checked out.
WTException
public WTSet checkin(EPMWorkspace workspace, WTKeyedMap toCheckin) throws WTException
checkin
in interface EPMWorkspaceManager
workspace
- toCheckin
- The keys are the working copies to be checked in and the values are CheckinOption objects. If the CheckinOption is null, the checkin comment is set to an empty string and the object is moved to the target folder.
WTException
public void setTargetFolder(WTKeyedMap targetFolders) throws WTException
setTargetFolder
in interface EPMWorkspaceManager
targetFolders
- The keys of the map are new EPMDocument or WTPart that are newly created in a workspace folder, the values are the target folder references.
WTException
public WTKeyedMap getTargetFolder(WTCollection docsAndParts, boolean returnFolderPath) throws WTException
getTargetFolder
in interface EPMWorkspaceManager
docsAndParts
- A collection of EPMDocument or WTPart newly created in a workspace.returnFolderPath
- Folder path is returned if true. Othewise, returns folder.
WTException
public WTKeyedMap getTargetLocation(EPMWorkspace workspace, WTCollection docsAndParts, boolean returnFolderPath) throws WTException
getTargetLocation
in interface EPMWorkspaceManager
workspace
- docsAndParts
- A collection of EPMDocument or WTPartreturnFolderPath
- Folder path is returned if true. Othewise, returns folder.
WTException
public WTKeyedMap getUpdateCounter(WTCollection trackables) throws WTException
getUpdateCounter
in interface EPMWorkspaceManager
trackables
- A collection of Trackable objects
WTException
public EPMWorkspace addToWorkspace(EPMWorkspace workspace, WTCollection baselineables) throws WTException
addToWorkspace
in interface EPMWorkspaceManager
workspace
- The workspace to be affected by the call.baselineables
-
WTException
public EPMWorkspace removeFromWorkspace(EPMWorkspace workspace, WTCollection baselinables) throws WTException
removeFromWorkspace
in interface EPMWorkspaceManager
workspace
- The workspace to be affected by the call.baselinables
-
WTException
public WTKeyedMap getRefreshCandidates(EPMWorkspace workspace, WTCollection baselineables) throws WTException
getRefreshCandidates
in interface EPMWorkspaceManager
workspace
- baselineables
-
WTException
public EPMWorkspace populateWorkspace(EPMWorkspace workspace, WTCollection baselineables) throws WTException
populateWorkspace
in interface EPMWorkspaceManager
workspace
- The workspace to be affected by the call.baselineables
- A collection of objects to be added (together with the related items determined by the populareRule) to the workspace.
WTException
public WTSet getObjectsInWorkspace(EPMWorkspace workspace, Class classObject) throws WTException
getObjectsInWorkspace
in interface EPMWorkspaceManager
workspace
- The workspace to be affected by the call.classObject
-
WTException
public WTSet getWorkspaces(WTPrincipal user, WTContainerRef solution) throws WTException
getWorkspaces
in interface EPMWorkspaceManager
user
- solution
-
WTException
public WTSet getNewObjects(WTCollection objects) throws WTException
getNewObjects
in interface EPMWorkspaceManager
objects
- A collection of EPMDocument or WTPart
WTException
public Folder getDefaultFolder(EPMWorkspace workspace, WTContainerRef containerRef, Class classObject) throws WTException
getDefaultFolder
in interface EPMWorkspaceManager
workspace
- containerRef
- classObject
- EPMDocument.class or WTPart.class
WTException
public WTSet undoCheckoutAndRestoreInWorkspace(EPMWorkspace workspace, WTCollection workingCopies) throws WTException
undoCheckoutAndRestoreInWorkspace
in interface EPMWorkspaceManager
workspace
- workingCopies
- A collection of objects to be checked out.
WTException
public WTKeyedMap getUpdateCounter(EPMWorkspace workspace) throws WTException
getUpdateCounter
in interface EPMWorkspaceManager
workspace
-
WTException
public Integer getWorkspaceUpdateCounter(EPMWorkspace workspace) throws WTException
getWorkspaceUpdateCounter
in interface EPMWorkspaceManager
workspace
-
WTException
public WTSet getNewObjects(EPMWorkspace workspace) throws WTException
getNewObjects
in interface EPMWorkspaceManager
workspace
-
WTException
private void dispatchNewToWorkspaceEvent(WTCollection newVersionObjects) throws WTException
WTException
private void dispatchCheckoutToWorkspaceEvent(WTValuedMap checkoutMap) throws WTException
WTException
private static WTList filterNewObjects(WTCollection objects) throws WTException
objects
- a list of Iterated objects
WTException
protected static WTKeyedMap findWorkspaceObjects(WTCollection objects) throws WTException
WTException
protected void registerEPMCacheListeners() throws ManagerException
ManagerException
private void processNewToWorkspaceEvent(EPMWorkspace workspace, WTCollection newWorkspaceObjects) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |