|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.enterprise.Simple
wt.part.WTPartConfigSpec
The reference implementation of a user visible config spec, used to select
WTParts, which aggregates WTPartBaselineConfigSpec
, WTPartEffectivityConfigSpec
,
and WTPartStandardConfigSpec
. Only one of these aggregated config
specs may be active at one time.
Use the newWTPartConfigSpec
static factory method(s), not
the WTPartConfigSpec
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 WTPartBaselineConfigSpec |
baseline
|
static String |
BASELINE
Label for the attribute. |
static String |
BASELINE_ACTIVE
Label for the attribute; If true, the WTPartBaselineConfigSpec is active. |
private boolean |
baselineActive
|
private static String |
CLASSNAME
|
private WTPartEffectivityConfigSpec |
effectivity
|
static String |
EFFECTIVITY
Label for the attribute. |
static String |
EFFECTIVITY_ACTIVE
Label for the attribute; If true, the WTPartEffectivityConfigSpec is active. |
private boolean |
effectivityActive
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private Ownership |
ownership
|
private static String |
RESOURCE
|
private SandboxConfigSpec |
sandbox
|
static String |
SANDBOX
Label for the attribute. |
static String |
SANDBOX_ACTIVE
Label for the attribute; If true, the SandboxConfigSpec is active. |
private boolean |
sandboxActive
|
(package private) static long |
serialVersionUID
|
private WTPartStandardConfigSpec |
standard
|
static String |
STANDARD
Label for the attribute. |
static String |
STANDARD_ACTIVE
Label for the attribute; If true, the WTPartStandardConfigSpec is active. |
private boolean |
standardActive
|
Fields inherited from class wt.enterprise.Simple |
|
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.ownership.Ownable |
OWNERSHIP |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.admin.DomainAdministered |
DOMAIN_REF, INHERITED_DOMAIN |
Fields inherited from interface wt.fc.BusinessInformation |
BUSINESS_TYPE, IDENTITY |
Fields inherited from interface wt.notify.Notifiable |
EVENT_SET |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
WTPartConfigSpec()
|
Method Summary | |
QuerySpec |
appendSearchCriteria(QuerySpec querySpec)
Appends to the supplied QuerySpec additional search criteria to reduce the resulting iterations to only those that will be considered by this ConfigSpec. |
void |
checkAttributes()
Validate the state of this instance of WTPartConfigSpec prior to persisting. |
WTObject |
duplicate()
Creates a deep copy of this PersistableConfigSpec. |
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
ConfigSpec |
getActive()
Get the active ConfigSpec. |
WTPartBaselineConfigSpec |
getBaseline()
Gets the object for the association that plays role: BASELINE. |
String |
getConceptualClassname()
Deprecated. |
WTPartEffectivityConfigSpec |
getEffectivity()
Gets the object for the association that plays role: EFFECTIVITY. |
Ownership |
getOwnership()
Gets the object for the association that plays role: OWNERSHIP. |
SandboxConfigSpec |
getSandbox()
Gets the value of the attribute: SANDBOX. |
WTPartStandardConfigSpec |
getStandard()
Gets the object for the association that plays role: STANDARD. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize()
Supported API: false |
protected void |
initialize(SandboxConfigSpec sandbox)
Supports initialization, following construction of an instance. |
protected void |
initialize(WTPartBaselineConfigSpec baseline)
Supports initialization, following construction of an instance. |
protected void |
initialize(WTPartBaselineConfigSpec baseline,
WTPartEffectivityConfigSpec effectivity,
WTPartStandardConfigSpec standard)
Supports initialization, following construction of an instance. |
protected void |
initialize(WTPartEffectivityConfigSpec effectivity)
Supports initialization, following construction of an instance. |
protected void |
initialize(WTPartStandardConfigSpec standard)
Supports initialization, following construction of an instance. |
boolean |
isBaselineActive()
Gets the value of the attribute: BASELINE_ACTIVE. |
boolean |
isEffectivityActive()
Gets the value of the attribute: EFFECTIVITY_ACTIVE. |
boolean |
isSandboxActive()
Gets the value of the attribute: SANDBOX_ACTIVE. |
boolean |
isStandardActive()
Gets the value of the attribute: STANDARD_ACTIVE. |
static WTPartConfigSpec |
newWTPartConfigSpec()
Supported API: true |
static WTPartConfigSpec |
newWTPartConfigSpec(SandboxConfigSpec sandbox)
Supported API: true |
static WTPartConfigSpec |
newWTPartConfigSpec(WTPartBaselineConfigSpec baseline)
Supported API: true |
static WTPartConfigSpec |
newWTPartConfigSpec(WTPartBaselineConfigSpec baseline,
WTPartEffectivityConfigSpec effectivity,
WTPartStandardConfigSpec standard)
Supported API: true |
static WTPartConfigSpec |
newWTPartConfigSpec(WTPartEffectivityConfigSpec effectivity)
Supported API: true |
static WTPartConfigSpec |
newWTPartConfigSpec(WTPartStandardConfigSpec standard)
Supported API: true |
QueryResult |
process(QueryResult results)
Process the QueryResult of iterations, returning only those that "match" according to the algorithm. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
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(WTPartConfigSpec thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setBaseline(WTPartBaselineConfigSpec a_Baseline)
Sets the object for the association that plays role: BASELINE. |
void |
setBaselineActive(boolean a_BaselineActive)
Sets the value of the attribute: BASELINE_ACTIVE. |
void |
setEffectivity(WTPartEffectivityConfigSpec a_Effectivity)
Sets the object for the association that plays role: EFFECTIVITY. |
void |
setEffectivityActive(boolean a_EffectivityActive)
Sets the value of the attribute: EFFECTIVITY_ACTIVE. |
void |
setOwnership(Ownership a_Ownership)
Sets the object for the association that plays role: OWNERSHIP. |
void |
setSandbox(SandboxConfigSpec a_Sandbox)
Sets the value of the attribute: SANDBOX. |
void |
setSandboxActive(boolean a_SandboxActive)
Sets the value of the attribute: SANDBOX_ACTIVE. |
void |
setStandard(WTPartStandardConfigSpec a_Standard)
Sets the object for the association that plays role: STANDARD. |
void |
setStandardActive(boolean a_StandardActive)
Sets the value of the attribute: STANDARD_ACTIVE. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.enterprise.Simple |
getBusinessType, getDomainRef, getEventSet, getIdentity, isInheritedDomain, readVersion, setDomainRef, setEventSet, setInheritedDomain |
Methods inherited from class wt.fc.WTObject |
finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.Persistable |
getIdentity, getPersistInfo, getType, setPersistInfo |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String BASELINE_ACTIVE
private boolean baselineActive
public static final String EFFECTIVITY_ACTIVE
private boolean effectivityActive
public static final String STANDARD_ACTIVE
private boolean standardActive
public static final String SANDBOX_ACTIVE
private boolean sandboxActive
public static final String SANDBOX
private SandboxConfigSpec sandbox
public static final String STANDARD
private WTPartStandardConfigSpec standard
public static final String BASELINE
private WTPartBaselineConfigSpec baseline
public static final String EFFECTIVITY
private WTPartEffectivityConfigSpec effectivity
private Ownership ownership
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public WTPartConfigSpec()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Simple
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Simple
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WTPartConfigSpec 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 void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class Simple
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class Simple
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public boolean isBaselineActive()
public void setBaselineActive(boolean a_BaselineActive)
a_BaselineActive
- public boolean isEffectivityActive()
public void setEffectivityActive(boolean a_EffectivityActive)
a_EffectivityActive
- public boolean isStandardActive()
public void setStandardActive(boolean a_StandardActive)
a_StandardActive
- public boolean isSandboxActive()
public void setSandboxActive(boolean a_SandboxActive)
a_SandboxActive
- public SandboxConfigSpec getSandbox()
public void setSandbox(SandboxConfigSpec a_Sandbox)
a_Sandbox
- public WTPartStandardConfigSpec getStandard()
public void setStandard(WTPartStandardConfigSpec a_Standard)
a_Standard
- public WTPartBaselineConfigSpec getBaseline()
public void setBaseline(WTPartBaselineConfigSpec a_Baseline)
a_Baseline
- public WTPartEffectivityConfigSpec getEffectivity()
public void setEffectivity(WTPartEffectivityConfigSpec a_Effectivity)
a_Effectivity
- public ConfigSpec getActive()
public static WTPartConfigSpec newWTPartConfigSpec() throws WTException
WTException
public static WTPartConfigSpec newWTPartConfigSpec(WTPartBaselineConfigSpec baseline) throws WTException
baseline
-
WTException
protected void initialize(WTPartBaselineConfigSpec baseline) throws WTException
baseline
-
WTException
public static WTPartConfigSpec newWTPartConfigSpec(WTPartEffectivityConfigSpec effectivity) throws WTException
effectivity
-
WTException
protected void initialize(WTPartEffectivityConfigSpec effectivity) throws WTException
effectivity
-
WTException
public static WTPartConfigSpec newWTPartConfigSpec(WTPartStandardConfigSpec standard) throws WTException
standard
-
WTException
protected void initialize(WTPartStandardConfigSpec standard) throws WTException
standard
-
WTException
public static WTPartConfigSpec newWTPartConfigSpec(WTPartBaselineConfigSpec baseline, WTPartEffectivityConfigSpec effectivity, WTPartStandardConfigSpec standard) throws WTException
baseline
- effectivity
- standard
-
WTException
protected void initialize(WTPartBaselineConfigSpec baseline, WTPartEffectivityConfigSpec effectivity, WTPartStandardConfigSpec standard) throws WTException
baseline
- effectivity
- standard
-
WTException
public static WTPartConfigSpec newWTPartConfigSpec(SandboxConfigSpec sandbox) throws WTException
sandbox
-
WTException
protected void initialize(SandboxConfigSpec sandbox) throws WTException
sandbox
-
WTException
public Ownership getOwnership()
getOwnership
in interface Ownable
public void setOwnership(Ownership a_Ownership)
setOwnership
in interface Ownable
a_Ownership
- public WTObject duplicate() throws WTException
duplicate
in interface PersistableConfigSpec
duplicate
in class WTObject
WTException
public QuerySpec appendSearchCriteria(QuerySpec querySpec) throws WTException, QueryException
The QueryResult returned should be a copy of the passed in one (taking advantage of side-effects is not encouraged).
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
The QueryResult returned should be a copy of the passed-in QueryResult (side-effects should be avoided).
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 boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class Simple
obj
-
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class Simple
protected void initialize() throws WTException
Simple
initialize
in class Simple
WTException
public void checkAttributes() throws InvalidAttributeException
checkAttributes
in interface Persistable
checkAttributes
in class WTObject
WTException
- If the instance is not valid.
InvalidAttributeException
WTPartEffectivityConfigSpec
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |