com.opnworks.timesheet.domain
Class Project

java.lang.Object
  extended bycom.opnworks.timesheet.domain.Project
All Implemented Interfaces:
IActivityLister, INamedObject, IPersistent, java.io.Serializable

public class Project
extends java.lang.Object
implements IPersistent, IActivityLister, INamedObject

This class is used to represent projects to which timesheet line items are attached. It implements the IPersistent, IActivityListener and INamedObject.

Author:
laurent
See Also:
Serialized Form

Constructor Summary
Project()
           
Project(java.lang.String name, java.lang.String code, java.lang.String description, IOrganization sponsor)
           
 
Method Summary
 void addActivityType(ActivityType activityType)
           
 boolean equals(java.lang.Object other)
          Description of the Method
 java.util.List getActivityTypes()
           
 java.lang.String getCode()
           
 java.lang.String getDescription()
           
 java.lang.Long getId()
          Gets the Id attribute of the IPersistent object
 java.lang.String getName()
          Gets the Name attribute of the INamedObject object
 IOrganization getSponsor()
           
 int getVersion()
          Gets the Version attribute of the Project object
 int hashCode()
          Description of the Method
 void removeActivityType(ActivityType activityType)
           
 void setActivityTypes(java.util.List list)
           
 void setCode(java.lang.String string)
           
 void setDescription(java.lang.String string)
           
 void setId(java.lang.Long id)
          Sets the Id attribute of the Project object
 void setName(java.lang.String string)
           
 void setSponsor(IOrganization organization)
           
 void setVersion(int version)
          Sets the Version attribute of the Project object
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Project

public Project(java.lang.String name,
               java.lang.String code,
               java.lang.String description,
               IOrganization sponsor)
Parameters:
name -
code -
description -
sponsor -

Project

public Project()
Method Detail

setSponsor

public void setSponsor(IOrganization organization)
Parameters:
organization -

setId

public void setId(java.lang.Long id)
Sets the Id attribute of the Project object

Specified by:
setId in interface IPersistent
Parameters:
id - The new Id value

setDescription

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

setName

public void setName(java.lang.String string)
Parameters:
string -

setActivityTypes

public void setActivityTypes(java.util.List list)
Parameters:
list - The new ActivityTypes value

setCode

public void setCode(java.lang.String string)
Parameters:
string -

setVersion

public void setVersion(int version)
Sets the Version attribute of the Project object

Specified by:
setVersion in interface IPersistent
Parameters:
version - The new Version value

getActivityTypes

public java.util.List getActivityTypes()
Specified by:
getActivityTypes in interface IActivityLister
Returns:

getSponsor

public IOrganization getSponsor()
Returns:

getId

public java.lang.Long getId()
Description copied from interface: IPersistent
Gets the Id attribute of the IPersistent object

Specified by:
getId in interface IPersistent
Returns:

getDescription

public java.lang.String getDescription()
Returns:

getName

public java.lang.String getName()
Description copied from interface: INamedObject
Gets the Name attribute of the INamedObject object

Specified by:
getName in interface INamedObject
Returns:

getCode

public java.lang.String getCode()
Returns:

getVersion

public int getVersion()
Gets the Version attribute of the Project object

Specified by:
getVersion in interface IPersistent
Returns:
The Version value

addActivityType

public void addActivityType(ActivityType activityType)
Specified by:
addActivityType in interface IActivityLister
Parameters:
activityType - An ActivityType

removeActivityType

public void removeActivityType(ActivityType activityType)
Specified by:
removeActivityType in interface IActivityLister
Parameters:
activityType - An ActivityType

equals

public boolean equals(java.lang.Object other)
Description of the Method

Parameters:
other - Description of Parameter
Returns:
Description of the Returned Value

hashCode

public int hashCode()
Description of the Method

Returns:
Description of the Returned Value