|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.esi.tgt.ESITargetAssignmentAdjuster
Processes an I*E group containing a list of ESITargets, the orginal assignment
status (all , none, or some) and the desired status (all or none). Determines
whether additions or deletions are required for each part identified
by the ufids attribute.
Supported API: false
Extendable: false
Nested Class Summary | |
private class |
ESITargetAssignmentAdjuster.TargetRequest
|
Field Summary | |
private static String |
CLASSNAME
|
private Collection |
deletes
|
static String |
DESIRED_ATT
|
static long |
EXTERNALIZATION_VERSION_UID
|
private Collection |
inserts
|
static String |
OBJECT_ID_ATT
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private Collection |
parts
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private Group |
targets
|
private ESITargetUtility |
targetUtility
|
private TaskHelper |
taskHelper
|
private String |
ufids
|
static String |
WAS_FULL_ATT
|
Constructor Summary | |
protected |
ESITargetAssignmentAdjuster(String ufids,
Group targets,
TaskHelper th,
ESITargetUtility tu)
|
Method Summary | |
(package private) void |
adjustAssignments()
Adds and/or deletes ESITargetAssignmentLinks to make the existing assignments consistent with the desired state defined in the targets attribute. |
private void |
buildDeletes(Collection requests,
Collection parts)
|
private void |
buildInserts(Collection requests,
Collection parts,
Collection targetAssns)
|
private void |
complain(String desired,
Boolean wasFull,
String ufid)
|
private Collection |
getParts(String ufidString)
|
(package private) static ESITargetAssignmentAdjuster |
newESITargetAssignmentAdjuster(String ufids,
Group targets,
TaskHelper th,
ESITargetUtility tu)
Supported API: false |
private void |
processRequests()
|
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(ESITargetAssignmentAdjuster thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private void |
updateAssignments(Collection requests,
Collection parts,
Collection targetAssns)
|
private void |
validate()
|
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 String ufids
private Collection parts
private Group targets
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final String OBJECT_ID_ATT
public static final String WAS_FULL_ATT
public static final String DESIRED_ATT
private TaskHelper taskHelper
private ESITargetUtility targetUtility
private Collection deletes
private Collection inserts
Constructor Detail |
protected ESITargetAssignmentAdjuster(String ufids, Group targets, TaskHelper th, ESITargetUtility tu)
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(ESITargetAssignmentAdjuster 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
static ESITargetAssignmentAdjuster newESITargetAssignmentAdjuster(String ufids, Group targets, TaskHelper th, ESITargetUtility tu)
ufids
- A concatenated set of UFIDstargets
- The value to assign to the targets attribute.th
- tu
- The ESITargetUtility that created this object.
void adjustAssignments() throws WTException
WTException
private Collection getParts(String ufidString) throws WTException
WTException
private void updateAssignments(Collection requests, Collection parts, Collection targetAssns) throws WTException
WTException
private void validate() throws WTException
WTException
private void complain(String desired, Boolean wasFull, String ufid) throws WTException
WTException
private void buildDeletes(Collection requests, Collection parts) throws WTException
WTException
private void buildInserts(Collection requests, Collection parts, Collection targetAssns) throws WTException
WTException
private void processRequests() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |