|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.lifecycle.LifeCycleSignature
LifeCycleSignature captures a role player's ballot and comments for a specific object in a specific phase of a life cycle.
Use the newLifeCycleSignature
static factory method(s),
not the LifeCycleSignature
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
Signable
,
Phase
,
LifeCycleHistory
,
wt.workflow.WorkItem
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
private String |
comments
|
private static int |
COMMENTS_UPPER_LIMIT
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
static String |
PHASE_NAME
Label for the attribute; Phase name this signature is associated with. |
private static int |
PHASE_NAME_UPPER_LIMIT
|
private String |
phaseName
|
private static String |
RESOURCE
|
static String |
ROLE_NAME
Label for the attribute; The name of the Role Supported API: true |
private static int |
ROLE_NAME_UPPER_LIMIT
|
private String |
roleName
|
(package private) static long |
serialVersionUID
|
private ObjectReference |
signedObject
|
private WTPrincipalReference |
signer
|
private static int |
SIGNER_NAME_UPPER_LIMIT
|
private String |
signerName
|
private boolean |
vote
|
static String |
VOTE
Label for the attribute; The signer's vote. |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.lifecycle.Signable |
COMMENTS, SIGNED_OBJECT, SIGNER, SIGNER_NAME |
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 | |
LifeCycleSignature()
|
Method Summary | |
void |
checkAttributes()
Validate the values of this Persistable object's attributes. |
private void |
commentsValidate(String a_Comments)
|
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 |
getComments()
Gets the value of the attribute: COMMENTS. |
String |
getConceptualClassname()
Deprecated. |
String |
getPhaseName()
Gets the value of the attribute: PHASE_NAME. |
String |
getRoleName()
Gets the value of the attribute: ROLE_NAME. |
static SearchCondition |
getSearchCondition(LifeCycleManaged object)
|
static SearchCondition |
getSearchCondition(Role aRole)
|
static SearchCondition |
getSearchCondition(String phaseName)
|
static SearchCondition |
getSearchCondition(WTUser user)
|
ObjectReference |
getSignedObject()
Gets the object for the association that plays role: SIGNED_OBJECT. |
WTPrincipalReference |
getSigner()
Gets the object for the association that plays role: SIGNER. |
String |
getSignerName()
Gets the value of the attribute: SIGNER_NAME. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
boolean |
isVote()
Gets the value of the attribute: VOTE. |
static LifeCycleSignature |
newLifeCycleSignature()
Default factory for the class. |
protected static LifeCycleSignature |
newLifeCycleSignature(Persistable object,
String signerName,
String comments,
Role role,
boolean vote)
|
static LifeCycleSignature |
newLifeCycleSignature(Persistable object,
WTPrincipal signer,
String comments,
Role role,
boolean vote)
Factory to create a WTSignature instance Supported API: false |
private void |
phaseNameValidate(String a_PhaseName)
|
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(LifeCycleSignature thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private void |
roleNameValidate(String a_RoleName)
|
void |
setComments(String a_Comments)
Sets the value of the attribute: COMMENTS. |
void |
setPhaseName(String a_PhaseName)
Sets the value of the attribute: PHASE_NAME. |
void |
setRoleName(String a_RoleName)
Sets the value of the attribute: ROLE_NAME. |
void |
setSignedObject(ObjectReference a_SignedObject)
Sets the object for the association that plays role: SIGNED_OBJECT. |
void |
setSigner(WTPrincipalReference a_Signer)
Sets the object for the association that plays role: SIGNER. |
void |
setSignerName(String a_SignerName)
Sets the value of the attribute: SIGNER_NAME. |
void |
setVote(boolean a_Vote)
Sets the value of the attribute: VOTE. |
private void |
signedObjectValidate(ObjectReference a_SignedObject)
|
private void |
signerNameValidate(String a_SignerName)
|
private void |
signerValidate(WTPrincipalReference a_Signer)
|
private void |
voteValidate(boolean a_Vote)
|
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 |
duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, initialize, 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 ROLE_NAME
private static int ROLE_NAME_UPPER_LIMIT
private String roleName
public static final String VOTE
private boolean vote
public static final String PHASE_NAME
private static int PHASE_NAME_UPPER_LIMIT
private String phaseName
private static int SIGNER_NAME_UPPER_LIMIT
private String signerName
private static int COMMENTS_UPPER_LIMIT
private String comments
private ObjectReference signedObject
private WTPrincipalReference signer
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public LifeCycleSignature()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class WTObject
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class WTObject
input
-
IOException
ClassNotFoundException
protected boolean readVersion(LifeCycleSignature 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 WTObject
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 WTObject
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String getRoleName()
public void setRoleName(String a_RoleName) throws WTPropertyVetoException
a_RoleName
-
WTPropertyVetoException
private void roleNameValidate(String a_RoleName) throws WTPropertyVetoException
a_RoleName
-
WTPropertyVetoException
public boolean isVote()
public void setVote(boolean a_Vote) throws WTPropertyVetoException
a_Vote
-
WTPropertyVetoException
private void voteValidate(boolean a_Vote) throws WTPropertyVetoException
a_Vote
-
WTPropertyVetoException
public String getPhaseName()
public void setPhaseName(String a_PhaseName) throws WTPropertyVetoException
a_PhaseName
-
WTPropertyVetoException
private void phaseNameValidate(String a_PhaseName) throws WTPropertyVetoException
a_PhaseName
-
WTPropertyVetoException
public static LifeCycleSignature newLifeCycleSignature(Persistable object, WTPrincipal signer, String comments, Role role, boolean vote) throws WTException
object
- the Persistable object that the LifeCycleSignature is associated tosigner
- the WTPrincipal who did the workcomments
- any comments the signer recorded about the work accomplishedrole
- the Role object, used to represent the role the signer was participating asvote
- a boolean signer designation, used to record the disposition
WTException
public static LifeCycleSignature newLifeCycleSignature() throws WTException
WTException
public String getSignerName()
getSignerName
in interface Signable
public void setSignerName(String a_SignerName) throws WTPropertyVetoException
setSignerName
in interface Signable
a_SignerName
-
WTPropertyVetoException
private void signerNameValidate(String a_SignerName) throws WTPropertyVetoException
a_SignerName
-
WTPropertyVetoException
public String getComments()
getComments
in interface Signable
public void setComments(String a_Comments) throws WTPropertyVetoException
setComments
in interface Signable
a_Comments
-
WTPropertyVetoException
private void commentsValidate(String a_Comments) throws WTPropertyVetoException
a_Comments
-
WTPropertyVetoException
public ObjectReference getSignedObject()
getSignedObject
in interface Signable
public void setSignedObject(ObjectReference a_SignedObject) throws WTPropertyVetoException
setSignedObject
in interface Signable
a_SignedObject
-
WTPropertyVetoException
private void signedObjectValidate(ObjectReference a_SignedObject) throws WTPropertyVetoException
a_SignedObject
-
WTPropertyVetoException
public WTPrincipalReference getSigner()
getSigner
in interface Signable
public void setSigner(WTPrincipalReference a_Signer) throws WTPropertyVetoException
setSigner
in interface Signable
a_Signer
-
WTPropertyVetoException
private void signerValidate(WTPrincipalReference a_Signer) throws WTPropertyVetoException
a_Signer
-
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 WTObject
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 WTObject
public static SearchCondition getSearchCondition(LifeCycleManaged object) throws WTException
WTException
public static SearchCondition getSearchCondition(Role aRole) throws WTException
WTException
public static SearchCondition getSearchCondition(WTUser user) throws WTException
WTException
public static SearchCondition getSearchCondition(String phaseName) throws WTException
WTException
protected static LifeCycleSignature newLifeCycleSignature(Persistable object, String signerName, String comments, Role role, boolean vote) throws WTException
WTException
public void checkAttributes() throws InvalidAttributeException
Persistable
checkAttributes
in interface Persistable
checkAttributes
in class WTObject
InvalidAttributeException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |