|
|||||||||||
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.DiscussionTopic
A DiscussionTopic
is a subject/header in a forum under which
comments/postings can be made. It serves as a categorization mechanism
for discussions within a particular forum. A forum can have any number
of DiscussionTopics. Every posting in a DiscussionForum
needs to be a child of a topic.
Use the newDiscussionTopic
static factory method(s), not
the DiscussionTopic
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
|
private String |
description
|
static String |
DESCRIPTION
Label for the attribute. |
private static int |
DESCRIPTION_UPPER_LIMIT
|
static long |
EXTERNALIZATION_VERSION_UID
|
static String |
FORUM
Label for the attribute. |
private static String |
FORUM_NOTIFICATION_TEMPLATE
|
static String |
FORUM_REFERENCE
Label for the attribute. |
private ObjectReference |
forumReference
|
private String |
name
|
static String |
NAME
Label for the attribute. |
private static int |
NAME_UPPER_LIMIT
|
protected static long |
OLD_FORMAT_VERSION_UID
|
static String |
PARENT_TOPIC
Label for the attribute. |
static String |
PARENT_TOPIC_REFERENCE
Label for the attribute. |
private ObjectReference |
parentTopicReference
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
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.ownership.Ownable |
OWNERSHIP |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
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 | |
DiscussionTopic()
|
Method Summary | |
void |
addPosting(DiscussionPosting posting)
Supported API: false |
private void |
descriptionValidate(String a_Description)
|
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. |
private void |
forumReferenceValidate(ObjectReference a_ForumReference)
|
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. |
String |
getDescription()
Gets the value of the attribute: DESCRIPTION. |
DiscussionForum |
getForum()
Gets the object for the association that plays role: FORUM. |
ObjectReference |
getForumReference()
Gets the value of the attribute: FORUM_REFERENCE. |
String |
getName()
Gets the value of the attribute: NAME. |
Vector |
getOnlyImmediateChildren()
Returns all objects that have the container as their parent object. |
CollaborationContainer |
getParent()
Returns the object if any that acts as the container of this object. |
DiscussionTopic |
getParentTopic()
Gets the object for the association that plays role: PARENT_TOPIC. |
ObjectReference |
getParentTopicReference()
Gets the value of the attribute: PARENT_TOPIC_REFERENCE. |
Enumeration |
getPostings()
Retrieves all the DiscussionPosting that are part of this discusson. |
Enumeration |
getTopics()
Retrieves all the topics that are part of this discussion i.e. |
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 topicName,
Discussion parent)
Supports initialization, following construction of an instance. |
private void |
nameValidate(String a_Name)
|
static DiscussionTopic |
newDiscussionTopic(String topicName,
Discussion parent)
Creates a new DiscussionTopic with the given name and sets the parent as the given Discussion. |
private void |
parentTopicReferenceValidate(ObjectReference a_ParentTopicReference)
|
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(DiscussionTopic thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setDescription(String a_Description)
Sets the value of the attribute: DESCRIPTION. |
void |
setForum(DiscussionForum a_Forum)
Sets the object for the association that plays role: FORUM. |
void |
setForumReference(ObjectReference a_ForumReference)
Sets the value of the attribute: FORUM_REFERENCE. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setParentTopic(DiscussionTopic a_ParentTopic)
Sets the object for the association that plays role: PARENT_TOPIC. |
void |
setParentTopicReference(ObjectReference a_ParentTopicReference)
Sets the value of the attribute: PARENT_TOPIC_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.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 DESCRIPTION
private static int DESCRIPTION_UPPER_LIMIT
private String description
public static final String NAME
private static int NAME_UPPER_LIMIT
private String name
public static final String PARENT_TOPIC
public static final String PARENT_TOPIC_REFERENCE
private ObjectReference parentTopicReference
public static final String FORUM
public static final String FORUM_REFERENCE
private ObjectReference forumReference
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
Constructor Detail |
public DiscussionTopic()
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(DiscussionTopic 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 getDescription()
public void setDescription(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
private void descriptionValidate(String a_Description) throws WTPropertyVetoException
a_Description
-
WTPropertyVetoException
public String getName()
public void setName(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
private void nameValidate(String a_Name) throws WTPropertyVetoException
a_Name
-
WTPropertyVetoException
public DiscussionTopic getParentTopic()
public void setParentTopic(DiscussionTopic a_ParentTopic) throws WTPropertyVetoException, WTException
a_ParentTopic
-
WTPropertyVetoException
WTException
public ObjectReference getParentTopicReference()
public void setParentTopicReference(ObjectReference a_ParentTopicReference) throws WTPropertyVetoException
a_ParentTopicReference
-
WTPropertyVetoException
private void parentTopicReferenceValidate(ObjectReference a_ParentTopicReference) throws WTPropertyVetoException
a_ParentTopicReference
-
WTPropertyVetoException
public DiscussionForum getForum()
public void setForum(DiscussionForum a_Forum) throws WTPropertyVetoException, WTException
a_Forum
-
WTPropertyVetoException
WTException
public ObjectReference getForumReference()
public void setForumReference(ObjectReference a_ForumReference) throws WTPropertyVetoException
a_ForumReference
-
WTPropertyVetoException
private void forumReferenceValidate(ObjectReference a_ForumReference) throws WTPropertyVetoException
a_ForumReference
-
WTPropertyVetoException
public void addPosting(DiscussionPosting posting)
posting
- public Enumeration getTopics() throws WTException
WTException
public Enumeration getPostings() throws WTException
WTException
public static DiscussionTopic newDiscussionTopic(String topicName, Discussion parent) throws WTException
topicName
- The name of the topic.parent
- The parent Discussion of this topic. Can only be a Forum or a DiscussionTopic.
WTException
protected void initialize(String topicName, Discussion parent) throws WTException
topicName
- The name of the topic.parent
- The parent Discussion of this topic. Can only be a Forum or a DiscussionTopic.
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 Vector getChildren() throws WTException
getChildren
in interface CollaborationContainer
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 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
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 |