wt.epm.workspaces
Class BaselineServiceUtility
java.lang.Object
wt.epm.workspaces.BaselineServiceUtility
- public class BaselineServiceUtility
- extends Object
The BaselineServiceUtility is a class that handles utility functions
for the EPMStandardBaselineService class.
Supported API: false
Extendable: false
Method Summary |
protected static EPMWorkspace |
add(EPMWorkspace workspace,
QueryResult baselineable,
boolean explicitlyAdd)
|
protected static EPMWorkspace |
add(EPMWorkspace workspace,
Vector baselineable,
Vector familyTables,
boolean explicitlyAdd)
|
private static EPMCheckpoint |
addCompatibleFTToBaseline(WTContainer container,
EPMCheckpoint wsBaseline,
Vector baselineable,
EPMNonoverridableConflicts nonoverridableConflicts)
|
private static EPMCheckpoint |
addCompatibleFTToBaseline(WTContainer container,
EPMCheckpoint wsBaseline,
Vector baselineable,
EPMNonoverridableConflicts nonoverridableConflicts,
boolean checkOnlyDoNotAdd)
|
protected static Persistable |
backTraceDependency(Iterated object,
QueryResult dependents,
QueryResult dependencies)
|
protected static QuerySpec |
buildFindAnyIterationSelect(Baseline baseline,
List baselineables)
|
protected static void |
checkCheckinDependencies(EPMDocument originalCopy,
EPMDocument workingCopy,
EPMWorkspace workspace)
|
protected static void |
checkDependencies(Collection documents,
EPMWorkspace workspace)
|
protected static void |
checkDependencies(QueryResult documents,
EPMWorkspace workspace)
|
private static void |
checkDependentPlaceHolders(QueryResult qr,
EPMDocument workingCopy)
|
static void |
checkFTCompatibilityInBaseline(WTContainer container,
EPMCheckpoint wsBaseline,
Vector baselineable,
EPMNonoverridableConflicts nonoverridableConflicts)
|
private static boolean |
checkFTCompatibilityWithExistedInBaseline(EPMCheckpoint wsBaseline,
Vector docsToExclude,
Vector ftToCheck,
EPMNonoverridableConflicts nonoverridableConflicts)
|
private static ArrayList |
collectMasterIdsExcludeCheckouts(long baselineId,
Vector baselineables,
WTKeyedHashMap masterToDoc)
|
protected static QueryResult |
filterRequiredRelatedItems(QueryResult items)
|
protected static EPMFamilyTableBaselineMember |
findAnyFTIteration(EPMFamilyTable a_familyTable,
Baseline a_baseline)
Returns the BaselineMember object (if it exists) for the Baselineable and
Baseline. |
protected static QueryResult |
findAnyIteration(QueryResult baselineables,
Baseline baseline)
|
protected static Vector |
findChildren(Vector parents,
EPMWorkspace workspace,
EPMPopulateRule rule)
|
static EPMDocument |
getAssociatedDoc(WTPart part)
|
static QueryResult |
getAssociatedPart(EPMDocument doc)
|
static EPMWorkspace |
getAssociatedWorkspace(Workable target)
|
private static QueryResult |
getBuildRules_(Iterated object)
|
static QueryResult |
getBuildRules(EPMDocument document)
|
static QueryResult |
getBuildRules(WTPart part)
|
private static EPMNewIterationDataContainer |
getCheckoutDataContainer()
|
protected static ConfigSpec |
getConfigSpec(EPMWorkspace workspace)
|
protected static QueryResult |
getDependencies(QueryResult wtDocs,
ConfigSpec configSpec,
boolean onlyOtherSide)
|
protected static QueryResult |
getDependencies(QueryResult epmDocs,
ConfigSpec configSpec,
boolean required,
boolean onlyOtherSide)
|
protected static Map |
getDependenciesToNew(Collection documents,
EPMWorkspace workspace)
|
static WTPart |
getFilteredAssociatedPart(QueryResult partDepend,
WTPartConfigSpec partConfigSpec)
|
protected static Object |
getKey(Persistable object)
|
private static QueryResult |
getNeedsRefresh(ObjectVectorIfc inVector,
WorkspaceConfigSpec configSpec)
|
protected static HashMap |
getOriginalCopiesOf(QueryResult workingCopies)
|
protected static QueryResult |
getPartDependencies(QueryResult wtParts,
ConfigSpec configSpec,
boolean onlyOtherSide)
|
protected static QueryResult |
getPartsAndDocs(QueryResult objects,
EPMPopulateRule rule,
EPMWorkspace workspace)
|
static QueryResult |
getRefreshDocs(EPMWorkspace workspace,
QueryResult qr)
|
static QueryResult |
getRefreshDocsAndParts(EPMWorkspace workspace)
|
static QueryResult |
getRefreshDocsAndParts(EPMWorkspace workspace,
QueryResult qr)
|
static ObjectVector |
getRefreshEPMDocs(QueryResult refreshObjects,
QueryResult masters,
HashSet docMasterSet,
EPMCheckpoint checkpoint)
|
static QueryResult |
getRefreshMasters(QueryResult qr)
|
static QueryResult |
getRefreshPartsAndDocs(EPMWorkspace workspace)
|
static QueryResult |
getRefreshPartsAndDocs(EPMWorkspace workspace,
QueryResult qr)
|
protected static QueryResult |
getRelatedItems(QueryResult objects,
boolean required,
ConfigSpec configSpec,
EPMWorkspace workspace)
|
protected static QueryResult |
isAnyIterationInBaseline(QueryResult baselineables,
Baseline baseline)
|
protected static QueryResult |
isAnyVersionInBaseline(QueryResult baselineables,
Baseline baseline)
|
static boolean |
isCheckinOrMoveInProgress()
|
protected static QueryResult |
isContainer(QueryResult documents)
|
protected static boolean |
isRollbackOrRollupInProgress()
|
protected static boolean |
isUpdateWorkspaceInProgress()
|
protected static void |
listDep(QueryResult dependents)
|
static void |
listObj(WTObject obj)
|
protected static QueryResult |
navigate(QueryResult epmDocs,
Class linkClass,
ConfigSpec configSpec,
boolean required,
boolean onlyOtherSide)
|
protected static void |
setCheckinOrMoveInProgress(boolean inProgress)
|
protected static void |
setRollbackOrRollupInProgress(boolean inProgress)
|
protected static void |
setUpdateWorkspaceInProgress(boolean inProgress)
|
protected static void |
traceDependencies(QueryResult objects,
boolean required,
ConfigSpec configSpec,
EPMWorkspace workspace,
HashMap visited,
HashMap dependencyList)
|
private static void |
tracePartDependencies(QueryResult objects,
ConfigSpec configSpec,
EPMWorkspace workspace,
HashMap visited,
HashMap dependencyList)
|
protected static void |
updateDependencies(QueryResult dependencies,
HashMap visited,
EPMWorkspace workspace)
|
protected static void |
validateContainer(EPMWorkspace workspace,
Vector baseVector)
|
private static void |
validateExistInWSConflicts(EPMWorkspace ws,
EPMCheckpoint wsBaseline,
Vector baselineables,
EPMNonoverridableConflicts conflicts)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EPMRESOURCE
private static final String EPMRESOURCE
- See Also:
- Constant Field Values
CHECKIN_MOVE_IN_PROGRESS
private static final String CHECKIN_MOVE_IN_PROGRESS
- See Also:
- Constant Field Values
ROLLUP_OR_ROLLBACK_IN_PROGRESS
private static final String ROLLUP_OR_ROLLBACK_IN_PROGRESS
- See Also:
- Constant Field Values
UPDATE_WORKSPACE_IN_PROGRESS
private static final String UPDATE_WORKSPACE_IN_PROGRESS
- See Also:
- Constant Field Values
log
public static boolean log
logTime
public static boolean logTime
checkDependenciesCache
private static Map checkDependenciesCache
linkClasses
private static Class[] linkClasses
BaselineServiceUtility
public BaselineServiceUtility()
checkCheckinDependencies
protected static void checkCheckinDependencies(EPMDocument originalCopy,
EPMDocument workingCopy,
EPMWorkspace workspace)
throws WTException
- Throws:
WTException
checkDependencies
protected static void checkDependencies(QueryResult documents,
EPMWorkspace workspace)
throws WTException
- Throws:
WTException
checkDependencies
protected static void checkDependencies(Collection documents,
EPMWorkspace workspace)
throws WTException
- Throws:
WTException
getDependenciesToNew
protected static Map getDependenciesToNew(Collection documents,
EPMWorkspace workspace)
throws WTException
- Throws:
WTException
backTraceDependency
protected static Persistable backTraceDependency(Iterated object,
QueryResult dependents,
QueryResult dependencies)
getAssociatedWorkspace
public static EPMWorkspace getAssociatedWorkspace(Workable target)
throws WTException
- Throws:
WTException
add
protected static EPMWorkspace add(EPMWorkspace workspace,
QueryResult baselineable,
boolean explicitlyAdd)
throws WTException
- Throws:
WTException
add
protected static EPMWorkspace add(EPMWorkspace workspace,
Vector baselineable,
Vector familyTables,
boolean explicitlyAdd)
throws WTException
- Throws:
WTException
validateExistInWSConflicts
private static void validateExistInWSConflicts(EPMWorkspace ws,
EPMCheckpoint wsBaseline,
Vector baselineables,
EPMNonoverridableConflicts conflicts)
throws WTException
- Throws:
WTException
collectMasterIdsExcludeCheckouts
private static ArrayList collectMasterIdsExcludeCheckouts(long baselineId,
Vector baselineables,
WTKeyedHashMap masterToDoc)
throws WTException
- Throws:
WTException
getCheckoutDataContainer
private static EPMNewIterationDataContainer getCheckoutDataContainer()
throws WTException
- Throws:
WTException
findChildren
protected static Vector findChildren(Vector parents,
EPMWorkspace workspace,
EPMPopulateRule rule)
throws WTException
- Throws:
WTException
getRelatedItems
protected static QueryResult getRelatedItems(QueryResult objects,
boolean required,
ConfigSpec configSpec,
EPMWorkspace workspace)
throws WTException
- Throws:
WTException
traceDependencies
protected static void traceDependencies(QueryResult objects,
boolean required,
ConfigSpec configSpec,
EPMWorkspace workspace,
HashMap visited,
HashMap dependencyList)
throws WTException
- Throws:
WTException
getDependencies
protected static QueryResult getDependencies(QueryResult epmDocs,
ConfigSpec configSpec,
boolean required,
boolean onlyOtherSide)
throws WTException
- Throws:
WTException
navigate
protected static QueryResult navigate(QueryResult epmDocs,
Class linkClass,
ConfigSpec configSpec,
boolean required,
boolean onlyOtherSide)
throws WTException
- Throws:
WTException
getDependencies
protected static QueryResult getDependencies(QueryResult wtDocs,
ConfigSpec configSpec,
boolean onlyOtherSide)
throws WTException
- Throws:
WTException
getPartDependencies
protected static QueryResult getPartDependencies(QueryResult wtParts,
ConfigSpec configSpec,
boolean onlyOtherSide)
throws WTException
- Throws:
WTException
updateDependencies
protected static void updateDependencies(QueryResult dependencies,
HashMap visited,
EPMWorkspace workspace)
throws WTException
- Throws:
WTException
getKey
protected static Object getKey(Persistable object)
throws WTException
- Throws:
WTException
isContainer
protected static QueryResult isContainer(QueryResult documents)
throws WTException
- Throws:
WTException
getOriginalCopiesOf
protected static HashMap getOriginalCopiesOf(QueryResult workingCopies)
throws WTException
- Throws:
WTException
isAnyIterationInBaseline
protected static QueryResult isAnyIterationInBaseline(QueryResult baselineables,
Baseline baseline)
throws WTException
- Throws:
WTException
isAnyVersionInBaseline
protected static QueryResult isAnyVersionInBaseline(QueryResult baselineables,
Baseline baseline)
throws WTException
- Throws:
WTException
findAnyIteration
protected static QueryResult findAnyIteration(QueryResult baselineables,
Baseline baseline)
throws WTException
- Throws:
WTException
buildFindAnyIterationSelect
protected static QuerySpec buildFindAnyIterationSelect(Baseline baseline,
List baselineables)
throws WTException
- Throws:
WTException
isCheckinOrMoveInProgress
public static boolean isCheckinOrMoveInProgress()
setCheckinOrMoveInProgress
protected static void setCheckinOrMoveInProgress(boolean inProgress)
getConfigSpec
protected static ConfigSpec getConfigSpec(EPMWorkspace workspace)
throws WTException
- Throws:
WTException
getPartsAndDocs
protected static QueryResult getPartsAndDocs(QueryResult objects,
EPMPopulateRule rule,
EPMWorkspace workspace)
throws WTException
- Throws:
WTException
tracePartDependencies
private static void tracePartDependencies(QueryResult objects,
ConfigSpec configSpec,
EPMWorkspace workspace,
HashMap visited,
HashMap dependencyList)
throws WTException
- Throws:
WTException
getBuildRules
public static QueryResult getBuildRules(WTPart part)
throws WTException
- Throws:
WTException
getBuildRules
public static QueryResult getBuildRules(EPMDocument document)
throws WTException
- Throws:
WTException
getBuildRules_
private static QueryResult getBuildRules_(Iterated object)
throws WTException
- Throws:
WTException
getRefreshMasters
public static QueryResult getRefreshMasters(QueryResult qr)
throws WTException
- Throws:
WTException
getRefreshEPMDocs
public static ObjectVector getRefreshEPMDocs(QueryResult refreshObjects,
QueryResult masters,
HashSet docMasterSet,
EPMCheckpoint checkpoint)
throws WTException
- Throws:
WTException
getRefreshPartsAndDocs
public static QueryResult getRefreshPartsAndDocs(EPMWorkspace workspace)
throws WTException
- Throws:
WTException
getRefreshPartsAndDocs
public static QueryResult getRefreshPartsAndDocs(EPMWorkspace workspace,
QueryResult qr)
throws WTException
- Throws:
WTException
getRefreshDocsAndParts
public static QueryResult getRefreshDocsAndParts(EPMWorkspace workspace)
throws WTException
- Throws:
WTException
getRefreshDocsAndParts
public static QueryResult getRefreshDocsAndParts(EPMWorkspace workspace,
QueryResult qr)
throws WTException
- Throws:
WTException
getRefreshDocs
public static QueryResult getRefreshDocs(EPMWorkspace workspace,
QueryResult qr)
throws WTException
- Throws:
WTException
getNeedsRefresh
private static QueryResult getNeedsRefresh(ObjectVectorIfc inVector,
WorkspaceConfigSpec configSpec)
throws WTException
- Throws:
WTException
getAssociatedPart
public static QueryResult getAssociatedPart(EPMDocument doc)
throws WTException
- Throws:
WTException
getFilteredAssociatedPart
public static WTPart getFilteredAssociatedPart(QueryResult partDepend,
WTPartConfigSpec partConfigSpec)
throws WTException
- Throws:
WTException
getAssociatedDoc
public static EPMDocument getAssociatedDoc(WTPart part)
throws WTException
- Throws:
WTException
listDep
protected static void listDep(QueryResult dependents)
throws WTException
- Throws:
WTException
listObj
public static void listObj(WTObject obj)
checkDependentPlaceHolders
private static void checkDependentPlaceHolders(QueryResult qr,
EPMDocument workingCopy)
throws WTException
- Throws:
WTException
filterRequiredRelatedItems
protected static QueryResult filterRequiredRelatedItems(QueryResult items)
validateContainer
protected static void validateContainer(EPMWorkspace workspace,
Vector baseVector)
throws WTException
- Throws:
WTException
isRollbackOrRollupInProgress
protected static boolean isRollbackOrRollupInProgress()
setRollbackOrRollupInProgress
protected static void setRollbackOrRollupInProgress(boolean inProgress)
isUpdateWorkspaceInProgress
protected static boolean isUpdateWorkspaceInProgress()
setUpdateWorkspaceInProgress
protected static void setUpdateWorkspaceInProgress(boolean inProgress)
checkFTCompatibilityInBaseline
public static void checkFTCompatibilityInBaseline(WTContainer container,
EPMCheckpoint wsBaseline,
Vector baselineable,
EPMNonoverridableConflicts nonoverridableConflicts)
throws WTException
- Throws:
WTException
addCompatibleFTToBaseline
private static EPMCheckpoint addCompatibleFTToBaseline(WTContainer container,
EPMCheckpoint wsBaseline,
Vector baselineable,
EPMNonoverridableConflicts nonoverridableConflicts)
throws WTException
- Throws:
WTException
addCompatibleFTToBaseline
private static EPMCheckpoint addCompatibleFTToBaseline(WTContainer container,
EPMCheckpoint wsBaseline,
Vector baselineable,
EPMNonoverridableConflicts nonoverridableConflicts,
boolean checkOnlyDoNotAdd)
throws WTException
- Throws:
WTException
checkFTCompatibilityWithExistedInBaseline
private static boolean checkFTCompatibilityWithExistedInBaseline(EPMCheckpoint wsBaseline,
Vector docsToExclude,
Vector ftToCheck,
EPMNonoverridableConflicts nonoverridableConflicts)
throws WTException
- Throws:
WTException
findAnyFTIteration
protected static EPMFamilyTableBaselineMember findAnyFTIteration(EPMFamilyTable a_familyTable,
Baseline a_baseline)
throws WTException
- Returns the BaselineMember object (if it exists) for the Baselineable and
Baseline. A find query is made for any iteration of the Baselineable's
Master is associated with this Baseline.
- Parameters:
a_familyTable
- a_baseline
-
- Returns:
- BaselineMember
- Throws:
WTException