public interface IOdiUserCreationService
This service is used to create new ODI user with SDK
Typical usage:
final String userName = ... final char[] userPassword = ... final boolean isSupervisor = ... final Date expirationDate = ... IOdiUserCreationService service = new OdiUserCreationServiceServiceImpl(getOdiInstance()); OdiUser newUser = service.createOdiUser(userName, userPassword, isSupervisor, expirationDate); return newUser;
Modifier and Type | Method and Description |
---|---|
OdiUser |
createOdiUser(java.lang.String userName,
boolean isSupervisor,
java.util.Date expirationDate)
Create and persist to database new SDK user when ODI repository is in external authentication mode where all the ODI users
are from LDAP server and ODI just register them.
|
OdiUser |
createOdiUser(java.lang.String userName,
char[] password,
boolean isSupervisor,
java.util.Date expirationDate)
Create and persist to database new SDK user.
|
OdiUser createOdiUser(java.lang.String userName, char[] password, boolean isSupervisor, java.util.Date expirationDate)
userName
- couldn't be null or empty stringpassword
- couldn't be null or empty string. Also should meet ODI Security PolicyisSupervisor
- defines if new user is supervisorexpiracyDate
- user expiration date. Could be null.PermissionDeniedException
- if no current authentication found or if current authentication hasn't SUPERVISOR privilege.PasswordPolicyNotMatchedException
- if given password doesn't match password policy.OdiUser createOdiUser(java.lang.String userName, boolean isSupervisor, java.util.Date expirationDate)
userName
- couldn't be null or empty string. This user must first exist in the LDAP server which ODI is configured to point to through jps configuratin file.isSupervisor
- defines if new user is supervisorexpiracyDate
- user expiration date. Could be null which means no expiration date set on this user account.PermissionDeniedException
- if no current authentication found or if current authentication hasn't SUPERVISOR privilege.