cz.muni.fi.pclis.service
Class UserServiceImpl

java.lang.Object
  extended by cz.muni.fi.pclis.service.UserServiceImpl
All Implemented Interfaces:
UserService

@Transactional
public class UserServiceImpl
extends Object
implements UserService

User: Ľuboš Pecho Date: 11.8.2009 Time: 13:38:04


Field Summary
private  GenericServiceImpl<User,UserDao> impl
           
private  UserToEducatableRelationService userToEducatableRelationService
           
 
Constructor Summary
UserServiceImpl()
           
 
Method Summary
 User create(User entity)
           
 List<User> getAll()
           
 List<User> getAllAdmins()
           
 List<Role> getAvailableRolesForTerm(User user, Term term)
           
 User getById(long id)
           
 User getByUIN(String uin)
           
 UserDao getDao()
           
 UserToEducatableRelationService getUserToEducatableRelationService()
           
 User refresh(User entity)
           
 void remove(User entity)
           
 User searchById(long id)
           
 User searchByUIN(String uin)
           
 void setDao(UserDao userDao)
           
 void setUserToEducatableRelationService(UserToEducatableRelationService userToEducatableRelationService)
           
 User update(User entity)
           
 UserDao useDao()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userToEducatableRelationService

private UserToEducatableRelationService userToEducatableRelationService

impl

private GenericServiceImpl<User,UserDao> impl
Constructor Detail

UserServiceImpl

public UserServiceImpl()
Method Detail

getById

public User getById(long id)
Specified by:
getById in interface UserService

searchById

public User searchById(long id)
Specified by:
searchById in interface UserService

searchByUIN

public User searchByUIN(String uin)
Specified by:
searchByUIN in interface UserService

getByUIN

public User getByUIN(String uin)
Specified by:
getByUIN in interface UserService

getAvailableRolesForTerm

public List<Role> getAvailableRolesForTerm(User user,
                                           Term term)
Specified by:
getAvailableRolesForTerm in interface UserService

getAll

public List<User> getAll()
Specified by:
getAll in interface UserService

getAllAdmins

public List<User> getAllAdmins()
Specified by:
getAllAdmins in interface UserService

create

public User create(User entity)
Specified by:
create in interface UserService

update

public User update(User entity)
Specified by:
update in interface UserService

remove

public void remove(User entity)
Specified by:
remove in interface UserService

refresh

public User refresh(User entity)
Specified by:
refresh in interface UserService

useDao

public UserDao useDao()

getDao

public UserDao getDao()

setDao

public void setDao(UserDao userDao)

setUserToEducatableRelationService

public void setUserToEducatableRelationService(UserToEducatableRelationService userToEducatableRelationService)

getUserToEducatableRelationService

public UserToEducatableRelationService getUserToEducatableRelationService()


Copyright © 2009-2010 Faculty of Informatics, Masaryk university, Brno. All Rights Reserved.