|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.workflow.work.WfAssignment
wt.projmgmt.execution.ProjectAssignment
Use the newProjectAssignment
static factory method(s), not
the ProjectAssignment
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: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static String |
CONTAINER
Label for the attribute. |
private WTContainerRef |
containerReference
|
private static String |
DEFAULT_ROLE
|
private AdminDomainRef |
domainRef
|
static long |
EXTERNALIZATION_VERSION_UID
|
private boolean |
inheritedDomain
|
protected static long |
OLD_FORMAT_VERSION_UID
|
static String |
PLAN
Label for the attribute. |
static String |
PLAN_REFERENCE
Label for the attribute. |
private ObjectReference |
planReference
|
private static long |
R60_EXTERNALIZATION_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.workflow.work.WfAssignment |
ASSIGNEE, COMPLETE, PRINCIPALS, SOURCE, STATUS, TRIP_COUNT |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.admin.DomainAdministered |
DOMAIN_REF, INHERITED_DOMAIN |
Fields inherited from interface wt.inf.container.WTContained |
CONTAINER_ID, CONTAINER_NAME, CONTAINER_REFERENCE |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
ProjectAssignment()
|
Method Summary | |
protected WorkItem |
addProjectWorkItem(WTPrincipalReference pRef)
Calls super.addWorkItem (Role.toRole (DEFAULT_ROLE), pRef) |
protected WTPrincipalReference |
checkDelegation(WTPrincipalReference pref)
|
private void |
containerReferenceValidate(WTContainerRef a_ContainerReference)
|
protected WorkItem |
createWorkItem(WTPrincipal principal)
Creates and returns a ProjectWorkItem, owned by the principal passed as argument. |
protected void |
createWorkItems(WfAssignedActivity activity)
Create the set of work items for this assignment Supported API: false |
protected void |
deleteUncompletedWorkItems()
Overrides method of WfAssignment that removes workitems that are not in the COMPLETED status. |
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. |
String |
getConceptualClassname()
Deprecated. |
WTContainer |
getContainer()
Gets the object for the association that plays role: CONTAINER. |
String |
getContainerName()
Gets the value of the attribute: CONTAINER_NAME. |
WTContainerRef |
getContainerReference()
Gets the value of the attribute: CONTAINER_REFERENCE. |
AdminDomainRef |
getDomainRef()
Gets the object for the association that plays role: DOMAIN_REF. |
private ObjectIdentifier |
getId(Object obj)
|
private String |
getIdString(Object obj)
|
private QueryResult |
getPersonAssignments(ProjectActivity activity)
|
ProjectPlan |
getPlan()
Gets the object for the association that plays role: PLAN. |
ObjectReference |
getPlanReference()
Gets the value of the attribute: PLAN_REFERENCE. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize(ProjectPlan plan)
Supports initialization, following construction of an instance. |
boolean |
isInheritedDomain()
Gets the value of the attribute: INHERITED_DOMAIN. |
static ProjectAssignment |
newProjectAssignment(ProjectPlan plan)
Supported API: false |
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(ProjectAssignment thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
protected ProjectAssignment |
reset()
|
protected void |
sendNotification(WorkItem wi,
WTPrincipalReference pRef)
Send an email notification to all activity assignees. |
protected void |
setActivity(WfAssignedActivity a_Activity)
Set the parent of this assignment, the WfAssignedActivity. |
void |
setContainer(WTContainer a_Container)
Sets the object for the association that plays role: CONTAINER. |
void |
setContainerReference(WTContainerRef a_ContainerReference)
Sets the value of the attribute: CONTAINER_REFERENCE. |
void |
setDomainRef(AdminDomainRef a_DomainRef)
Sets the object for the association that plays role: DOMAIN_REF. |
void |
setInheritedDomain(boolean a_InheritedDomain)
Sets the value of the attribute: INHERITED_DOMAIN. |
void |
setPlan(ProjectPlan a_Plan)
Sets the object for the association that plays role: PLAN. |
void |
setPlanReference(ObjectReference a_PlanReference)
Sets the value of the attribute: PLAN_REFERENCE. |
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.fc.WTObject |
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Methods inherited from interface wt.fc.Persistable |
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String PLAN
public static final String PLAN_REFERENCE
private ObjectReference planReference
private boolean inheritedDomain
private AdminDomainRef domainRef
public static final String CONTAINER
private WTContainerRef containerReference
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final long R60_EXTERNALIZATION_VERSION_UID
private static final boolean VERBOSE
private static final String DEFAULT_ROLE
Constructor Detail |
public ProjectAssignment()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class WfAssignment
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class WfAssignment
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ProjectAssignment 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 WfAssignment
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 WfAssignment
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class WfAssignment
public ProjectPlan getPlan()
public void setPlan(ProjectPlan a_Plan) throws WTException
a_Plan
-
WTException
public ObjectReference getPlanReference()
public void setPlanReference(ObjectReference a_PlanReference)
a_PlanReference
- protected WorkItem createWorkItem(WTPrincipal principal) throws WTException
createWorkItem
in class WfAssignment
principal
-
WTException
public static ProjectAssignment newProjectAssignment(ProjectPlan plan) throws WTException
plan
-
WTException
protected void initialize(ProjectPlan plan) throws WTException
plan
-
WTException
protected void deleteUncompletedWorkItems() throws WfException
deleteUncompletedWorkItems
in class WfAssignment
WfException
public boolean isInheritedDomain()
isInheritedDomain
in interface DomainAdministered
public void setInheritedDomain(boolean a_InheritedDomain) throws WTPropertyVetoException
setInheritedDomain
in interface DomainAdministered
a_InheritedDomain
-
WTPropertyVetoException
public AdminDomainRef getDomainRef()
getDomainRef
in interface DomainAdministered
public void setDomainRef(AdminDomainRef a_DomainRef)
setDomainRef
in interface DomainAdministered
a_DomainRef
- public String getContainerName()
WTContainer
this object is assigned to.
getContainerName
in interface WTContained
public WTContainer getContainer()
getContainer
in interface WTContained
public void setContainer(WTContainer a_Container) throws WTPropertyVetoException, WTException
setContainer
in interface WTContained
a_Container
-
WTPropertyVetoException
WTException
public WTContainerRef getContainerReference()
getContainerReference
in interface WTContained
public void setContainerReference(WTContainerRef a_ContainerReference) throws WTPropertyVetoException
setContainerReference
in interface WTContained
a_ContainerReference
-
WTPropertyVetoException
private void containerReferenceValidate(WTContainerRef a_ContainerReference) throws WTPropertyVetoException
a_ContainerReference
-
WTPropertyVetoException
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 WfAssignment
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 WfAssignment
protected void setActivity(WfAssignedActivity a_Activity)
WfAssignment
setActivity
in class WfAssignment
a_Activity
- protected WTPrincipalReference checkDelegation(WTPrincipalReference pref) throws WfException
checkDelegation
in class WfAssignment
WfException
protected void sendNotification(WorkItem wi, WTPrincipalReference pRef) throws WTException
WfAssignment
sendNotification
in class WfAssignment
WTException
protected ProjectAssignment reset() throws WTException
WTException
protected void createWorkItems(WfAssignedActivity activity) throws WfException
WfAssignment
createWorkItems
in class WfAssignment
activity
-
WfException
protected WorkItem addProjectWorkItem(WTPrincipalReference pRef) throws WTException
WTException
private QueryResult getPersonAssignments(ProjectActivity activity) throws WTException
WTException
private ObjectIdentifier getId(Object obj)
private String getIdString(Object obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |