public class UserStorageUtil extends AbstractStorageUtil
User
Constructor and Description |
---|
UserStorageUtil() |
Modifier and Type | Method and Description |
---|---|
int |
countUsers(DataSource dataSource,
String id)
Count the number of
User with an id |
void |
deleteAgent(DataSource dataSource,
Agent agent)
Delete
Agent |
void |
deleteUser(DataSource dataSource,
User user)
Delete
User |
User |
loadUser(DataSource dataSource,
Map<QueryParameter,Object[]> params)
Load an
User given various parameters |
User |
loadUser(DataSource dataSource,
String id)
Load
User given its id |
User |
loadUserByLoginName(DataSource dataSource,
String loginName)
Load
User given the login name |
void |
storeAgent(DataSource dataSource,
Agent agent)
Store a new
Agent |
void |
storeUser(DataSource dataSource,
User user)
Store a new
User |
void |
updateAgent(DataSource dataSource,
Agent agent)
Update the stored
Agent |
void |
updateUser(DataSource dataSource,
User user)
Update the stored
User |
getValuesFromParamMap, loadPartition, safeClose, safeClose, safeClose
public int countUsers(DataSource dataSource, String id)
User
with an iddataSource
- id
- public void deleteAgent(DataSource dataSource, Agent agent)
Agent
dataSource
- user
- public void deleteUser(DataSource dataSource, User user)
User
dataSource
- user
- public User loadUser(DataSource dataSource, Map<QueryParameter,Object[]> params)
User
given various parametersdataSource
- params
- public User loadUser(DataSource dataSource, String id)
User
given its iddataSource
- id
- public User loadUserByLoginName(DataSource dataSource, String loginName)
User
given the login namedataSource
- loginName
- public void storeAgent(DataSource dataSource, Agent agent)
Agent
dataSource
- user
- public void storeUser(DataSource dataSource, User user)
User
dataSource
- user
- public void updateAgent(DataSource dataSource, Agent agent)
Agent
dataSource
- user
- public void updateUser(DataSource dataSource, User user)
User
dataSource
- user
- Copyright © 2018 JBoss by Red Hat. All rights reserved.