Constructor and Description |
---|
UserDAO() |
getTransactionTemplate, setDataSource, setTnxManager
public UserDAO()
public UserIdentity getUser(java.lang.String username)
username
- public UserIdentity getUser(java.lang.Long userId)
userId
- public UserIdentityList getUsers(long[] userIds)
userIds
- public UserIdentity getUserId(ExternalAccountConnection connection)
connection
- public void insertExternalAccountConnection(ExternalAccountConnection connection, UserIdentity userId) throws java.lang.IllegalArgumentException
connection
- userId
- java.lang.IllegalArgumentException
public boolean removeUser(UserIdentity userId)
userId
- public boolean addUser(UserIdentity userId) throws java.lang.IllegalArgumentException
userId
- must have username, password and role setjava.lang.IllegalArgumentException
- on bad userIdpublic ExternalAccountConnectionList getExternalAccountConnections(java.util.EnumSet<ExternalAccountConnection.UserServiceType> serviceTypes, UserIdentity userId)
serviceTypes
- optional service type filteruserId
- public ExternalAccountConnection getExternalAccountConnection(UserIdentity userId, ExternalAccountConnection.UserServiceType serviceType)
userId
- serviceType
- public boolean deleteExternalAccountConnection(ExternalAccountConnection.UserServiceType userServiceType, UserIdentity userId)
userServiceType
- userId
- Copyright © 2015 Tampere University of Technology, Pori Department.