|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.workspaces.WorkspaceCheckoutManager
WorkspaceCheckoutManager provides functionality to checkout EPMDocument,
WTPart to EPMWorkspace. WorkspaceCheckout uses WorkInProgressService.checkout
but in addition it support checkout of non latest iterations of EPMDocuments
and checkout of family tables.
Supported API: false
Extendable: false
Field Summary | |
static boolean |
logTime
|
Constructor Summary | |
(package private) |
WorkspaceCheckoutManager()
|
Method Summary | |
(package private) static WTValuedMap |
checkout(EPMWorkspace workspace,
WTCollection toCheckout,
String comment)
Checks out the given collection of EPMDocuments and WTParts to the specified workspace. |
private static void |
copyContentItems(WTValuedMap prevToWorkingMap)
Copies content Items from non Latest original to current working copy. |
private static void |
copyEPMData(EPMWorkspace workspace,
WTValuedMap prevToWorkingMap,
WTCollection selectedFTS)
Copys EPM data from previous iterations to Working copies EPM Data includes - IBA, EPM ND Data and contents |
private static WTValuedMap |
getCheckedOutFamilyTables(WTCollection documents)
|
private static WTValuedMap |
getCompatibleFTMap(EPMWorkspace workspace,
WTCollection documents,
WTCollection selectedFTS)
Returns compatible family tables for given documents. |
private static void |
getFamilyTableCheckOutResult(EPMNewIterationDataContainer container,
Map result,
WTCollection familytables)
Returns family table checkout result map |
private static WTValuedMap |
getLatestIterations(WTCollection iterations)
Returns latest iterations having same branchid as the given Iteration |
private static void |
groupOriginals(WTCollection originals,
WTCollection latestWorkables,
WTCollection nonLatestDocuments,
WTCollection familyTables)
Seperates originals into four groups. |
private static void |
isNonLatestConflictOverridden(EPMWorkspace workspace,
WTCollection documents)
Verify if user has specified to override NONLATEST_ITERATION_CHECKOUT conflict |
private static EPMNewIterationDataContainer |
putFTCheckoutInfo(EPMWorkspace workspace,
WTCollection latestWorkables,
WTCollection latestFamilytables,
WTValuedMap latestNonlatestMap)
Puts objects that are getting checked out in Method context |
private static WTCollection |
readContents(WTCollection holders)
|
private static void |
setTypeDefinitionForNonLatest(WTValuedMap prevToWorkingMap)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean logTime
Constructor Detail |
WorkspaceCheckoutManager()
Method Detail |
static WTValuedMap checkout(EPMWorkspace workspace, WTCollection toCheckout, String comment) throws WTException, ConflictException
ConflictException of type EPMConflictType.NONLATEST_ITERATION_CHECKOUT
is thrown for non latest iteration of EPMDocuments.
This conflict can be overriden by specifying EPMResolutionType#ALLOW_NONLATEST_ITERATION_CHECKOUT
resolution type.
Supported API: false
workspace
- toCheckout
- A collection of objects and familyTables to be checked out.comment
- Checkout comment
ConflictException
- of type EPMConflictType.NONLATEST_ITERATION_CHECKOUT
.
WTException
private static void isNonLatestConflictOverridden(EPMWorkspace workspace, WTCollection documents) throws ConflictException, WTException
documents
- WTCollection
ConflictException
- if one or more documents do not have resolution specified
WTException
private static void copyEPMData(EPMWorkspace workspace, WTValuedMap prevToWorkingMap, WTCollection selectedFTS) throws WTException
WTException
private static void setTypeDefinitionForNonLatest(WTValuedMap prevToWorkingMap) throws WTException
WTException
private static WTValuedMap getCheckedOutFamilyTables(WTCollection documents) throws WTException
WTException
private static WTValuedMap getCompatibleFTMap(EPMWorkspace workspace, WTCollection documents, WTCollection selectedFTS) throws WTException
workspace
- EPMWorkspacedocuments
- WTCollectionselectedFTS
- WTCollection
WTException
private static void copyContentItems(WTValuedMap prevToWorkingMap) throws WTException
WTException
private static WTCollection readContents(WTCollection holders) throws WTException, PropertyVetoException
WTException
PropertyVetoException
private static WTValuedMap getLatestIterations(WTCollection iterations) throws WTException
WTException
private static void groupOriginals(WTCollection originals, WTCollection latestWorkables, WTCollection nonLatestDocuments, WTCollection familyTables) throws WTException
originals
- [IN] Original documentslatestWorkables
- [OUT] latest documents and partsnonLatestDocuments
- [OUT] non latest EPMDocumentsfamilyTables
- [OUT]
WTException
private static EPMNewIterationDataContainer putFTCheckoutInfo(EPMWorkspace workspace, WTCollection latestWorkables, WTCollection latestFamilytables, WTValuedMap latestNonlatestMap) throws WTException
workspace
- EPMWorkspacelatestWorkables
- WTCollectionlatestFamilytables
- WTCollection
WTException
private static void getFamilyTableCheckOutResult(EPMNewIterationDataContainer container, Map result, WTCollection familytables) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |