cz.muni.fi.pclis.domain.team
Class TeamProject

java.lang.Object
  extended by cz.muni.fi.pclis.commons.domain.DomainObject
      extended by cz.muni.fi.pclis.domain.team.TeamProject

public class TeamProject
extends DomainObject

Entity representing team project User: Ľuboš Pecho Date: 24.3.2010 Time: 13:14:11


Field Summary
private  String assignment
          assignment of the project
private  Set<UploadedFile> files
          Uploaded file associated with the project
private  ProjectPackage projectPackage
          package in which is the project
private  SortedSet<User> students
          students participating on the project
private  String title
          title of the project
 
Constructor Summary
TeamProject()
           
 
Method Summary
 void addFile(UploadedFile uploadedFile)
          Adds file
 void addStudent(User user)
          adds student
 String getAssignment()
           
 Set<UploadedFile> getFiles()
           
 ProjectPackage getProjectPackage()
           
 SortedSet<User> getStudents()
           
 String getTitle()
           
 void removeFile(UploadedFile uploadedFile)
          Removes file
 void removeStudent(User user)
          removes student
 void setAssignment(String assignment)
          Sets the assignment
 void setFiles(Set<UploadedFile> files)
          Sets the files
 void setProjectPackage(ProjectPackage projectPackage)
          Sets the project package
 void setStudents(SortedSet<User> students)
          Sets the participants
 void setTitle(String title)
          Sets the title
 String toString()
           
 
Methods inherited from class cz.muni.fi.pclis.commons.domain.DomainObject
equals, getId, hashCode, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

projectPackage

private ProjectPackage projectPackage
package in which is the project


students

private SortedSet<User> students
students participating on the project


title

private String title
title of the project


assignment

private String assignment
assignment of the project


files

private Set<UploadedFile> files
Uploaded file associated with the project

Constructor Detail

TeamProject

public TeamProject()
Method Detail

getProjectPackage

public ProjectPackage getProjectPackage()
Returns:
package

setProjectPackage

public void setProjectPackage(ProjectPackage projectPackage)
Sets the project package

Parameters:
projectPackage -

getStudents

public SortedSet<User> getStudents()
Returns:
participants

setStudents

public void setStudents(SortedSet<User> students)
Sets the participants

Parameters:
students -

addStudent

public void addStudent(User user)
adds student

Parameters:
user -

removeStudent

public void removeStudent(User user)
removes student

Parameters:
user -

getTitle

public String getTitle()
Returns:
title

setTitle

public void setTitle(String title)
Sets the title

Parameters:
title -

getAssignment

public String getAssignment()
Returns:
assignment

setAssignment

public void setAssignment(String assignment)
Sets the assignment

Parameters:
assignment -

getFiles

public Set<UploadedFile> getFiles()
Returns:
files

setFiles

public void setFiles(Set<UploadedFile> files)
Sets the files

Parameters:
files -

addFile

public void addFile(UploadedFile uploadedFile)
Adds file

Parameters:
uploadedFile -

removeFile

public void removeFile(UploadedFile uploadedFile)
Removes file

Parameters:
uploadedFile -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 Faculty of Informatics, Masaryk university, Brno. All Rights Reserved.