protected RoleType getRoleType() {
return RoleType.COORDINATOR;
}
public void execute(String infoExecutionDegreeId) throws NotAuthorizedException {
User id = Authenticate.getUser();
try {
if ((id == null) || !id.getPerson().hasRole(getRoleType())
|| !isCoordinatorOfCurrentExecutionDegree(id, infoExecutionDegreeId)) {
throw new NotAuthorizedException();
}
} catch (RuntimeException e) {
throw new NotAuthorizedException();