Added AssignmentService into javadoc
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
e6fffba899
commit
3faa228745
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user