public interface UserService
UserService
provides several methods to create users and manipulate user role dataModifier and Type | Method and Description |
---|---|
void |
delete(NuclosUser user)
This method allows to delete a specific user account.
|
void |
expire(NuclosUser user,
java.util.Date date)
This method allows to define a date on which to expire a specific user account.
|
UID |
grantMandator(NuclosMandator mandator,
NuclosUser user)
This method assigns a mandator to a given user.
|
UID |
grantRole(java.lang.Class<? extends NuclosRole> role,
NuclosUser user)
This method assigns a role to a given user.
|
UID |
grantRole(NuclosRole role,
NuclosUser user)
This method assigns a role to a given user.
|
UID |
insert(NuclosUser user)
This method creates a Nuclos User and returns the id of the new object.
A password will be generated and a default notification Email with the password will be send. A new user does not have any roles and therefore does not have any rights in Nuclos. |
UID |
insert(NuclosUser user,
java.lang.String password)
This method creates a Nuclos User and returns the id of the new object.
Sends a default notification Email with the password. A new user does not have any roles and therefore does not have any rights in Nuclos. |
UID |
insert(NuclosUser user,
java.lang.String password,
boolean sendNotification)
This method creates a Nuclos User and returns the id of the new object.
A new user does not have any roles and therefore does not have any rights in Nuclos. |
UID |
insert(java.lang.String username,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
java.lang.Boolean passwordChangeRequired)
Deprecated.
|
UID |
insert(java.lang.String username,
java.lang.String firstname,
java.lang.String lastname,
java.lang.String email,
java.lang.String password,
java.lang.Boolean passwordChangeRequired)
Deprecated.
|
boolean |
isMandatorGranted(NuclosMandator mandator,
NuclosUser user)
This method checks if a mandator is granted to a given user.
|
void |
resetPassword(NuclosUser user,
java.lang.String password,
boolean sendNotification)
This method resets the password for the given Nuclos User.
|
void |
revokeMandator(NuclosMandator mandator,
NuclosUser user)
This method revokes a mandator from a given user.
|
void |
revokeRole(java.lang.Class<? extends NuclosRole> role,
NuclosUser user)
This method dispossesses a user of the given role.
|
void |
revokeRole(NuclosRole role,
NuclosUser user)
This method dispossesses a user of the given role.
|
void |
update(NuclosUser user)
This method updates the given Nuclos User.
|
UID insert(NuclosUser user) throws BusinessException
user
- BusinessException
UID insert(NuclosUser user, java.lang.String password) throws BusinessException
user
- password
- If no password is given, one will be generated. The same applies to the username.BusinessException
UID insert(NuclosUser user, java.lang.String password, boolean sendNotification) throws BusinessException
user
- password
- If no password is given, one will be generated. The same applies to the username.sendNotification
- Send a default notification Email with the passwordBusinessException
@Deprecated UID insert(java.lang.String username, java.lang.String firstname, java.lang.String lastname, java.lang.String email, java.lang.Boolean passwordChangeRequired) throws BusinessException
username,
- firstname, lastname, email, passwordChangeRequiredBusinessException
@Deprecated UID insert(java.lang.String username, java.lang.String firstname, java.lang.String lastname, java.lang.String email, java.lang.String password, java.lang.Boolean passwordChangeRequired) throws BusinessException
username,
- firstname, lastname, email, password, passwordChangeRequiredBusinessException
void update(NuclosUser user) throws BusinessException
user
- BusinessException
void resetPassword(NuclosUser user, java.lang.String password, boolean sendNotification) throws BusinessException
user
- password
- If no password is given, one will be generated. The same applies to the username.sendNotification
- Send a default notification Email with the passwordBusinessException
UID grantRole(java.lang.Class<? extends NuclosRole> role, NuclosUser user) throws BusinessException
NuclosUser
can be extracted by using QueryProvider
or
BusinessObjectProvider
role
- user
- BusinessException
UID grantRole(NuclosRole role, NuclosUser user) throws BusinessException
NuclosUser
and NuclosRole
can be extracted by using QueryProvider
or
BusinessObjectProvider
Use the classes org.nuclos.system.User and org.nuclos.system.Rolerole
- user
- BusinessException
UID grantMandator(NuclosMandator mandator, NuclosUser user) throws BusinessException
NuclosMandator
can be extracted by using QueryProvider
or
BusinessObjectProvider
mandator
- user
- BusinessException
void revokeMandator(NuclosMandator mandator, NuclosUser user) throws BusinessException
NuclosMandator
can be extracted by using QueryProvider
or
BusinessObjectProvider
mandator
- user
- BusinessException
boolean isMandatorGranted(NuclosMandator mandator, NuclosUser user) throws BusinessException
NuclosMandator
can be extracted by using QueryProvider
or
BusinessObjectProvider
mandator
- user
- BusinessException
void revokeRole(java.lang.Class<? extends NuclosRole> role, NuclosUser user) throws BusinessException
NuclosUser
can be extracted by using QueryProvider
or
BusinessObjectProvider
. If the user is not assigned to the role a BusinessException
is thrown.role
- user
- BusinessException
void revokeRole(NuclosRole role, NuclosUser user) throws BusinessException
NuclosUser
and NuclosRole
can be extracted by using QueryProvider
or
BusinessObjectProvider
. Use the classes org.nuclos.system.User and org.nuclos.system.Role.
If the user is not assigned to the role a BusinessException
is thrown.role
- user
- BusinessException
void expire(NuclosUser user, java.util.Date date) throws BusinessException
NuclosUser
can be extracted by using QueryProvider
or
BusinessObjectProvider
.user
- date
- BusinessException
void delete(NuclosUser user) throws BusinessException
NuclosUser
can be extracted by using QueryProvider
or
BusinessObjectProvider
.user
- BusinessException
Copyright © 2024. All rights reserved.