org.itracker.model
Class Project

java.lang.Object
  extended by org.itracker.model.AbstractEntity
      extended by org.itracker.model.Project
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Entity>, Entity

public class Project
extends AbstractEntity
implements Comparable<Entity>

This is a POJO Business Domain Object modelling a project.

Hibernate Bean.

Author:
ready
See Also:
Serialized Form

Nested Class Summary
static class Project.ProjectComparator
          Comparator for comparing projects by name
 
Nested classes/interfaces inherited from class org.itracker.model.AbstractEntity
AbstractEntity.CreateDateComparator, AbstractEntity.IdComparator, AbstractEntity.LastModifiedDateComparator
 
Field Summary
static Project.ProjectComparator PROJECT_COMPARATOR
           
 
Fields inherited from class org.itracker.model.AbstractEntity
CREATE_DATE_COMPARATOR, ID_COMPARATOR, LAST_MODIFIED_DATE_COMPARATOR
 
Constructor Summary
Project()
          Default constructor (required by Hibernate).
Project(String name)
           
 
Method Summary
 List<Component> getComponents()
           
 List<CustomField> getCustomFields()
           
 String getDescription()
           
 String getName()
           
 int getOptions()
           
 List<User> getOwners()
           
 Set<Permission> getPermissions()
           
 List<ProjectScript> getScripts()
           
 Status getStatus()
           
 List<Version> getVersions()
           
 void setComponents(List<Component> getComponents)
           
 void setCustomFields(List<CustomField> getCustomFields)
           
 void setDescription(String description)
           
 void setName(String name)
           
 void setOptions(int options)
           
 void setOwners(List<User> getOwners)
           
 void setPermissions(Set<Permission> getPermissions)
           
 void setScripts(List<ProjectScript> getScripts)
           
 void setStatus(Status status)
           
 void setVersions(List<Version> getVersions)
           
 String toString()
           
 
Methods inherited from class org.itracker.model.AbstractEntity
clone, compareTo, equals, getCreateDate, getId, getLastModifiedDate, hashCode, isNew, setCreateDate, setId, setLastModifiedDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

PROJECT_COMPARATOR

public static final Project.ProjectComparator PROJECT_COMPARATOR
Constructor Detail

Project

public Project()
Default constructor (required by Hibernate).

PENDING: should be private so that it can only be used by Hibernate, to ensure that the fields which form an instance's identity are always initialized/never null.


Project

public Project(String name)
Method Detail

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getStatus

public Status getStatus()
Returns:
project's current status

setStatus

public void setStatus(Status status)
Parameters:
status -
Throws:
IllegalArgumentException - status is null

getOptions

public int getOptions()

setOptions

public void setOptions(int options)

getComponents

public List<Component> getComponents()

setComponents

public void setComponents(List<Component> getComponents)

getVersions

public List<Version> getVersions()

setVersions

public void setVersions(List<Version> getVersions)

getCustomFields

public List<CustomField> getCustomFields()

setCustomFields

public void setCustomFields(List<CustomField> getCustomFields)

getOwners

public List<User> getOwners()

setOwners

public void setOwners(List<User> getOwners)

getPermissions

public Set<Permission> getPermissions()

setPermissions

public void setPermissions(Set<Permission> getPermissions)

getScripts

public List<ProjectScript> getScripts()

setScripts

public void setScripts(List<ProjectScript> getScripts)

toString

public String toString()
Overrides:
toString in class Object
Returns:
Project [id=id, name=name]


Copyright © 2002-2012 itracker. All Rights Reserved.