Added AssignmentService into javadoc
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
e6fffba899
commit
3faa228745
@ -21,15 +21,27 @@ public class AssignmentService {
|
|||||||
public AssignmentService() {
|
public AssignmentService() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* save
|
||||||
|
* @param assignment which assignment should be save in service
|
||||||
|
*/
|
||||||
public void save(Assignment assignment) {
|
public void save(Assignment assignment) {
|
||||||
this.repo.save(assignment);
|
this.repo.save(assignment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* getCommisionAssignments
|
||||||
|
* Return id of the commision
|
||||||
|
*/
|
||||||
public List<Assignment> getCommisionAssignments(Commision com) {
|
public List<Assignment> getCommisionAssignments(Commision com) {
|
||||||
return this.repo.getByCommision(com.getId());
|
return this.repo.getByCommision(com.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* getAssignmentsAmmount
|
||||||
|
* Return count assignments ammount
|
||||||
|
*/
|
||||||
public long getAssignmentsAmmount() {
|
public long getAssignmentsAmmount() {
|
||||||
return this.repo.count();
|
return this.repo.count();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user