|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.WTObject
wt.workflow.forum.Discussion
wt.workflow.forum.DiscussionPosting
DiscussionPosting
represents the actual conversations on
a given topic. Postings can be nested, that is, a posting can be replied
to.
Use the newDiscussionPosting
static factory method(s), not
the DiscussionPosting
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
Fields inherited from class wt.workflow.forum.Discussion |
CONTAINER, DEFINITION |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.content.ContentHolder |
CONTENT_VECTOR, HAS_CONTENTS, HTTP_VECTOR, OPERATION |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO |
Fields inherited from interface wt.ownership.Ownable |
OWNERSHIP |
Fields inherited from interface wt.workflow.collaboration.CollaborationContainer |
DEFINITION_REFERENCE |
Fields inherited from interface wt.notify.Notifiable |
EVENT_SET |
Fields inherited from interface wt.inf.container.WTContained |
CONTAINER_ID, CONTAINER_NAME, CONTAINER_REFERENCE |
Fields inherited from interface wt.index.Indexable |
INDEXER_SET |
Fields inherited from interface wt.admin.DomainAdministered |
DOMAIN_REF, INHERITED_DOMAIN |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
DiscussionPosting()
|
Method Summary | |
void |
addAttachment(Bookmark bookmark)
Supported API: false |
void |
addAttachment(String file,
String file_path,
String override_name)
Supported API: false |
private void |
collectSubpostings(Vector parentsVec,
Vector searchVec,
Vector allMyChildren)
|
void |
deleteAttachments()
Supported API: false |
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. |
Enumeration |
getAttachments()
Supported API: false |
Vector |
getChildren()
Returns all objects that have the container as their parent object. |
Vector |
getChildren(boolean attachments)
Returns all objects that have the container as their parent object. |
String |
getConceptualClassname()
Deprecated. |
Vector |
getContentVector()
Gets the value of the attribute: CONTENT_VECTOR. |
DiscussionTopic |
getDiscussionTopic()
Gets the object for the association that plays role: DISCUSSION_TOPIC. |
ObjectReference |
getDiscussionTopicReference()
Gets the value of the attribute: DISCUSSION_TOPIC_REFERENCE. |
Vector |
getHttpVector()
Gets the value of the attribute: HTTP_VECTOR. |
String |
getMessage()
Gets the value of the attribute: MESSAGE. |
Vector |
getOnlyImmediateChildren()
Returns all objects that have the container as their parent object. |
HttpContentOperation |
getOperation()
Gets the value of the attribute: OPERATION. |
CollaborationContainer |
getParent()
Returns the object if any that acts as the container of this object. |
DiscussionPosting |
getParentPosting()
Gets the object for the association that plays role: PARENT_POSTING. |
ObjectReference |
getParentPostingReference()
Gets the value of the attribute: PARENT_POSTING_REFERENCE. |
Enumeration |
getPostings()
Retrieves all the postings that are children of this posting. |
String |
getSubject()
Gets the value of the attribute: SUBJECT. |
ObjectReference |
getSubjectObjectReference()
Gets the value of the attribute: SUBJECT_OBJECT_REFERENCE. |
VersionReference |
getSubjectVersionReference()
Gets the value of the attribute: SUBJECT_VERSION_REFERENCE. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
protected void |
initialize()
Initializes objects created by new-factory methods. |
protected void |
initialize(String sub,
String msg,
Discussion parent)
Supports initialization, following construction of an instance. |
boolean |
isHasContents()
Gets the value of the attribute: HAS_CONTENTS. |
private void |
messageValidate(String a_Message)
|
static DiscussionPosting |
newDiscussionPosting(String sub,
String msg,
Discussion parent)
Creates a new DiscussionPosting and sets the subject and message to the given Strings respectively and sets the parent to the given Discussion. |
private void |
parentPostingReferenceValidate(ObjectReference a_ParentPostingReference)
|
ObjectSubscription |
populateSubscription(ObjectSubscription subscription)
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(DiscussionPosting thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setContentVector(Vector a_ContentVector)
Sets the value of the attribute: CONTENT_VECTOR. |
void |
setDiscussionTopic(DiscussionTopic a_DiscussionTopic)
Sets the object for the association that plays role: DISCUSSION_TOPIC. |
void |
setDiscussionTopicReference(ObjectReference a_DiscussionTopicReference)
Sets the value of the attribute: DISCUSSION_TOPIC_REFERENCE. |
void |
setHasContents(boolean a_HasContents)
Sets the value of the attribute: HAS_CONTENTS. |
void |
setHttpVector(Vector a_HttpVector)
Sets the value of the attribute: HTTP_VECTOR. |
void |
setMessage(String a_Message)
Sets the value of the attribute: MESSAGE. |
void |
setOperation(HttpContentOperation a_Operation)
Sets the value of the attribute: OPERATION. |
void |
setParentPosting(DiscussionPosting a_ParentPosting)
Sets the object for the association that plays role: PARENT_POSTING. |
void |
setParentPostingReference(ObjectReference a_ParentPostingReference)
Sets the value of the attribute: PARENT_POSTING_REFERENCE. |
void |
setSubject(String a_Subject)
Sets the value of the attribute: SUBJECT. |
void |
setSubjectObjectReference(ObjectReference a_SubjectObjectReference)
Sets the value of the attribute: SUBJECT_OBJECT_REFERENCE. |
void |
setSubjectVersionReference(VersionReference a_SubjectVersionReference)
Sets the value of the attribute: SUBJECT_VERSION_REFERENCE. |
private void |
subjectObjectReferenceValidate(ObjectReference a_SubjectObjectReference)
|
private void |
subjectValidate(String a_Subject)
|
private void |
subjectVersionReferenceValidate(VersionReference a_SubjectVersionReference)
|
private void |
theDiscussionTopicReferenceValidate(ObjectReference a_DiscussionTopicReference)
|
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.workflow.forum.Discussion |
addUserSubscription, getContainer, getContainerName, getContainerReference, getDefinition, getDefinitionReference, getDomainRef, getEventSet, getIndexerSet, getOwnership, isInheritedDomain, notifyObjectEvent, readVersion, setContainer, setContainerReference, setDefinition, setDefinitionReference, setDomainRef, setEventSet, setIndexerSet, setInheritedDomain, setOwnership |
Methods inherited from class wt.fc.WTObject |
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, 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 |
checkAttributes, 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 MESSAGE
private static int MESSAGE_UPPER_LIMIT
private String message
public static final String SUBJECT
private static int SUBJECT_UPPER_LIMIT
private String subject
public static final String SUBJECT_OBJECT_REFERENCE
private ObjectReference subjectObjectReference
public static final String SUBJECT_VERSION_REFERENCE
private VersionReference subjectVersionReference
public static final String DISCUSSION_TOPIC
public static final String DISCUSSION_TOPIC_REFERENCE
private ObjectReference theDiscussionTopicReference
public static final String PARENT_POSTING
public static final String PARENT_POSTING_REFERENCE
private ObjectReference parentPostingReference
private Vector contentVector
private boolean hasContents
private HttpContentOperation operation
private Vector httpVector
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static boolean VERBOSE
private static final String FORUM_NOTIFICATION_TEMPLATE
public static final String TYPE
Constructor Detail |
public DiscussionPosting()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Discussion
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Discussion
input
-
IOException
ClassNotFoundException
protected boolean readVersion(DiscussionPosting 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 Discussion
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 Discussion
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String getMessage()
public void setMessage(String a_Message) throws WTPropertyVetoException
a_Message
-
WTPropertyVetoException
private void messageValidate(String a_Message) throws WTPropertyVetoException
a_Message
-
WTPropertyVetoException
public String getSubject()
public void setSubject(String a_Subject) throws WTPropertyVetoException
a_Subject
-
WTPropertyVetoException
private void subjectValidate(String a_Subject) throws WTPropertyVetoException
a_Subject
-
WTPropertyVetoException
public ObjectReference getSubjectObjectReference()
public void setSubjectObjectReference(ObjectReference a_SubjectObjectReference) throws WTPropertyVetoException
a_SubjectObjectReference
-
WTPropertyVetoException
private void subjectObjectReferenceValidate(ObjectReference a_SubjectObjectReference) throws WTPropertyVetoException
a_SubjectObjectReference
-
WTPropertyVetoException
public VersionReference getSubjectVersionReference()
public void setSubjectVersionReference(VersionReference a_SubjectVersionReference) throws WTPropertyVetoException
a_SubjectVersionReference
-
WTPropertyVetoException
private void subjectVersionReferenceValidate(VersionReference a_SubjectVersionReference) throws WTPropertyVetoException
a_SubjectVersionReference
-
WTPropertyVetoException
public DiscussionTopic getDiscussionTopic()
public void setDiscussionTopic(DiscussionTopic a_DiscussionTopic) throws WTPropertyVetoException, WTException
a_DiscussionTopic
-
WTPropertyVetoException
WTException
public ObjectReference getDiscussionTopicReference()
public void setDiscussionTopicReference(ObjectReference a_DiscussionTopicReference) throws WTPropertyVetoException
a_DiscussionTopicReference
-
WTPropertyVetoException
private void theDiscussionTopicReferenceValidate(ObjectReference a_DiscussionTopicReference) throws WTPropertyVetoException
a_DiscussionTopicReference
-
WTPropertyVetoException
public DiscussionPosting getParentPosting()
public void setParentPosting(DiscussionPosting a_ParentPosting) throws WTPropertyVetoException, WTException
a_ParentPosting
-
WTPropertyVetoException
WTException
public ObjectReference getParentPostingReference()
public void setParentPostingReference(ObjectReference a_ParentPostingReference) throws WTPropertyVetoException
a_ParentPostingReference
-
WTPropertyVetoException
private void parentPostingReferenceValidate(ObjectReference a_ParentPostingReference) throws WTPropertyVetoException
a_ParentPostingReference
-
WTPropertyVetoException
public Enumeration getPostings() throws WTException
WTException
public static DiscussionPosting newDiscussionPosting(String sub, String msg, Discussion parent) throws WTException
sub
- Subject of the DiscussionPostingmsg
- The body of the DiscussionPosting.parent
- The parent discussion.
WTException
protected void initialize(String sub, String msg, Discussion parent) throws WTException
sub
- Subject of the DiscussionPostingmsg
- The body of the DiscussionPosting.parent
- The parent discussion.
WTException
public Enumeration getAttachments() throws WTException
WTException
public CollaborationContainer getParent() throws WTException
getParent
in interface CollaborationContainer
getParent
in class Discussion
WTException
public ObjectSubscription populateSubscription(ObjectSubscription subscription) throws WTException
populateSubscription
in interface CollaborationContainer
populateSubscription
in class Discussion
subscription
-
WTException
public void addAttachment(Bookmark bookmark) throws WTException
bookmark
-
WTException
public void addAttachment(String file, String file_path, String override_name) throws WTException
file
- file_path
- override_name
-
WTException
public Vector getChildren() throws WTException
getChildren
in interface CollaborationContainer
WTException
public void deleteAttachments() throws WTException
WTException
public Vector getOnlyImmediateChildren() throws WTException
getOnlyImmediateChildren
in class Discussion
WTException
public Vector getChildren(boolean attachments) throws WTException
getChildren
in class Discussion
attachments
-
WTException
public Vector getContentVector()
getContentVector
in interface ContentHolder
public void setContentVector(Vector a_ContentVector) throws WTPropertyVetoException
setContentVector
in interface ContentHolder
a_ContentVector
-
WTPropertyVetoException
public boolean isHasContents()
isHasContents
in interface ContentHolder
public void setHasContents(boolean a_HasContents) throws WTPropertyVetoException
setHasContents
in interface ContentHolder
a_HasContents
-
WTPropertyVetoException
public HttpContentOperation getOperation()
getOperation
in interface ContentHolder
public void setOperation(HttpContentOperation a_Operation) throws WTPropertyVetoException
setOperation
in interface ContentHolder
a_Operation
-
WTPropertyVetoException
public Vector getHttpVector()
getHttpVector
in interface ContentHolder
public void setHttpVector(Vector a_HttpVector) throws WTPropertyVetoException
setHttpVector
in interface ContentHolder
a_HttpVector
-
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 Discussion
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 Discussion
private void collectSubpostings(Vector parentsVec, Vector searchVec, Vector allMyChildren) throws WTException
WTException
protected void initialize() throws WTException
WTObject
initialize
in class WTObject
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |