za.org.coefficient.core
Class Project

java.lang.Object
  extended by za.org.coefficient.core.Project
All Implemented Interfaces:
java.io.Serializable

public class Project
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
private  boolean active
           
private  java.util.List attributeData
           
private  java.util.List attributes
           
private  java.util.List categories
           
private  java.util.List components
           
private  ProjectVersion currentVersion
           
private  java.lang.String description
           
private  java.lang.String homePage
           
private  java.lang.Long id
           
private  boolean isPublic
           
private  boolean isWorkflow
           
private  java.util.List members
           
private  java.util.List membersPending
           
private  java.util.List modules
           
private  java.lang.String name
           
private  java.util.Date registrationDate
           
private  java.lang.String shortName
           
private  ProjectStatistics statistics
           
private  java.lang.String themeName
           
private  long version
           
private  java.util.List versions
           
 
Constructor Summary
Project()
           
 
Method Summary
 void addAttribute(ProjectAttribute attribute)
          Sets the value of attributes
 void addAttributeData(ProjectAttributeData pad)
          Sets the value of attributeData
 void addCategory(Category cat)
          Sets the value of categories
 void addComponent(ProjectComponent component)
           
 void addMember(ProjectMember member)
          Adds the provided user to the projects members
 void addModule(java.lang.String moduleName)
           
 void addVersion(ProjectVersion version)
           
 boolean containsMember(ProjectMember member)
           
 boolean containsUser(CoefficientUser user)
           
 void deleteAttribute(ProjectAttribute attribute)
          delete one attribute
 void deleteAttributeData(ProjectAttributeData pad)
          delete one attributeData
 void deleteCategory(Category cat)
          Deletes the provided category from the projects categories
 void deleteComponent(ProjectComponent component)
           
 void deleteMember(ProjectMember member)
          Deletes the provided user from the projects members
 void deleteModule(java.lang.String moduleName)
           
 void deleteVersion(ProjectVersion version)
           
 boolean getActive()
          Gets the value of active
 java.util.List getAttributeData()
          Gets the value of attributeData
 java.util.List getAttributes()
          Gets the value of attributes
 java.util.List getCategories()
          Gets the value of categories
 java.util.List getChampionsAsMembers()
          returns a list of project champions only
 java.util.List getChampionsAsUsers()
           
 java.util.List getComponents()
          Gets the value of components
 ProjectVersion getCurrentVersion()
          Gets the value of currentVersion
 java.lang.String getDescription()
          Gets the value of description
 java.lang.String getHomePage()
          Gets the value of homePage
 java.lang.Long getId()
          Gets the value of id
 boolean getIsPublic()
          Gets the value of public
 boolean getIsWorkflow()
          Gets the value of workflow
 java.util.List getMembers()
          Gets the value of members
 java.util.List getMembersPending()
          Gets the value of membersPending
 java.util.List getModules()
          Gets the value of modules
 java.lang.String getName()
          Gets the value of name
 java.util.List getNonChampionsAsMembers()
          returns a list of project champions only
 java.util.List getNonChampionsAsUsers()
           
 java.util.Date getRegistrationDate()
          Gets the value of create date
 java.lang.String getShortName()
          Gets the value of shortName
 ProjectStatistics getStatistics()
          Gets the value of statistics
 java.lang.String getThemeName()
          Gets the value of themeName
 long getVersion()
          Gets the value of version
 java.util.List getVersions()
          Gets the value of versions
 void setActive(boolean active)
          Sets the value of active
 void setAttributeData(java.util.List argAttributeData)
          Sets the value of attributeData
 void setAttributes(java.util.List argAttributes)
          Sets the value of attributes
 void setCategories(java.util.List argCategories)
          Sets the value of categories
 void setComponents(java.util.List components)
          Sets the value of components
 void setCurrentVersion(ProjectVersion currentVersion)
          Sets the value of currentVersion
 void setDescription(java.lang.String description)
          Sets the value of description
 void setHomePage(java.lang.String homePage)
          Sets the value of homePage
 void setId(java.lang.Long argId)
          Sets the value of id
 void setIsPublic(boolean isPublic)
          Sets the value of isPublic
 void setIsWorkflow(boolean isWorkflow)
          Sets the value of isWorkflow
 void setMembers(java.util.List argMembers)
          Sets the value of members
 void setMembersPending(java.util.List argMembers)
          Sets the value of membersPending
 void setModules(java.util.List modules)
          Sets the value of modules
 void setName(java.lang.String name)
          Sets the value of name
 void setRegistrationDate(java.util.Date registrationDate)
          Sets the value of registration date
 void setShortName(java.lang.String string)
           
 void setStatistics(ProjectStatistics statistics)
          Sets the value of statistics
 void setThemeName(java.lang.String themeName)
          Sets the value of themeName
 void setVersion(long version)
          Sets the value of version
 void setVersions(java.util.List versions)
          Sets the value of versions
 void updateComponent(ProjectComponent component)
           
 void updateVersion(ProjectVersion version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registrationDate

private java.util.Date registrationDate

attributeData

private java.util.List attributeData

attributes

private java.util.List attributes

categories

private java.util.List categories

members

private java.util.List members

membersPending

private java.util.List membersPending

modules

private java.util.List modules

versions

private java.util.List versions

components

private java.util.List components

id

private java.lang.Long id

statistics

private ProjectStatistics statistics

currentVersion

private ProjectVersion currentVersion

description

private java.lang.String description

homePage

private java.lang.String homePage

name

private java.lang.String name

active

private boolean active

version

private long version

isPublic

private boolean isPublic

isWorkflow

private boolean isWorkflow

themeName

private java.lang.String themeName

shortName

private java.lang.String shortName
Constructor Detail

Project

public Project()
Method Detail

setActive

public void setActive(boolean active)
Sets the value of active

Parameters:
active - Value to assign to this.active

getActive

public boolean getActive()
Gets the value of active

Returns:
the value of active

setIsPublic

public void setIsPublic(boolean isPublic)
Sets the value of isPublic

Parameters:
public - Value to assign to this.isPublic

getIsPublic

public boolean getIsPublic()
Gets the value of public

Returns:
the value of isPublic

setIsWorkflow

public void setIsWorkflow(boolean isWorkflow)
Sets the value of isWorkflow

Parameters:
workflow - Value to assign to this.isWorkflow

getIsWorkflow

public boolean getIsWorkflow()
Gets the value of workflow

Returns:
the value of isWorkflow

setAttributeData

public void setAttributeData(java.util.List argAttributeData)
Sets the value of attributeData

Parameters:
argAttributeData - Value to assign to this.attributeData

getAttributeData

public java.util.List getAttributeData()
Gets the value of attributeData

Returns:
the value of attributeData

setAttributes

public void setAttributes(java.util.List argAttributes)
Sets the value of attributes

Parameters:
argAttributes - Value to assign to this.attributes

getAttributes

public java.util.List getAttributes()
Gets the value of attributes

Returns:
the value of attributes

setCategories

public void setCategories(java.util.List argCategories)
Sets the value of categories

Parameters:
argCategories - Value to assign to this.categories

getCategories

public java.util.List getCategories()
Gets the value of categories

Returns:
the value of categories

getChampionsAsMembers

public java.util.List getChampionsAsMembers()
returns a list of project champions only


getChampionsAsUsers

public java.util.List getChampionsAsUsers()

setCurrentVersion

public void setCurrentVersion(ProjectVersion currentVersion)
Sets the value of currentVersion

Parameters:
argCurrentVersion - Value to assign to this.currentVersion

getCurrentVersion

public ProjectVersion getCurrentVersion()
Gets the value of currentVersion

Returns:
the value of currentVersion

setDescription

public void setDescription(java.lang.String description)
Sets the value of description

Parameters:
argDescription - Value to assign to this.description

getDescription

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

Returns:
the value of description

setThemeName

public void setThemeName(java.lang.String themeName)
Sets the value of themeName

Parameters:
argThemeName - Value to assign to this.themeName NB: null or empty means use the installed theme

getThemeName

public java.lang.String getThemeName()
Gets the value of themeName

Returns:
the value of themeName

setHomePage

public void setHomePage(java.lang.String homePage)
Sets the value of homePage

Parameters:
argHomePage - Value to assign to this.homePage

getHomePage

public java.lang.String getHomePage()
Gets the value of homePage

Returns:
the value of homePage

setId

public void setId(java.lang.Long argId)
Sets the value of id

Parameters:
argId - Value to assign to this.id

getId

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

Returns:
the value of id

setMembers

public void setMembers(java.util.List argMembers)
Sets the value of members

Parameters:
argMembers - Value to assign to this.members

getMembers

public java.util.List getMembers()
Gets the value of members

Returns:
the value of members

setMembersPending

public void setMembersPending(java.util.List argMembers)
Sets the value of membersPending

Parameters:
argMembers - Value to assign to this.membersPending

getMembersPending

public java.util.List getMembersPending()
Gets the value of membersPending

Returns:
the value of membersPending

setModules

public void setModules(java.util.List modules)
Sets the value of modules

Parameters:
modules - Value to assign to this.modules

getModules

public java.util.List getModules()
Gets the value of modules

Returns:
the value of modules

setVersions

public void setVersions(java.util.List versions)
Sets the value of versions

Parameters:
versions - Value to assign to this.versions

getVersions

public java.util.List getVersions()
Gets the value of versions

Returns:
the value of versions

setComponents

public void setComponents(java.util.List components)
Sets the value of components

Parameters:
components - Value to assign to this.components

getComponents

public java.util.List getComponents()
Gets the value of components

Returns:
the value of components

setName

public void setName(java.lang.String name)
Sets the value of name

Parameters:
argName - Value to assign to this.name

getName

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

Returns:
the value of name

getNonChampionsAsMembers

public java.util.List getNonChampionsAsMembers()
returns a list of project champions only


getNonChampionsAsUsers

public java.util.List getNonChampionsAsUsers()

setRegistrationDate

public void setRegistrationDate(java.util.Date registrationDate)
Sets the value of registration date

Parameters:
registrationDate - Value to assign to this.registrationDate

getRegistrationDate

public java.util.Date getRegistrationDate()
Gets the value of create date

Returns:
the value of create date

setStatistics

public void setStatistics(ProjectStatistics statistics)
Sets the value of statistics

Parameters:
argStatistics - Value to assign to this.statistics

getStatistics

public ProjectStatistics getStatistics()
Gets the value of statistics

Returns:
the value of statistics

setVersion

public void setVersion(long version)
Sets the value of version

Parameters:
version - Value to assign to this.version

getVersion

public long getVersion()
Gets the value of version

Returns:
the value of version

addAttribute

public void addAttribute(ProjectAttribute attribute)
Sets the value of attributes

Parameters:
attribute - Value to add to the projects attributes

addAttributeData

public void addAttributeData(ProjectAttributeData pad)
Sets the value of attributeData

Parameters:
attribute - Value to add to the projects attributeData

addCategory

public void addCategory(Category cat)
Sets the value of categories

Parameters:
cat - Value to assign add to the projects categories

addComponent

public void addComponent(ProjectComponent component)

addMember

public void addMember(ProjectMember member)
Adds the provided user to the projects members

Parameters:
user - Value to assign to the projects members

addModule

public void addModule(java.lang.String moduleName)

addVersion

public void addVersion(ProjectVersion version)

containsMember

public boolean containsMember(ProjectMember member)

containsUser

public boolean containsUser(CoefficientUser user)

deleteAttribute

public void deleteAttribute(ProjectAttribute attribute)
delete one attribute

Parameters:
attribute - Value to remove from the projects attributes

deleteAttributeData

public void deleteAttributeData(ProjectAttributeData pad)
delete one attributeData

Parameters:
attribute - Value to remove from the projects attributeData

deleteCategory

public void deleteCategory(Category cat)
Deletes the provided category from the projects categories

Parameters:
user - Value to remove from the projects categories

deleteMember

public void deleteMember(ProjectMember member)
Deletes the provided user from the projects members

Parameters:
user - Value to remove from the projects members

deleteModule

public void deleteModule(java.lang.String moduleName)

deleteVersion

public void deleteVersion(ProjectVersion version)

updateVersion

public void updateVersion(ProjectVersion version)

deleteComponent

public void deleteComponent(ProjectComponent component)

updateComponent

public void updateComponent(ProjectComponent component)

getShortName

public java.lang.String getShortName()
Gets the value of shortName

Returns:
the value of shortName

setShortName

public void setShortName(java.lang.String string)


Copyright CSIR. All Rights Reserved.