za.org.coefficient.modules.issueTracker
Class DiscussionData

java.lang.Object
  extended by za.org.coefficient.modules.issueTracker.DiscussionData
All Implemented Interfaces:
java.io.Serializable, net.sf.hibernate.Validatable

public class DiscussionData
extends java.lang.Object
implements net.sf.hibernate.Validatable, java.io.Serializable

See Also:
Serialized Form

Field Summary
private  java.util.List children
           
private  java.lang.String comments
           
private  java.lang.Long id
           
private  Role maxReadRole
           
private  Role maxWriteRole
           
private  DiscussionData parent
           
private  java.util.Date postDate
           
private  Project project
           
private  int replies
           
private  java.lang.String subject
           
private  java.lang.String type
           
private  CoefficientUser user
           
 
Constructor Summary
DiscussionData()
           
 
Method Summary
 void addChild(DiscussionData child)
           
 boolean equals(java.lang.Object other)
           
 java.util.List getChildren()
           
 int getChildrenCount()
           
 java.lang.String getComments()
          Gets the value of name
 java.lang.Long getId()
          Gets the value of id
 Role getMaxReadRole()
           
 Role getMaxWriteRole()
           
 DiscussionData getParent()
           
 java.util.Date getPostDate()
          Gets the value of description
 Project getProject()
           
 int getReplies()
          Gets the value of description
 java.lang.String getSubject()
          Gets the value of description
 java.lang.String getType()
          Gets the value of type: forum or discussion
 CoefficientUser getUser()
           
 void removeChild(DiscussionData child)
           
 void setAllMaxReadRoles(Role maxReadRole)
           
 void setAllMaxWriteRoles(Role maxWriteRole)
           
 void setChildren(java.util.List argList)
           
 void setComments(java.lang.String argComments)
           
 void setId(java.lang.Long argId)
           
 void setMaxReadRole(Role maxReadRole)
           
 void setMaxWriteRole(Role maxWriteRole)
           
 void setParent(DiscussionData data)
           
 void setPostDate(java.util.Date argPostDate)
           
 void setProject(Project argProject)
           
 void setReplies(int argReplies)
           
 void setSubject(java.lang.String argSubject)
           
 void setType(java.lang.String type)
          Sets the different type of discussions:(forum or discussion)
 void setUser(CoefficientUser argUser)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user

private CoefficientUser user

postDate

private java.util.Date postDate

parent

private DiscussionData parent

children

private java.util.List children

id

private java.lang.Long id

project

private Project project

maxReadRole

private Role maxReadRole

maxWriteRole

private Role maxWriteRole

comments

private java.lang.String comments

subject

private java.lang.String subject

type

private java.lang.String type

replies

private int replies
Constructor Detail

DiscussionData

public DiscussionData()
Method Detail

setAllMaxReadRoles

public void setAllMaxReadRoles(Role maxReadRole)

setAllMaxWriteRoles

public void setAllMaxWriteRoles(Role maxWriteRole)

setChildren

public void setChildren(java.util.List argList)

getChildren

public java.util.List getChildren()

getChildrenCount

public int getChildrenCount()

setComments

public void setComments(java.lang.String argComments)

getComments

public java.lang.String getComments()
Gets the value of name

Returns:
the value of name

setId

public void setId(java.lang.Long argId)

getId

public java.lang.Long getId()
Gets the value of id

Returns:
the value of id

setMaxReadRole

public void setMaxReadRole(Role maxReadRole)

getMaxReadRole

public Role getMaxReadRole()

setMaxWriteRole

public void setMaxWriteRole(Role maxWriteRole)

getMaxWriteRole

public Role getMaxWriteRole()

setParent

public void setParent(DiscussionData data)

getParent

public DiscussionData getParent()

setPostDate

public void setPostDate(java.util.Date argPostDate)

getPostDate

public java.util.Date getPostDate()
Gets the value of description

Returns:
the value of description

setProject

public void setProject(Project argProject)

getProject

public Project getProject()

setReplies

public void setReplies(int argReplies)

getReplies

public int getReplies()
Gets the value of description

Returns:
the value of description

setSubject

public void setSubject(java.lang.String argSubject)

getSubject

public java.lang.String getSubject()
Gets the value of description

Returns:
the value of description

setType

public void setType(java.lang.String type)
Sets the different type of discussions:(forum or discussion)

Parameters:
active - Value to assign to this.type

getType

public java.lang.String getType()
Gets the value of type: forum or discussion

Returns:
the value of type: forum or discussion

setUser

public void setUser(CoefficientUser argUser)

getUser

public CoefficientUser getUser()

addChild

public void addChild(DiscussionData child)

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

removeChild

public void removeChild(DiscussionData child)

validate

public void validate()
              throws net.sf.hibernate.ValidationFailure
Specified by:
validate in interface net.sf.hibernate.Validatable
Throws:
net.sf.hibernate.ValidationFailure


Copyright CSIR. All Rights Reserved.