org.bejug.javacareers.jobs.model
Class Item

java.lang.Object
  extended byorg.bejug.javacareers.jobs.model.AbstractPersistableObject
      extended byorg.bejug.javacareers.jobs.model.Item
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Direct Known Subclasses:
Interview, Offer, Resume

public class Item
extends AbstractPersistableObject

Version:
$Revision: 1.8 $ - $Date: 2005/12/20 15:36:45 $
Author:
Sven Schauwvliege (Last modified by $Author: shally $)
See Also:
Serialized Form

Field Summary
protected  boolean adminApproved
          The adminApproved boolean.
protected  java.lang.String description
          description of the offer.
protected  User user
          The user User.
 
Constructor Summary
Item()
           
 
Method Summary
 void addComment(Comment comment)
          adds a comment
 int compareTo(java.lang.Object o)
          
 boolean equals(java.lang.Object o)
          
 java.lang.String getAbbreviatedDescription()
           
 java.util.Set getComments()
           
 java.lang.String getDescription()
           
 int getNrOfComments()
          Convenience method returning the nr of comments related to this offer
 java.util.Date getPublicationDate()
           
 java.lang.String getTitle()
           
 User getUser()
           
 int hashCode()
          
 boolean isAdminApproved()
           
 void setAdminApproved(boolean adminApproved)
           
 void setComments(java.util.Set comments)
           
 void setDescription(java.lang.String description)
           
 void setPublicationDate(java.util.Date publicationDate)
           
 void setTitle(java.lang.String title)
           
 void setUser(User user)
           
 java.lang.String toString()
          
 
Methods inherited from class org.bejug.javacareers.jobs.model.AbstractPersistableObject
getCreationDate, getId, getModificationDate, getVersion, isEditable, isNew, setCreationDate, setEditable, setId, setModificationDate, setVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

user

protected User user
The user User.


adminApproved

protected boolean adminApproved
The adminApproved boolean.


description

protected java.lang.String description
description of the offer.

Constructor Detail

Item

public Item()
Method Detail

getPublicationDate

public java.util.Date getPublicationDate()
Returns:
Returns the publicationDate.

setPublicationDate

public void setPublicationDate(java.util.Date publicationDate)
Parameters:
publicationDate - The publicationDate to set.

getTitle

public java.lang.String getTitle()
Returns:
Returns the title.

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - The title to set.

compareTo

public int compareTo(java.lang.Object o)

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class AbstractPersistableObject

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class AbstractPersistableObject

hashCode

public int hashCode()

Overrides:
hashCode in class AbstractPersistableObject

toString

public java.lang.String toString()

Overrides:
toString in class AbstractPersistableObject

getUser

public User getUser()
Returns:
Returns the user.

setUser

public void setUser(User user)
Parameters:
user - The user to set.

isAdminApproved

public boolean isAdminApproved()
Returns:
Returns the adminApproved.

setAdminApproved

public void setAdminApproved(boolean adminApproved)
Parameters:
adminApproved - The adminApproved to set.

addComment

public void addComment(Comment comment)
adds a comment

Parameters:
comment - the comment to add

getComments

public java.util.Set getComments()
Returns:
Returns the comments.

setComments

public void setComments(java.util.Set comments)
Parameters:
comments - The comments to set.

getAbbreviatedDescription

public java.lang.String getAbbreviatedDescription()
Returns:
AbbreviatedDescription

getDescription

public java.lang.String getDescription()
Returns:
description String

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - String

getNrOfComments

public int getNrOfComments()
Convenience method returning the nr of comments related to this offer

Returns:
nrOfComments


Copyright © 2005-2006 BeJUG. All Rights Reserved.