|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.epm.workspaces.EPMAsStoredConfigSpec
The EPMAsStoredConfigSpec can be applied to Baselineables to filter those
elements based on membership in an EPMAsStoredConfig. Substitution options
are read from preferences and result in the following order of substitution
rules when the iteration is not found in the configuration: 1) If substitutes
are allowed, do not filter out links marked as substitutes. 2) If no
iteration is found, use latest.
Supported API: true
Extendable: false
Field Summary | |
private boolean |
allowSubstitutes
|
private Vector |
asStoredConfigRefs
|
private static Class |
BASELINE_MEMBER_LINK
|
private static String |
BASELINEABLE_ROLE
|
private static String |
CLASSNAME
|
private static String |
DATABASE_ID
|
private static String |
EPMAS_STORED_CONFIG_ROLE
|
static long |
EXTERNALIZATION_VERSION_UID
|
private LatestConfigSpec |
latestConfigSpec
|
private static String |
MASTER_ID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private WTContainerRef |
preferredContainer
|
static long |
R70_EXTERNALIZATION_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
EPMAsStoredConfigSpec()
|
Method Summary | |
QuerySpec |
appendSearchCriteria(QuerySpec querySpec)
Appends to the QuerySpec based on the substitution rules to be followed. |
private static long[] |
extractIds(Collection objectReferences)
Returns the object ids of the given list of ObjectReference objects. |
static Set |
getConfigsForSeeds(List baselineables)
|
protected static WTSet |
getContainers(Collection documents)
|
private static WTSet |
getOwnerContainers(Collection asStoredConfigurations)
Given a list of as-stored configurations, returns a set of their owners' container references. |
protected SubSelectExpression |
inBaseline()
|
private SubSelectExpression |
inProject(WTContainerRef projectRef,
Class mainClass)
|
boolean |
isAllowSubstitutes()
Gets the value of the attribute: allowSubstitutes; Do not filter out members marked as substitutes. |
protected SubSelectExpression |
masterInBaseline(Class objectClass)
|
static EPMAsStoredConfigSpec |
newEPMAsStoredConfigSpec(EPMAsStoredConfig configuration)
Factory method to create a new EPMAsStoredConfigSpec using the specified EPMAsStoredConfig. |
static EPMAsStoredConfigSpec |
newEPMAsStoredConfigSpec(EPMDocument seed)
Factory method to create a new EPMAsStoredConfigSpec given a seed object. |
static EPMAsStoredConfigSpec |
newEPMAsStoredConfigSpec(List seeds)
Factory method to create a new EPMAsStoredConfigSpec given a list of seed objects. |
protected QuerySpec |
newSubSelect()
|
QueryResult |
process(QueryResult results)
Returns a clone of the results. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(EPMAsStoredConfigSpec thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setAllowSubstitutes(boolean a_AllowSubstitutes)
Sets the value of the attribute: allowSubstitutes; Do not filter out members marked as substitutes. |
private void |
setAsStoredConfig(EPMAsStoredConfig a_AsStoredConfig)
Sets the As-stored config refs given a list of seed Baselineables Supported API: false |
private void |
setAsStoredConfigRefs(List seeds)
Sets the As-stored config refs given a list of seed Baselineables Supported API: false |
private void |
setPreferredContainer()
Sets the preferred container based on the as-stored configuration references. |
private void |
setPreferredContainer(Collection containerRefs)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private boolean allowSubstitutes
private WTContainerRef preferredContainer
private Vector asStoredConfigRefs
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private LatestConfigSpec latestConfigSpec
private static final Class BASELINE_MEMBER_LINK
private static final String EPMAS_STORED_CONFIG_ROLE
private static final String BASELINEABLE_ROLE
private static final String DATABASE_ID
private static final String MASTER_ID
public static final long R70_EXTERNALIZATION_VERSION_UID
Constructor Detail |
public EPMAsStoredConfigSpec() throws WTPropertyVetoException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(EPMAsStoredConfigSpec thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public boolean isAllowSubstitutes()
public void setAllowSubstitutes(boolean a_AllowSubstitutes) throws WTPropertyVetoException
a_AllowSubstitutes
-
WTPropertyVetoException
public QuerySpec appendSearchCriteria(QuerySpec querySpec) throws WTException, QueryException
appendSearchCriteria
in interface ConfigSpec
querySpec
- A QuerySpec with a target class that is Iterated.
WTException
QueryException
QuerySpec
,
SearchCondition
public QueryResult process(QueryResult results) throws WTException
process
in interface ConfigSpec
results
- QueryResult of iterations to filter. Assumed to be the result of a query that included the additional search conditions applied by appendSearchCriteria. Note that after enumerating through the elements of this QueryResult, it should be reset.
WTException
QueryResult
,
Iterated
public static EPMAsStoredConfigSpec newEPMAsStoredConfigSpec(EPMDocument seed) throws WTPropertyVetoException, WTException
seed
- Use the EPMAsStoredConfig to which the seed has an owner association.
WTPropertyVetoException
WTException
public static EPMAsStoredConfigSpec newEPMAsStoredConfigSpec(EPMAsStoredConfig configuration) throws WTPropertyVetoException, WTException
configuration
-
WTPropertyVetoException
WTException
public static EPMAsStoredConfigSpec newEPMAsStoredConfigSpec(List seeds) throws WTPropertyVetoException, WTException
seeds
- Use the EPMAsStoredConfig to which the seed has an owner association.
WTPropertyVetoException
WTException
protected SubSelectExpression inBaseline() throws QueryException
QueryException
protected SubSelectExpression masterInBaseline(Class objectClass) throws QueryException
QueryException
protected QuerySpec newSubSelect() throws QueryException
QueryException
private void setAsStoredConfigRefs(List seeds) throws WTException
seeds
- Use the as-stored config specs where the EPMDocuments are owners
WTException
private void setAsStoredConfig(EPMAsStoredConfig a_AsStoredConfig) throws WTPropertyVetoException, WTException
a_AsStoredConfig
- Use the single as-stored config spec
WTPropertyVetoException
WTException
public static Set getConfigsForSeeds(List baselineables) throws WTException
WTException
private SubSelectExpression inProject(WTContainerRef projectRef, Class mainClass) throws WTException
WTException
private void setPreferredContainer() throws WTException
WTException
private void setPreferredContainer(Collection containerRefs) throws WTException
WTException
protected static WTSet getContainers(Collection documents) throws WTException
WTException
private static WTSet getOwnerContainers(Collection asStoredConfigurations) throws WTException
asStoredConfigurations
- a list of ObjectReference to EPMAsStoredConfig
WTException
private static long[] extractIds(Collection objectReferences) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |