Added AssignmentService into javadoc

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-12-02 10:14:32 +01:00
parent e6fffba899
commit 3faa228745
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -21,14 +21,26 @@ public class AssignmentService {
public AssignmentService() {
}
/*
* save
* @param assignment which assignment should be save in service
*/
public void save(Assignment assignment) {
this.repo.save(assignment);
}
/*
* getCommisionAssignments
* Return id of the commision
*/
public List<Assignment> getCommisionAssignments(Commision com) {
return this.repo.getByCommision(com.getId());
}
/*
* getAssignmentsAmmount
* Return count assignments ammount
*/
public long getAssignmentsAmmount() {
return this.repo.count();
}