public interface UserService extends KapuaEntityService<User,UserCreator>, KapuaUpdatableEntityService<User>, KapuaNamedEntityService<User>, KapuaConfigurableService
| Modifier and Type | Method and Description |
|---|---|
User |
create(UserCreator userCreator)
Creates a new user under the account specified in the UserCreator.
The returned User object does not have its access information, roles and permissions, loaded. |
void |
delete(User user)
Delete the supplied User.
|
User |
find(KapuaId accountId,
KapuaId userId)
Returns the User with the specified Id; returns null if the user is not found.
The API does not perform any access control check and it is meant for internal use. |
User |
findByExternalId(String externalId)
Find user by external id
|
User |
findByName(String name)
Returns the User with the specified username; returns null if the user is not found.
|
UserListResult |
query(KapuaQuery query)
Queries for all users
|
User |
update(User user)
Updates an User in the database and returns the refreshed/reloaded entity instance.
The returned User object does not have its access information, roles and permissions, loaded. |
count, deletegetConfigMetadata, getConfigValues, setConfigValuesUser create(UserCreator userCreator) throws KapuaException
create in interface KapuaEntityService<User,UserCreator>userCreator - KapuaExceptionUser update(User user) throws KapuaException
update in interface KapuaUpdatableEntityService<User>user - to be updateKapuaExceptionvoid delete(User user) throws KapuaException
user - KapuaExceptionUser find(KapuaId accountId, KapuaId userId) throws KapuaException
find in interface KapuaEntityService<User,UserCreator>userId - KapuaExceptionUser findByName(String name) throws KapuaException
findByName in interface KapuaNamedEntityService<User>KapuaExceptionUser findByExternalId(String externalId) throws KapuaException
externalId - the external ID to look fornull if the user could not be foundKapuaException - in case anything goes wrongUserListResult query(KapuaQuery query) throws KapuaException
query in interface KapuaEntityService<User,UserCreator>KapuaExceptionCopyright © 2021 Eclipse.org. All rights reserved.