|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.workspaces.EPMAsStoredHelper
Field Summary | |
private static Map |
checkDependenciesCache
|
private static String |
EPMRESOURCE
|
private static Class[] |
linkClasses
|
static boolean |
log
|
static boolean |
logTime
|
static boolean |
logTrace
|
Constructor Summary | |
EPMAsStoredHelper()
|
Method Summary | |
static QueryResult |
copyEPMAsStoredConfig(CopyObjectInfo[] copyInfo,
boolean replace)
This method copies forward EPMAsStoredConfig for each of the given originals to the corresponding copy. |
static EPMAsStoredConfig |
createEPMAsStoredConfig(Collection checkinObjects,
ConfigSpec configSpec,
boolean isSBCheckin)
Returns an EPMAsStoredConfig created for the given checkInObjects. |
static EPMAsStoredConfig |
createEPMAsStoredConfig(Collection checkinObjects,
EPMWorkspace workspace)
Returns an EPMAsStoredConfig created for the given checkInObjects. |
private static EPMAsStoredConfig |
createEPMAsStoredConfigInternal(Collection checkinObjects,
Object configuration,
boolean isSBCheckin)
|
static QueryResult |
extractsOwners(List baselineables)
Returns a subset of the given baselineables, where the subset already exists in EPMAsStoredMember as owners. |
protected static void |
filterAndValidateMembers(EPMConfigurationType type,
Vector owners,
Vector members)
Filters out objects in the owners and members lists if objects are duplicates. |
private static void |
filterMembers(EPMConfigurationType type,
Vector owners,
Vector members)
Filters out objects in the owners and members lists if objects are duplicates or have the same master. |
private static List |
filterMembers(List objects)
Given a list of objects, returns a list of EPMDocuments or WTDocuments. |
private static List |
filterOwners(Collection objects)
Given a list of objects, returns a list of EPMDocuments whose authoring apps are listed in wt.epm.workspaces.createAsStored.AuthoringApplications and the system is configured to create as-stored config. |
private static List |
filterSBMembers(List objects,
WTContainerRef containerRef)
Given a list of objects, returns a list of objects that are in the same solution as the given container. |
static Map |
findOwnerIterations(long[] branchIds)
Given an array of branchids, returns a Map of EPMDocument iterations of each version that are owners of an as-stored configuration The key in the map is the branchId, and the corresponding value is a List of EPMDocuments Supported API: false |
static QueryResult[] |
findSubstitutes(EPMAsStoredConfig asStoredConfig,
QueryResult objects)
|
static EPMAsStoredConfig |
getAsStoredConfig(Baselineable document)
Returns the associated EPMAsStoredConfig to which this document is an owner Supported API: true |
private static QueryResult |
getMembers(EPMAsStoredConfig asStoredConfig)
Returns a list of baselineables of the given as-stored config which have not been substituted. |
static QueryResult |
getOwners(EPMAsStoredConfig asStoredConfig)
Returns the owners of the As Stored Config Supported API: true |
static WhereExpression |
getOwnerWhereExpression(boolean isOwner)
|
private static List |
removeComponents(List objects,
DependencyGraph graph)
Given a list of objects and a dependency graph, returns a list of objects that have dependents. |
private static List |
traceDependencies(Collection owners,
EPMWorkspace workspace)
|
private static void |
validateMasters(Vector members)
Filters out objects in the list of members (including owners) if objects have the same master. |
private static void |
validateMembers(EPMConfigurationType type,
Vector owners,
Vector members)
Validates the given parameters as valid for creating / copying an EPMAsStoredConfig. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String EPMRESOURCE
public static boolean log
public static boolean logTrace
public static boolean logTime
private static Map checkDependenciesCache
private static Class[] linkClasses
Constructor Detail |
public EPMAsStoredHelper()
Method Detail |
private static void filterMembers(EPMConfigurationType type, Vector owners, Vector members) throws WTException
type
- the EPMConfiguration Type - not used at this versionowners
- a list of EPMDocumentsmembers
- a list of EPMDocuments or WTDocuments
WTException
private static void validateMembers(EPMConfigurationType type, Vector owners, Vector members) throws WTException
type
- the EPMConfiguration Type - not used at this versionowners
- a list of EPMDocumentsmembers
- a list of EPMDocuments or WTDocuments
WTException
public static QueryResult[] findSubstitutes(EPMAsStoredConfig asStoredConfig, QueryResult objects) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public static EPMAsStoredConfig getAsStoredConfig(Baselineable document) throws WTException
document
- a Baselineable
WTException
public static QueryResult getOwners(EPMAsStoredConfig asStoredConfig) throws WTException
asStoredConfig
- EPMAsStoredConfig
WTException
public static QueryResult extractsOwners(List baselineables) throws WTException
WTException
private static QueryResult getMembers(EPMAsStoredConfig asStoredConfig) throws WTException
asStoredConfig
-
WTException
public static Map findOwnerIterations(long[] branchIds) throws WTException
WTException
public static QueryResult copyEPMAsStoredConfig(CopyObjectInfo[] copyInfo, boolean replace) throws WTException
copyInfo
- a list of original EPMDocuments and the target / copied EPMDocuments to which the EPMAsStoredConfig is to be copiedreplace
- whether or not to keep the originals in the copied as-stored config.
if true then if any of the original appears in the as-stored config being copied
then it is replaced by the corresponding target / copy in the copied as-stored config. ( e.g. can be used for revise operations )
if false then the original is copied as member and the target / copy (as owner or member
depending upon how the original was linked) is added in the copied as-stored (e.g. can be used for copy operation)
WTException
protected static void filterAndValidateMembers(EPMConfigurationType type, Vector owners, Vector members) throws WTException
type
- the EPMConfiguration Type - not used at this versionowners
- a list of EPMDocumentsmembers
- a list of EPMDocuments or WTDocuments
WTException
public static WhereExpression getOwnerWhereExpression(boolean isOwner) throws WTException
WTException
private static void validateMasters(Vector members) throws WTException
members
- a list of EPMDocuments or WTDocuments
WTException
public static EPMAsStoredConfig createEPMAsStoredConfig(Collection checkinObjects, EPMWorkspace workspace) throws WTException, WTPropertyVetoException
checkinObjects
- List a list of checked in objectsworkspace
- EPMWorkspace workspace used to find dependents of the checked-in objects
WTException
WTPropertyVetoException
public static EPMAsStoredConfig createEPMAsStoredConfig(Collection checkinObjects, ConfigSpec configSpec, boolean isSBCheckin) throws WTException, WTPropertyVetoException
checkinObjects
- List a list of checked in objectsconfigSpec
- ConfigSpec config spec used to find dependents of the checked-in objectsisSBCheckin
- boolean indicating whether the checkin is from workspace or sandbox
WTException
WTPropertyVetoException
private static EPMAsStoredConfig createEPMAsStoredConfigInternal(Collection checkinObjects, Object configuration, boolean isSBCheckin) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private static List traceDependencies(Collection owners, EPMWorkspace workspace) throws WTException
WTException
private static List filterOwners(Collection objects) throws WTException
objects
- Collection a list of objects
WTException
private static List filterMembers(List objects) throws WTException
objects
- Collection a list of objects
WTException
private static List filterSBMembers(List objects, WTContainerRef containerRef) throws WTException
objects
- Collection a list of objects
WTException
private static List removeComponents(List objects, DependencyGraph graph) throws WTException
objects
- Collection a list of objects
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |