Package com.soffid.iam.base.service
Interface UserService
public interface UserService
Service UserService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionOperation createcreate(BpmUserProcess userProcess) Operation create Notifies the workflow is acting on a usercreateExtranetCard(String userName) Deprecated.createNewUserProcess(String processName, String userName, boolean canviaAProces) Operation createNewUserProcess Starts a new workflow far a uservoidOperation delete Removes a uservoiddelete(BpmUserProcess usuariWFProces) Operation deletedisableUser(String userName) Operation disableUser Disable a userdisableUsers(String scimQuery, List<DisableObjectRule> rules) Operation disableUsers Disable or notify users that has not been active for a whiledisableUsersPreview(String scimQuery, List<DisableObjectRule> rules, List<Object[]> actions) Operation disableUsersPreviewfindBpmUserProcessByProcessId(Long idProces) Operation findBpmUserProcessByProcessIdfindBpmUserProcessByUserName(String userName) Operation findBpmUserProcessByUserNamefindBpmUserProcessByUserNif(String nifUsuari) Operation findBpmUserProcessByUserNiffindBpmUserProcessInstanceByUserName(String userName) Operation findBpmUserProcessInstanceByUserNamefindDataByUserAndCode(String userName, String codiTipusDada) Deprecated.findExtranetCardByUserNameAndCardName(String userName, String codiTargeta) Deprecated.findExtranetCardsByUserName(String userName, String activa) Deprecated.findHomeServerByUserName(String userName) Deprecated.findMailServerByUserName(String userName) Deprecated.findNetworksACByUserName(String userName) Operation findNetworksACByUserName Retrieves network authorizations granted to a userOperation findPasswordDomainStatusfindPrintersByUserName(String userName) Operation findPrintersByUserName Fetches all printers assigned to a userfindProfileServerByUserName(String userName) Deprecated.findSessionByUserName(String userName) Operation findSessionByUserName Retrieves all the sessions a user currently hasfindUserAttributes(String userName) Deprecated.findUserByDataTypeNameAndDataTypeValue(String codiTipusDada, String valorTipusDada) Deprecated.findUserByUserId(Long id) Operation findUserByUserId Retrieves a user by its user idfindUserByUserName(String userName) Operation findUserByUserName Retrieves a user by user namefindUserByUserNif(String nif) Deprecated.findUserDataByUserName(String userName) Deprecated.Operation findUserNamesfindUserPrintersByUserName(String userName) Operation findUserPrintersByUserName Retrieves the printers assigned to a userfindUserRolesHierachyByUserName(String userName) Deprecated.findUserRolesHierachyByUserName(String userName, Boolean incloureRolsUsuariDirectes) Deprecated.com.soffid.zkdb.api.PagedResult<User>findUsers(com.soffid.zkdb.api.Query q) Operation findUsersDeprecated.getActiveTasks(String userName) Operation getActiveTasks Retrieves current synchronization tasks for usergetApplicationRolesByuserNameAndApplicationName(String userName, String codiAplicacio) Deprecated.getApplicationsByUserName(String userName) Deprecated.getBpmEnabledApplicationsByUserName(String userName) Deprecated.Operation getBpmUserProcessList Gets the list of workflows that can be started for a userOperation getCurrentUserDeprecated.byte[]getESSORules(String user) Operation getESSORulesDeprecated.getPasswordsUserType(Date dataInici, Date dataFi, String tipusUsuari) Deprecated.String[]Operation getTasks Gets any pending task for the usergetUserExplicitRoles(long userId) Operation getUserExplicitRolesgetUserGroups(long userId) Operation getUserGroupsgetUserGroupsHierarchy(long userId) Operation getUserGroupsHierarchygetUserGroupsHierarchy(long userId, String holderGroup) Operation getUserGroupsHierarchygetUserInfo(String user) Operation getUserInfogetUserRoles(long userId) Operation getUserRolesintisUpdatePendingExtended(String userName) Operation isUpdatePendingExtended Identifies if there is any pending change. 0 means no change pending, 1 task is on hald, 2 means synchronization in progress, 3 means errorvoidOperation mergeString[]refreshChanges(String userName) Operation refreshChanges Synchronize the user with any target systemvoidsendPassword(String userName, String passwordDomain) Operation sendPassword Sends the current account password back to the target systemsetPassword(String userName, String passwordDomain) Operation setPassword Generates a random password for a uservoidsetPassword(String userName, String passwordDomain, Password newPassword) Operation setPassword Sets a password for a usersetServersToUser(String userName, String nomServidorPerfil, String nomServidorCorreu, String nomServidorHome) Deprecated.setTemporaryPassword(String userName, String passwordDomain) Operation setTemporaryPassword Generates a random temporary password for a uservoidsetTemporaryPassword(String userName, String passwordDomain, Password newPassword) Operation setTemporaryPassword Sets a temporary password for a uservoidunlockPasswordDomain(String user, String passwordDomain) Operation unlockPasswordDomainupdate(ExtranetCard targetaExtranet) Deprecated.Operation update Update a userupdate(BpmUserProcess usuariWFProces) Operation updatevoidupdateUserAttributes(String userName, Map<String, Object> attributes) Deprecated.
-
Field Details
-
REMOTE_PATH
- See Also:
-
SERVICE_NAME
- See Also:
-
-
Method Details
-
getESSORules
Operation getESSORules- Parameters:
user-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
createExtranetCard
@Deprecated ExtranetCard createExtranetCard(String userName) throws InternalErrorException, InternalErrorException Deprecated.Operation createExtranetCard- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findExtranetCardByUserNameAndCardName
@Deprecated ExtranetCard findExtranetCardByUserNameAndCardName(String userName, String codiTargeta) throws InternalErrorException, InternalErrorException Deprecated.Operation findExtranetCardByUserNameAndCardName- Parameters:
userName-codiTargeta-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
@Deprecated ExtranetCard update(ExtranetCard targetaExtranet) throws InternalErrorException, InternalErrorException Deprecated.Operation update- Parameters:
targetaExtranet-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findMailServerByUserName
@Deprecated Host findMailServerByUserName(String userName) throws InternalErrorException, InternalErrorException Deprecated.Operation findMailServerByUserName- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findHomeServerByUserName
@Deprecated Host findHomeServerByUserName(String userName) throws InternalErrorException, InternalErrorException Deprecated.Operation findHomeServerByUserName- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findProfileServerByUserName
@Deprecated Host findProfileServerByUserName(String userName) throws InternalErrorException, InternalErrorException Deprecated.Operation findProfileServerByUserName- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
disableUsers
AsyncProcessTracker disableUsers(String scimQuery, List<DisableObjectRule> rules) throws InternalErrorException Operation disableUsers Disable or notify users that has not been active for a while- Parameters:
scimQuery-rules- Actions to perform- Returns:
- Throws:
InternalErrorException
-
disableUsersPreview
AsyncProcessTracker disableUsersPreview(String scimQuery, List<DisableObjectRule> rules, List<Object[]> actions) throws InternalErrorException Operation disableUsersPreview- Parameters:
scimQuery-rules-actions-- Returns:
- Throws:
InternalErrorException
-
disableUser
Operation disableUser Disable a user- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
Operation create- Parameters:
usuari-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findUserByDataTypeNameAndDataTypeValue
@Deprecated User findUserByDataTypeNameAndDataTypeValue(String codiTipusDada, String valorTipusDada) throws InternalErrorException, InternalErrorException Deprecated.Operation findUserByDataTypeNameAndDataTypeValue- Parameters:
codiTipusDada-valorTipusDada-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findUserByUserName
Operation findUserByUserName Retrieves a user by user name- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findUserByUserId
Operation findUserByUserId Retrieves a user by its user id- Parameters:
id-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findUserByUserNif
@Deprecated User findUserByUserNif(String nif) throws InternalErrorException, InternalErrorException Deprecated.Operation findUserByUserNif- Parameters:
nif-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getCurrentUser
Operation getCurrentUser- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserInfo
User getUserInfo(String user) throws InternalErrorException, InternalErrorException, InternalErrorException, UnknownUserException Operation getUserInfo- Parameters:
user-- Returns:
- Throws:
InternalErrorExceptionInternalErrorExceptionInternalErrorExceptionUnknownUserException
-
setServersToUser
@Deprecated User setServersToUser(String userName, String nomServidorPerfil, String nomServidorCorreu, String nomServidorHome) throws InternalErrorException, InternalErrorException Deprecated.Operation setServersToUser- Parameters:
userName-nomServidorPerfil-nomServidorCorreu-nomServidorHome-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
Operation update Update a user- Parameters:
usuari-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findDataByUserAndCode
@Deprecated UserData findDataByUserAndCode(String userName, String codiTipusDada) throws InternalErrorException, InternalErrorException Deprecated.Operation findDataByUserAndCode- Parameters:
userName-codiTipusDada-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
create
BpmUserProcess create(BpmUserProcess userProcess) throws InternalErrorException, InternalErrorException Operation create Notifies the workflow is acting on a user- Parameters:
userProcess-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
update
BpmUserProcess update(BpmUserProcess usuariWFProces) throws InternalErrorException, InternalErrorException Operation update- Parameters:
usuariWFProces-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findUsers
com.soffid.zkdb.api.PagedResult<User> findUsers(com.soffid.zkdb.api.Query q) throws InternalErrorException, InternalErrorException Operation findUsers- Parameters:
q-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
isUpdatePendingExtended
Operation isUpdatePendingExtended Identifies if there is any pending change. 0 means no change pending, 1 task is on hald, 2 means synchronization in progress, 3 means error- Parameters:
userName-- Returns:
- Throws:
InternalErrorException
-
setTemporaryPassword
String setTemporaryPassword(String userName, String passwordDomain) throws InternalErrorException, InternalErrorException Operation setTemporaryPassword Generates a random temporary password for a user- Parameters:
userName-passwordDomain- The password domain uses to be 'DEFAULT'- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
createNewUserProcess
String createNewUserProcess(String processName, String userName, boolean canviaAProces) throws InternalErrorException, InternalErrorException Operation createNewUserProcess Starts a new workflow far a user- Parameters:
processName-userName-canviaAProces- Must be true to retrieve the current task URL- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
generateRandomPassword
Deprecated.Operation generateRandomPassword- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getFollowingName
Deprecated.Operation getFollowingName- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
setPassword
String setPassword(String userName, String passwordDomain) throws InternalErrorException, InternalErrorException Operation setPassword Generates a random password for a user- Parameters:
userName-passwordDomain- The password domain is usually "DEFAULT"- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getTasks
Operation getTasks Gets any pending task for the user- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
refreshChanges
Operation refreshChanges Synchronize the user with any target system- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findUserDataByUserName
@Deprecated Collection<UserData> findUserDataByUserName(String userName) throws InternalErrorException, InternalErrorException Deprecated.Operation findUserDataByUserName- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findPrintersByUserName
Collection<Printer> findPrintersByUserName(String userName) throws InternalErrorException, InternalErrorException Operation findPrintersByUserName Fetches all printers assigned to a user- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findUserRolesHierachyByUserName
@Deprecated Collection<Role> findUserRolesHierachyByUserName(String userName) throws InternalErrorException, InternalErrorException Deprecated.Operation findUserRolesHierachyByUserName- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findUserRolesHierachyByUserName
@Deprecated Collection<Role> findUserRolesHierachyByUserName(String userName, Boolean incloureRolsUsuariDirectes) throws InternalErrorException, InternalErrorException Deprecated.Operation findUserRolesHierachyByUserName- Parameters:
userName-incloureRolsUsuariDirectes-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findBpmUserProcessInstanceByUserName
Collection<ProcessInstance> findBpmUserProcessInstanceByUserName(String userName) throws InternalErrorException, InternalErrorException Operation findBpmUserProcessInstanceByUserName- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findBpmUserProcessByUserName
Collection<BpmUserProcess> findBpmUserProcessByUserName(String userName) throws InternalErrorException, InternalErrorException Operation findBpmUserProcessByUserName- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findBpmUserProcessByProcessId
Collection<BpmUserProcess> findBpmUserProcessByProcessId(Long idProces) throws InternalErrorException, InternalErrorException Operation findBpmUserProcessByProcessId- Parameters:
idProces-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findBpmUserProcessByUserNif
Collection<BpmUserProcess> findBpmUserProcessByUserNif(String nifUsuari) throws InternalErrorException, InternalErrorException Operation findBpmUserProcessByUserNif- Parameters:
nifUsuari-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findSessionByUserName
Collection<Session> findSessionByUserName(String userName) throws InternalErrorException, InternalErrorException Operation findSessionByUserName Retrieves all the sessions a user currently has- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findExtranetCardsByUserName
@Deprecated Collection<ExtranetCard> findExtranetCardsByUserName(String userName, String activa) throws InternalErrorException, InternalErrorException Deprecated.Operation findExtranetCardsByUserName- Parameters:
userName-activa-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findUserNames
Operation findUserNames- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findUserPrintersByUserName
Collection<PrinterUser> findUserPrintersByUserName(String userName) throws InternalErrorException, InternalErrorException Operation findUserPrintersByUserName Retrieves the printers assigned to a user- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findNetworksACByUserName
Collection<NetworkAuthorization> findNetworksACByUserName(String userName) throws InternalErrorException, InternalErrorException Operation findNetworksACByUserName Retrieves network authorizations granted to a user- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getActiveTasks
Operation getActiveTasks Retrieves current synchronization tasks for user- Parameters:
userName-- Returns:
- Throws:
InternalErrorException
-
getApplicationsByUserName
@Deprecated Collection<InformationSystem> getApplicationsByUserName(String userName) throws InternalErrorException, InternalErrorException Deprecated.Operation getApplicationsByUserName- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getBpmEnabledApplicationsByUserName
@Deprecated Collection<InformationSystem> getBpmEnabledApplicationsByUserName(String userName) throws InternalErrorException, InternalErrorException Deprecated.Operation getBpmEnabledApplicationsByUserName- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getPasswordsUserType
@Deprecated Collection<PasswordStatus> getPasswordsUserType(Date dataInici, Date dataFi, String tipusUsuari) throws InternalErrorException, InternalErrorException Deprecated.Operation getPasswordsUserType- Parameters:
dataInici-dataFi-tipusUsuari-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getApplicationRolesByuserNameAndApplicationName
@Deprecated Collection<Role> getApplicationRolesByuserNameAndApplicationName(String userName, String codiAplicacio) throws InternalErrorException, InternalErrorException Deprecated.Operation getApplicationRolesByuserNameAndApplicationName- Parameters:
userName-codiAplicacio-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getDataType
@Deprecated Collection<DataType> getDataType() throws InternalErrorException, InternalErrorExceptionDeprecated.Operation getDataType- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserExplicitRoles
Collection<RoleGrant> getUserExplicitRoles(long userId) throws InternalErrorException, InternalErrorException, InternalErrorException, UnknownUserException Operation getUserExplicitRoles- Parameters:
userId-- Returns:
- Throws:
InternalErrorExceptionInternalErrorExceptionInternalErrorExceptionUnknownUserException
-
getUserGroups
Operation getUserGroups- Parameters:
userId-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
getUserGroupsHierarchy
Collection<Group> getUserGroupsHierarchy(long userId) throws InternalErrorException, InternalErrorException, InternalErrorException, UnknownUserException Operation getUserGroupsHierarchy- Parameters:
userId-- Returns:
- Throws:
InternalErrorExceptionInternalErrorExceptionInternalErrorExceptionUnknownUserException
-
getUserGroupsHierarchy
Collection<Group> getUserGroupsHierarchy(long userId, String holderGroup) throws InternalErrorException, InternalErrorException, UnknownUserException Operation getUserGroupsHierarchy- Parameters:
userId-holderGroup-- Returns:
- Throws:
InternalErrorExceptionInternalErrorExceptionUnknownUserException
-
getUserRoles
Collection<RoleGrant> getUserRoles(long userId) throws InternalErrorException, InternalErrorException, InternalErrorException, UnknownUserException Operation getUserRoles- Parameters:
userId-- Returns:
- Throws:
InternalErrorExceptionInternalErrorExceptionInternalErrorExceptionUnknownUserException
-
getBpmUserProcessList
Collection<BpmProcess> getBpmUserProcessList() throws InternalErrorException, InternalErrorExceptionOperation getBpmUserProcessList Gets the list of workflows that can be started for a user- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
findPasswordDomainStatus
Operation findPasswordDomainStatus- Parameters:
user-- Returns:
- Throws:
InternalErrorException
-
findUserAttributes
@Deprecated Map<String,Object> findUserAttributes(String userName) throws InternalErrorException, InternalErrorException Deprecated.Operation findUserAttributes- Parameters:
userName-- Returns:
- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete Removes a user- Parameters:
user-- Throws:
InternalErrorExceptionInternalErrorException
-
delete
Operation delete- Parameters:
usuariWFProces-- Throws:
InternalErrorExceptionInternalErrorException
-
merge
Operation merge- Parameters:
srcId-targetId-eventId-- Throws:
InternalErrorException
-
sendPassword
void sendPassword(String userName, String passwordDomain) throws InternalErrorException, InternalErrorException Operation sendPassword Sends the current account password back to the target system- Parameters:
userName-passwordDomain-- Throws:
InternalErrorExceptionInternalErrorException
-
setPassword
void setPassword(String userName, String passwordDomain, Password newPassword) throws InternalErrorException, InternalErrorException, BadPasswordException Operation setPassword Sets a password for a user- Parameters:
userName-passwordDomain- The password domain uses to be 'DEFAULT'newPassword-- Throws:
InternalErrorExceptionInternalErrorExceptionBadPasswordException
-
setTemporaryPassword
void setTemporaryPassword(String userName, String passwordDomain, Password newPassword) throws InternalErrorException, InternalErrorException, BadPasswordException Operation setTemporaryPassword Sets a temporary password for a user- Parameters:
userName-passwordDomain- The password domain uses to be 'DEFAULT'newPassword-- Throws:
InternalErrorExceptionInternalErrorExceptionBadPasswordException
-
unlockPasswordDomain
Operation unlockPasswordDomain- Parameters:
user-passwordDomain-- Throws:
InternalErrorException
-
updateUserAttributes
@Deprecated void updateUserAttributes(String userName, Map<String, Object> attributes) throws InternalErrorException, InternalErrorExceptionDeprecated.Operation updateUserAttributes- Parameters:
userName-attributes-- Throws:
InternalErrorExceptionInternalErrorException
-