Class UserServiceImpl
java.lang.Object
de.digitalcollections.cudami.admin.business.impl.service.security.UserServiceImpl
- All Implemented Interfaces:
UserService<de.digitalcollections.model.impl.security.UserImpl>
,org.springframework.beans.factory.InitializingBean
,org.springframework.security.core.userdetails.UserDetailsService
@Service public class UserServiceImpl extends java.lang.Object implements UserService<de.digitalcollections.model.impl.security.UserImpl>, org.springframework.beans.factory.InitializingBean
Service for User handling.
-
Constructor Summary
Constructors Constructor Description UserServiceImpl(org.springframework.validation.Validator passwordsValidator, CudamiClient client)
-
Method Summary
Modifier and Type Method Description de.digitalcollections.model.impl.security.UserImpl
activate(java.util.UUID uuid)
void
afterPropertiesSet()
long
count()
de.digitalcollections.model.impl.security.UserImpl
create()
de.digitalcollections.model.impl.security.UserImpl
create(de.digitalcollections.model.impl.security.UserImpl user, java.lang.String password1, java.lang.String password2, org.springframework.validation.Errors results)
de.digitalcollections.model.impl.security.UserImpl
createAdminUser()
de.digitalcollections.model.impl.security.UserImpl
deactivate(java.util.UUID uuid)
boolean
doesActiveAdminUserExist()
de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.security.UserImpl>
find(de.digitalcollections.model.api.paging.PageRequest pageRequest)
java.util.List<de.digitalcollections.model.impl.security.UserImpl>
findAll()
de.digitalcollections.model.impl.security.UserImpl
findByEmail(java.lang.String email)
de.digitalcollections.model.impl.security.UserImpl
findOne(java.util.UUID uuid)
org.springframework.security.core.userdetails.UserDetails
loadUserByUsername(java.lang.String username)
de.digitalcollections.model.impl.security.UserImpl
update(de.digitalcollections.model.impl.security.UserImpl user, java.lang.String password1, java.lang.String password2, org.springframework.validation.Errors results)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UserServiceImpl
public UserServiceImpl(@Qualifier("passwordsValidator") org.springframework.validation.Validator passwordsValidator, CudamiClient client)
-
-
Method Details
-
activate
public de.digitalcollections.model.impl.security.UserImpl activate(java.util.UUID uuid) throws ServiceException- Specified by:
activate
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
- Throws:
ServiceException
-
count
public long count()- Specified by:
count
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
-
create
public de.digitalcollections.model.impl.security.UserImpl create()- Specified by:
create
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
-
create
public de.digitalcollections.model.impl.security.UserImpl create(de.digitalcollections.model.impl.security.UserImpl user, java.lang.String password1, java.lang.String password2, org.springframework.validation.Errors results) throws ServiceException- Specified by:
create
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
- Throws:
ServiceException
-
createAdminUser
public de.digitalcollections.model.impl.security.UserImpl createAdminUser()- Specified by:
createAdminUser
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
-
deactivate
public de.digitalcollections.model.impl.security.UserImpl deactivate(java.util.UUID uuid) throws ServiceException- Specified by:
deactivate
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
- Throws:
ServiceException
-
doesActiveAdminUserExist
- Specified by:
doesActiveAdminUserExist
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
- Throws:
ServiceException
-
find
public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.security.UserImpl> find(de.digitalcollections.model.api.paging.PageRequest pageRequest) throws ServiceException- Specified by:
find
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
- Throws:
ServiceException
-
findAll
public java.util.List<de.digitalcollections.model.impl.security.UserImpl> findAll() throws ServiceException- Specified by:
findAll
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
- Throws:
ServiceException
-
findByEmail
public de.digitalcollections.model.impl.security.UserImpl findByEmail(java.lang.String email) throws ServiceException- Specified by:
findByEmail
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
- Throws:
ServiceException
-
findOne
public de.digitalcollections.model.impl.security.UserImpl findOne(java.util.UUID uuid) throws ServiceException- Specified by:
findOne
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
- Throws:
ServiceException
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(java.lang.String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
update
public de.digitalcollections.model.impl.security.UserImpl update(de.digitalcollections.model.impl.security.UserImpl user, java.lang.String password1, java.lang.String password2, org.springframework.validation.Errors results) throws ServiceException- Specified by:
update
in interfaceUserService<de.digitalcollections.model.impl.security.UserImpl>
- Throws:
ServiceException
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-