cz.muni.fi.pclis.service
Class UserToEducatableRelationServiceImpl
java.lang.Object
cz.muni.fi.pclis.service.UserToEducatableRelationServiceImpl
- All Implemented Interfaces:
- UserToEducatableRelationService
@Transactional
public class UserToEducatableRelationServiceImpl
- extends Object
- implements UserToEducatableRelationService
User: Ľuboš Pecho
Date: 14.8.2009
Time: 9:49:54
Method Summary |
UserToEducatableRelation |
create(UserToEducatableRelation entity)
|
List<UserToEducatableRelation> |
getAll()
|
UserToEducatableRelation |
getById(long id)
|
Set<User> |
getCourseStudents(Course course,
Term term)
|
UserToEducatableRelationDao |
getDao()
|
List<Educatable> |
getEducatableForUserAndTermForRole(User user,
AcademicRole role,
Term term)
|
List<UserToEducatableRelation> |
getRoleMembersForEducatableAndTerm(AcademicRole role,
Educatable educatable,
Term term)
|
Seminar |
getSeminarForUser(User user,
Course course,
Term term)
|
List<User> |
getUsersForRoleEducatableAndTerm(AcademicRole role,
Educatable educatable,
Term term)
|
List<Term> |
getValidTermsForRole(User user,
AcademicRole role)
|
Set<Course> |
getValidUsersForRole(User user,
String termId,
AcademicRole role)
|
boolean |
hasRole(User user,
AcademicRole role)
|
boolean |
hasRole(User user,
AcademicRole role,
Educatable educatable,
Term term)
|
boolean |
isSeminarRemovable(Seminar seminar,
Term term)
|
UserToEducatableRelation |
refresh(UserToEducatableRelation entity)
|
void |
remove(UserToEducatableRelation entity)
|
UserToEducatableRelation |
searchById(long id)
|
void |
setDao(UserToEducatableRelationDao userToEducatableRelationDao)
|
void |
setTermService(TermService termService)
|
UserToEducatableRelation |
update(UserToEducatableRelation entity)
|
void |
updateRelations(AcademicRole role,
Educatable educatable,
Term term,
List<User> newUsers)
|
UserToEducatableRelationDao |
useDao()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
impl
private GenericServiceImpl<UserToEducatableRelation,UserToEducatableRelationDao> impl
termService
private TermService termService
UserToEducatableRelationServiceImpl
public UserToEducatableRelationServiceImpl()
getById
public UserToEducatableRelation getById(long id)
- Specified by:
getById
in interface UserToEducatableRelationService
searchById
public UserToEducatableRelation searchById(long id)
- Specified by:
searchById
in interface UserToEducatableRelationService
getAll
public List<UserToEducatableRelation> getAll()
- Specified by:
getAll
in interface UserToEducatableRelationService
getRoleMembersForEducatableAndTerm
public List<UserToEducatableRelation> getRoleMembersForEducatableAndTerm(AcademicRole role,
Educatable educatable,
Term term)
- Specified by:
getRoleMembersForEducatableAndTerm
in interface UserToEducatableRelationService
getUsersForRoleEducatableAndTerm
public List<User> getUsersForRoleEducatableAndTerm(AcademicRole role,
Educatable educatable,
Term term)
- Specified by:
getUsersForRoleEducatableAndTerm
in interface UserToEducatableRelationService
isSeminarRemovable
public boolean isSeminarRemovable(Seminar seminar,
Term term)
- Specified by:
isSeminarRemovable
in interface UserToEducatableRelationService
hasRole
public boolean hasRole(User user,
AcademicRole role,
Educatable educatable,
Term term)
- Specified by:
hasRole
in interface UserToEducatableRelationService
getSeminarForUser
public Seminar getSeminarForUser(User user,
Course course,
Term term)
- Specified by:
getSeminarForUser
in interface UserToEducatableRelationService
getCourseStudents
public Set<User> getCourseStudents(Course course,
Term term)
- Specified by:
getCourseStudents
in interface UserToEducatableRelationService
getValidTermsForRole
public List<Term> getValidTermsForRole(User user,
AcademicRole role)
- Specified by:
getValidTermsForRole
in interface UserToEducatableRelationService
getValidUsersForRole
public Set<Course> getValidUsersForRole(User user,
String termId,
AcademicRole role)
- Specified by:
getValidUsersForRole
in interface UserToEducatableRelationService
getEducatableForUserAndTermForRole
public List<Educatable> getEducatableForUserAndTermForRole(User user,
AcademicRole role,
Term term)
- Specified by:
getEducatableForUserAndTermForRole
in interface UserToEducatableRelationService
hasRole
public boolean hasRole(User user,
AcademicRole role)
- Specified by:
hasRole
in interface UserToEducatableRelationService
create
public UserToEducatableRelation create(UserToEducatableRelation entity)
- Specified by:
create
in interface UserToEducatableRelationService
update
public UserToEducatableRelation update(UserToEducatableRelation entity)
- Specified by:
update
in interface UserToEducatableRelationService
updateRelations
public void updateRelations(AcademicRole role,
Educatable educatable,
Term term,
List<User> newUsers)
- Specified by:
updateRelations
in interface UserToEducatableRelationService
remove
public void remove(UserToEducatableRelation entity)
- Specified by:
remove
in interface UserToEducatableRelationService
refresh
public UserToEducatableRelation refresh(UserToEducatableRelation entity)
- Specified by:
refresh
in interface UserToEducatableRelationService
useDao
public UserToEducatableRelationDao useDao()
getDao
public UserToEducatableRelationDao getDao()
setDao
public void setDao(UserToEducatableRelationDao userToEducatableRelationDao)
setTermService
public void setTermService(TermService termService)
Copyright © 2009-2010 Faculty of Informatics, Masaryk university, Brno. All Rights Reserved.