Package org.openiam.srvc.user
Class UserDataWebServiceImpl
- java.lang.Object
-
- org.openiam.srvc.AbstractApiService
-
- org.openiam.srvc.user.UserDataWebServiceImpl
-
- All Implemented Interfaces:
UserDataWebService
@Service("userWS") public class UserDataWebServiceImpl extends AbstractApiService implements UserDataWebService- Author:
- suneet
-
-
Field Summary
-
Fields inherited from class org.openiam.srvc.AbstractApiService
applicationContext, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description UserDataWebServiceImpl(UserServiceQueue queue, UserAuthParamQueue userAuthParamQueue, UserServiceQueue userServiceQueue, UserFindBeansQueue userFindBeansQueue, UserSaveQueue userSaveQueue, OrphanQueue orphanQueue, GetUserWithDependenciesQueue getUserWithDependenciesQueue, UserSuggestQueue suggestQueue, AccessCertificationQueue accessCertificationQueue, AuthStateRepository authStateRepository, AuthStateAuthParamXrefRepository authStateAuthParamXrefRepository, KeyManagementService keyManagementService)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ResponseacceptITPolicy(String userId)Deprecated.ResponseaddPhone(Phone val)Add a Phone to this UserResponseaddResourceToUsers(String resourceId, Set<String> rightIds, Set<String> userIds)This method is written only for testing purposes.ApproveAuthParamResponseapproveAuthParam(String token)intcount(UserSearchBean userSearchBean)ResponsedeleteOrphans(List<Orphan> orphans, boolean deleteFromTarget)Method is used to delete list of orphansResponsedeleteProfilePictureById(String picId)Deletes Profile picture by it's IDResponsedeleteProfilePictureByUserId(String userId)Deletes Profile picture for User by his IDResponsedeleteUser(String userId)Deletes a user from the database by user idResponsedeProvisionMembershipOnEndDate(Date fromDate, Date toDate)method to deprovision based on the specified start date range of entitlements.UserListResponsefetchUsersFromCSVFile(BulkPasswordResetConfig resetConfig)Fetches UserListResponse from a csv file based on the provided BulkPasswordResetConfig.UserListResponsefindBeans(UserSearchBean searchBean, UserCollection[] dependants, int from, int size)Call to find users by various criteriaList<EmailAddress>findEmailBeans(EmailSearchBean searchBean, int from, int size)Gets a paged List of EmailAddress records associated with a UserOrphanListResponsefindOrphans(OrphanSearchBean searchBean, int from, int size)Method is used to return list of orphans by search bean filtersList<Phone>findPhoneBeans(PhoneSearchBean searchBean, int from, int size)Gets a paged List of Phones identified by the search beanUserListResponsefindPotentialSupSubs(PotentialSupSubSearchBean userSearchBean, int from, int size)Retrieves list of potential supervisor/subordinate users that match given search criteria.intfindPotentialSupSubsCount(PotentialSupSubSearchBean userSearchBean)Counts number of potential supervisor/subordinate users that match given count criteria.SupervisorfindSupervisor(String superiorId, String subordinateId)gets a supervisor Object based on the Superior ID and Subordinate IDList<Supervisor>findSupervisors(SupervisorSearchBean supervisorSearchBean)Call to find supervisors by various criteriaUserITPolicyHistoryListResponsefindUserITPolicyHistory(UserITPolicyHistorySearchBean searchBean, int from, int size)UserListResponsefindUsersByApplications(AccessCertificationSearchBean searchBean, int from, int size)intgetActiveUserSessionCount(ActiveSessionRequest request, int from, int size)Method is used to get a count of user's active sessions.List<AuthStateInfoModel>getActiveUserSessions(ActiveSessionRequest request, int from, int size)List<Address>getAddressBeans(AddressSearchBean sb, int from, int size)Find Address objects based on the incoming criteriaList<Supervisor>getAllSuperiors(int from, int size)returns a paged List of all Supervisors in the systemintgetAllSuperiorsCount()Get the Number of all supervisors in the systemList<String>getAllUserAttributeValues(String attributeName)Method is used to return list of all values of attribute selected by nameList<ApproverInfoBean>getApproverInfoByIds(Set<String> userIds)UserAttributegetAttribute(String attrId)Get a UserAttribute by the idList<EmailAddress>getEmailAddressList(String userId)Get all EmailAddress records associated with a UserHelpDeskQuestionsResponsegetHelpDeskQuestionsResponse(HelpdeskQuestionsRequest request)DategetLastIndexDateTime(String id)Checks if user with given id is indexed.intgetNumOfAddressesForUser(String userId)Gets the number of Addresses for this userintgetNumOfEmailsForUser(String userId)Gets the number of Emails for this userintgetNumOfPhonesForUser(String userId)Gets the number of Phones for this UserList<String>getPossibleAttributeNames()Method is used to return unique list of all possible attribute namesSupervisorgetPrimarySupervisor(String employeeId)Returns the primary supervisor for this employee.ProfilePicturegetProfilePictureById(String picId)Returns Profile picture by it's IDProfilePicturegetProfilePictureByUserId(String userId)Returns Profile picture for User by his IDProfilePictureUserMapResponsegetProfilePictureUserMap(List<String> ids)UserListResponsegetSubordinates(String userId, UserCollection[] dependants, int from, int size, List<SortParam> sortList, UserSearchBean filterSearch)Gets a Paged List of User Objects, representing the subordinates of this userIdintgetSubordinatesCount(String userId)Gets the number of subordinates for this UserSupervisorListResponsegetSuperiors(String userId, UserCollection[] dependants, int from, int size)returns a paged List of Supervisors for this UserSupervisorListResponsegetSuperiorsWithTypes(String userId, UserCollection[] dependants, int from, int size)TerminatedUserListResponsegetTerminatedUserListForReport(Set<String> targetUsers, Date fromDate, Date toDate)List<UserAttribute>getUserAttributes(String userId)Gets list ofUserAttributeassociated with this UserList<UserAuthParam>getUserAuthParams(String userId)List<User>getUserBetweenCreateDate(Date fromDate, Date toDate)Retrieves list of users that has create date between form date and to date.List<User>getUserBetweenLastDate(Date fromDate, Date toDate)This method does search by lastDateList<User>getUserBetweenStartDate(Date fromDate, Date toDate)Retrieves list of users whose startDate is between from date and to date.List<User>getUserByLastDate(Date lastDate)Deprecated.UsergetUserByPrincipal(String principal, String managedSysId, UserCollection[] dependants)Find a User based on his principal, security domain, and the managed systemStringgetUserMdTypeId(String userId)Method is used to return user metadata type ID.UserResponsegetUserWithDependent(String id, UserCollection[] dependants)Get a user based on his internal IDResponseisSecretWordFilled(String userId)Checks if given user answered security question.BooleanResponseisUserHasPicture(String userId)Method is used to define, does user has uploaded image or not.ResponselinkOrphans(List<Orphan> orphans)Method is used to link user to selected list of orphansResponsemoveLoginToOrphan(String loginId)Method is used to move selected user login to orphanvoidnotifyAboutEmailDuplication(String requestId, Set<String> emailAddresses)ResponseprovisionMembershipOnStartDate(Date fromDate, Date toDate)method to provision based on the specified start date range of entitlements.ResponsereindexUser(String id)Reindexes a userResponseremoveUser(String id)Delete aUserfrom the databaseResponseresetSecretWord(String userId)ResponsesaveAlternateContact(AlternateContactModel alternateContactModel)ResponsesaveProfilePicture(ProfilePicture pic)Saves Profile pictureProvisionUserResponsesaveProvisionTemplateUser(UserRequestModel userRequestModel, UserCollection[] dependants)Save provision user formed by templated Edit User page.ProvisionUserResponsesaveProvisionUser(ProvisionUser provisionUser, UserCollection[] dependants)Saves ProvisionUser.ResponsesaveSecretWord(String userId, String word)SaveTemplateProfileResponsesaveUserProfile(UserProfileRequestModel request)Saves a User ProfileResponsesetSecondaryStatus(String userId, UserStatusEnum secondaryStatus)Sets the Secondary Status of the UserResponsesubmitITPolicy(UserITPolicyHistoryRequest request)UserListResponsesuggest(UserSearchBean searchBean, int from, int size)Call to find users by various criteria.UserResponsesuggestById(String id)Get a user from Elasticsearch.ResponseuserTypeConversion(UserTypeConversionModel conversionModel)Changes the user metadata type using the provided UserTypeConversionModel.ResponsevalidatePhone(Phone phone)Validate that a phone is valid.ResponsevalidateUserSearchRequest(UserSearchBean userSearchBean)Validate user search request according to Delegation filter.-
Methods inherited from class org.openiam.srvc.AbstractApiService
broadcast, crudRequest, getBooleanValue, getIntValue, getIntValue, getRabbitMqQueue, getResponse, getResponse, getValue, getValue, getValueList, getValueList, idRequest, manageApiRequest, manageApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, membershipRequestProcessing, membershipRequestProcessing, publish, publish, sendAsync, sendAsync
-
-
-
-
Constructor Detail
-
UserDataWebServiceImpl
@Autowired public UserDataWebServiceImpl(UserServiceQueue queue, UserAuthParamQueue userAuthParamQueue, UserServiceQueue userServiceQueue, UserFindBeansQueue userFindBeansQueue, UserSaveQueue userSaveQueue, OrphanQueue orphanQueue, GetUserWithDependenciesQueue getUserWithDependenciesQueue, UserSuggestQueue suggestQueue, AccessCertificationQueue accessCertificationQueue, AuthStateRepository authStateRepository, AuthStateAuthParamXrefRepository authStateAuthParamXrefRepository, KeyManagementService keyManagementService)
-
-
Method Detail
-
addPhone
public Response addPhone(Phone val)
Description copied from interface:UserDataWebServiceAdd a Phone to this User- Specified by:
addPhonein interfaceUserDataWebService- Parameters:
val- - the Phone record- Returns:
- a Response Object, containing the result of this operation
-
getAddressBeans
public List<Address> getAddressBeans(AddressSearchBean sb, int from, int size)
Description copied from interface:UserDataWebServiceFind Address objects based on the incoming criteria- Specified by:
getAddressBeansin interfaceUserDataWebService- Parameters:
sb- -AddressSearchBeanthe search beanfrom- - from where to pagesize- - how many records to return- Returns:
- List of
Address.
-
getAttribute
public UserAttribute getAttribute(String attrId)
Description copied from interface:UserDataWebServiceGet a UserAttribute by the id- Specified by:
getAttributein interfaceUserDataWebService- Parameters:
attrId- - the id of this UserAttribute- Returns:
- a
UserAttributeobject, or null if not found
-
isSecretWordFilled
public Response isSecretWordFilled(String userId)
Description copied from interface:UserDataWebServiceChecks if given user answered security question.- Specified by:
isSecretWordFilledin interfaceUserDataWebService- Parameters:
userId- - id of user to check- Returns:
- - FAILURE status if userId is null or given user doesn't exist. - SUCCESS status if secretWord is not null
-
getEmailAddressList
public List<EmailAddress> getEmailAddressList(String userId)
Description copied from interface:UserDataWebServiceGet all EmailAddress records associated with a User- Specified by:
getEmailAddressListin interfaceUserDataWebService- Parameters:
userId- - the user ID of interest- Returns:
- a List of EmailAddress records belonging to this User
-
findPhoneBeans
public List<Phone> findPhoneBeans(PhoneSearchBean searchBean, int from, int size)
Description copied from interface:UserDataWebServiceGets a paged List of Phones identified by the search bean- Specified by:
findPhoneBeansin interfaceUserDataWebService- Parameters:
searchBean- - the search criteriafrom- - where to startsize- - how many records to return- Returns:
- a paged List of Phone records belonging to this user
-
getPrimarySupervisor
public Supervisor getPrimarySupervisor(String employeeId)
Description copied from interface:UserDataWebServiceReturns the primary supervisor for this employee. Null if no primary is defined.- Specified by:
getPrimarySupervisorin interfaceUserDataWebService- Returns:
-
findSupervisor
public Supervisor findSupervisor(String superiorId, String subordinateId)
Description copied from interface:UserDataWebServicegets a supervisor Object based on the Superior ID and Subordinate ID- Specified by:
findSupervisorin interfaceUserDataWebService- Parameters:
superiorId- - the Superior IDsubordinateId- - the Subordinate ID- Returns:
- - the Supervisor object
-
getProfilePictureUserMap
public ProfilePictureUserMapResponse getProfilePictureUserMap(List<String> ids)
- Specified by:
getProfilePictureUserMapin interfaceUserDataWebService
-
getSuperiors
public SupervisorListResponse getSuperiors(String userId, UserCollection[] dependants, int from, int size)
Description copied from interface:UserDataWebServicereturns a paged List of Supervisors for this User- Specified by:
getSuperiorsin interfaceUserDataWebService- Parameters:
userId- - the User IDfrom- - where to startsize- - how many objects to return- Returns:
- a paged List of Supervisors for this User
-
getSuperiorsWithTypes
public SupervisorListResponse getSuperiorsWithTypes(String userId, UserCollection[] dependants, int from, int size)
- Specified by:
getSuperiorsWithTypesin interfaceUserDataWebService
-
getSubordinates
public UserListResponse getSubordinates(String userId, UserCollection[] dependants, int from, int size, List<SortParam> sortList, UserSearchBean filterSearch)
Description copied from interface:UserDataWebServiceGets a Paged List of User Objects, representing the subordinates of this userId- Specified by:
getSubordinatesin interfaceUserDataWebService- Parameters:
userId- - the User IDfrom- - where to start in the listsize- - how many to returnsortList- - for sort- Returns:
- a Paged List of User Objects, representing the subordinates of this userId
-
getSubordinatesCount
public int getSubordinatesCount(String userId)
Description copied from interface:UserDataWebServiceGets the number of subordinates for this User- Specified by:
getSubordinatesCountin interfaceUserDataWebService- Parameters:
userId- - the User ID- Returns:
- the number of subordinates for this User
-
findPotentialSupSubs
public UserListResponse findPotentialSupSubs(PotentialSupSubSearchBean userSearchBean, int from, int size)
Description copied from interface:UserDataWebServiceRetrieves list of potential supervisor/subordinate users that match given search criteria.- Specified by:
findPotentialSupSubsin interfaceUserDataWebService- Parameters:
userSearchBean- PotentialSupSubSearchBean used for search criteria.from- Index of first user to retrieve.size- Number of users to retrieve.- Returns:
- List of users that match given criteria.
-
findPotentialSupSubsCount
public int findPotentialSupSubsCount(PotentialSupSubSearchBean userSearchBean)
Description copied from interface:UserDataWebServiceCounts number of potential supervisor/subordinate users that match given count criteria.- Specified by:
findPotentialSupSubsCountin interfaceUserDataWebService- Parameters:
userSearchBean- PotentialSupSubSearchBean bean used for count criteria.- Returns:
- Number of users that match given criteria.
-
getUserWithDependent
public UserResponse getUserWithDependent(String id, UserCollection[] dependants)
Description copied from interface:UserDataWebServiceGet a user based on his internal ID- Specified by:
getUserWithDependentin interfaceUserDataWebService- Parameters:
id- - the internal user ID of the user being requesteddependants- -UserCollectioncollection to be returned.UserCollection.ALLfor all, null for complete shallow object. Otherwise specify the exact collections you want to be returned.- Returns:
- - a User object, or null if not found
-
getUserByPrincipal
public User getUserByPrincipal(String principal, String managedSysId, UserCollection[] dependants)
Description copied from interface:UserDataWebServiceFind a User based on his principal, security domain, and the managed system- Specified by:
getUserByPrincipalin interfaceUserDataWebService- Parameters:
principal- - the user's principalLoginmanagedSysId- - the ID of theto which the principal belongs todependants- - dependants to return. ALL for all, null for complete shallow object. Otherwise specify the exact collecitons you want returned.- Returns:
- - a
Userobject, or null if not found
-
removeUser
public Response removeUser(String id)
Description copied from interface:UserDataWebServiceDelete aUserfrom the database- Specified by:
removeUserin interfaceUserDataWebService- Parameters:
id- - the ID of the user- Returns:
- a
ResponseObject, containing the result of this operation
-
findBeans
@Transactional(readOnly=true) public UserListResponse findBeans(UserSearchBean searchBean, UserCollection[] dependants, int from, int size)
Description copied from interface:UserDataWebServiceCall to find users by various criteria- Specified by:
findBeansin interfaceUserDataWebService- Parameters:
searchBean- -UserSearchBeanfrom- - where to start pagingsize- - how many results to return- Returns:
- a
UserListResponseof matched User objects
-
suggestById
public UserResponse suggestById(String id)
Description copied from interface:UserDataWebServiceGet a user from Elasticsearch. This does not hit the database, uses only elasticsearch- Specified by:
suggestByIdin interfaceUserDataWebService- Parameters:
id- - the internal user ID of the user being requested- Returns:
- - a
UserResponseobject, or null if not found
-
suggest
public UserListResponse suggest(UserSearchBean searchBean, int from, int size)
Description copied from interface:UserDataWebServiceCall to find users by various criteria. UnlikefindBeans, this does not go to the database, and only queries elasticsearch.This should be used for autocompletes
- Specified by:
suggestin interfaceUserDataWebService- Parameters:
searchBean- -UserSearchBeanfrom- - where to start pagingsize- - how many results to return- Returns:
- a
UserListResponseof matched User objects
-
count
public int count(UserSearchBean userSearchBean)
- Specified by:
countin interfaceUserDataWebService
-
deleteUser
public Response deleteUser(String userId)
Description copied from interface:UserDataWebServiceDeletes a user from the database by user id- Specified by:
deleteUserin interfaceUserDataWebService- Parameters:
userId- - the User ID- Returns:
- a Response Object, containing the result of this operation
-
setSecondaryStatus
public Response setSecondaryStatus(String userId, UserStatusEnum secondaryStatus)
Description copied from interface:UserDataWebServiceSets the Secondary Status of the User- Specified by:
setSecondaryStatusin interfaceUserDataWebService- Parameters:
userId- - the ID of the UsersecondaryStatus- - the Secondary Status- Returns:
- a Response Object, containing the result of this operation
-
getNumOfEmailsForUser
public int getNumOfEmailsForUser(String userId)
Description copied from interface:UserDataWebServiceGets the number of Emails for this user- Specified by:
getNumOfEmailsForUserin interfaceUserDataWebService- Parameters:
userId- - the User ID- Returns:
- the number of Emails for this user
-
getNumOfAddressesForUser
public int getNumOfAddressesForUser(String userId)
Description copied from interface:UserDataWebServiceGets the number of Addresses for this user- Specified by:
getNumOfAddressesForUserin interfaceUserDataWebService- Parameters:
userId- - the User ID- Returns:
- the number of Addresses for this user
-
getNumOfPhonesForUser
public int getNumOfPhonesForUser(String userId)
Description copied from interface:UserDataWebServiceGets the number of Phones for this User- Specified by:
getNumOfPhonesForUserin interfaceUserDataWebService- Parameters:
userId- - the User ID- Returns:
- the number of Phones for this User
-
getUserAttributes
public List<UserAttribute> getUserAttributes(String userId)
Description copied from interface:UserDataWebServiceGets list ofUserAttributeassociated with this User- Specified by:
getUserAttributesin interfaceUserDataWebService- Parameters:
userId- - the id of this User- Returns:
- a List of
UserAttributeassociated with this user
-
saveUserProfile
public SaveTemplateProfileResponse saveUserProfile(UserProfileRequestModel request)
Description copied from interface:UserDataWebServiceSaves a User Profile- Specified by:
saveUserProfilein interfaceUserDataWebService- Parameters:
request- - the User Profile to save- Returns:
- a SaveTemplateProfileResponse, containing the results of this operation
-
getProfilePictureById
public ProfilePicture getProfilePictureById(String picId)
Description copied from interface:UserDataWebServiceReturns Profile picture by it's ID- Specified by:
getProfilePictureByIdin interfaceUserDataWebService- Returns:
-
getProfilePictureByUserId
public ProfilePicture getProfilePictureByUserId(String userId)
Description copied from interface:UserDataWebServiceReturns Profile picture for User by his ID- Specified by:
getProfilePictureByUserIdin interfaceUserDataWebService- Returns:
-
saveProfilePicture
public Response saveProfilePicture(ProfilePicture pic)
Description copied from interface:UserDataWebServiceSaves Profile picture- Specified by:
saveProfilePicturein interfaceUserDataWebService- Returns:
-
deleteProfilePictureById
public Response deleteProfilePictureById(String picId)
Description copied from interface:UserDataWebServiceDeletes Profile picture by it's ID- Specified by:
deleteProfilePictureByIdin interfaceUserDataWebService- Returns:
-
deleteProfilePictureByUserId
public Response deleteProfilePictureByUserId(String userId)
Description copied from interface:UserDataWebServiceDeletes Profile picture for User by his ID- Specified by:
deleteProfilePictureByUserIdin interfaceUserDataWebService- Returns:
-
acceptITPolicy
@Deprecated(since="4.2.2") public Response acceptITPolicy(String userId)
Deprecated.Description copied from interface:UserDataWebServiceAccept an IT policy- Specified by:
acceptITPolicyin interfaceUserDataWebService- Parameters:
userId- - the User ID who has accepted the IT Policy- Returns:
- a Response Object, containing the result of this operation
-
validateUserSearchRequest
public Response validateUserSearchRequest(UserSearchBean userSearchBean)
Description copied from interface:UserDataWebServiceValidate user search request according to Delegation filter.- Specified by:
validateUserSearchRequestin interfaceUserDataWebService- Parameters:
userSearchBean- - UserSearchBean that is represented user search request- Returns:
- a Response Object, containing the result of this operation
-
getUserByLastDate
@Deprecated(since="4.2.1.4") public List<User> getUserByLastDate(Date lastDate)
Deprecated.Description copied from interface:UserDataWebServiceRetrieves list of users that have last date before given last date.- Specified by:
getUserByLastDatein interfaceUserDataWebService- Parameters:
lastDate- Last date used for search criteria.- Returns:
- List of users that have last date before then last date.
-
getUserBetweenCreateDate
public List<User> getUserBetweenCreateDate(Date fromDate, Date toDate)
Description copied from interface:UserDataWebServiceRetrieves list of users that has create date between form date and to date.- Specified by:
getUserBetweenCreateDatein interfaceUserDataWebService- Parameters:
fromDate- From date.toDate- To date.- Returns:
- List of users that has create date between form date and to date.
-
getUserBetweenStartDate
public List<User> getUserBetweenStartDate(Date fromDate, Date toDate)
Description copied from interface:UserDataWebServiceRetrieves list of users whose startDate is between from date and to date.- Specified by:
getUserBetweenStartDatein interfaceUserDataWebService- Parameters:
fromDate- From date.toDate- To date.- Returns:
- list of users whose startDate is between from date and to date.
-
getUserBetweenLastDate
public List<User> getUserBetweenLastDate(Date fromDate, Date toDate)
Description copied from interface:UserDataWebServiceThis method does search by lastDate- Specified by:
getUserBetweenLastDatein interfaceUserDataWebService- Parameters:
fromDate- From date.toDate- To date.- Returns:
- List of users that has last date between form date and to date.
-
getAllSuperiors
public List<Supervisor> getAllSuperiors(int from, int size)
Description copied from interface:UserDataWebServicereturns a paged List of all Supervisors in the system- Specified by:
getAllSuperiorsin interfaceUserDataWebService- Parameters:
from- - where to startsize- - how many objects to return- Returns:
- a paged List of all Supervisors in the system
-
getAllSuperiorsCount
public int getAllSuperiorsCount()
Description copied from interface:UserDataWebServiceGet the Number of all supervisors in the system- Specified by:
getAllSuperiorsCountin interfaceUserDataWebService- Returns:
- the Number of all supervisors in the system
-
findEmailBeans
public List<EmailAddress> findEmailBeans(EmailSearchBean searchBean, int from, int size)
Description copied from interface:UserDataWebServiceGets a paged List of EmailAddress records associated with a User- Specified by:
findEmailBeansin interfaceUserDataWebService- Parameters:
searchBean- - search bean to usefrom- - where to startsize- - how many records to fetch- Returns:
- a paged List of EmailAddress records associated with the given Search Bean
-
validatePhone
public Response validatePhone(Phone phone)
Description copied from interface:UserDataWebServiceValidate that a phone is valid.- Specified by:
validatePhonein interfaceUserDataWebService- Returns:
- a Response Object, containing the result of this operation
-
findSupervisors
public List<Supervisor> findSupervisors(SupervisorSearchBean supervisorSearchBean)
Description copied from interface:UserDataWebServiceCall to find supervisors by various criteria- Specified by:
findSupervisorsin interfaceUserDataWebService- Returns:
- a List Supervisor objects
-
getLastIndexDateTime
public Date getLastIndexDateTime(String id)
Description copied from interface:UserDataWebServiceChecks if user with given id is indexed.- Specified by:
getLastIndexDateTimein interfaceUserDataWebService- Parameters:
id- User id.- Returns:
- True if user is indexed, otherwise false.
-
saveProvisionUser
public ProvisionUserResponse saveProvisionUser(ProvisionUser provisionUser, UserCollection[] dependants)
Description copied from interface:UserDataWebServiceSaves ProvisionUser.- Specified by:
saveProvisionUserin interfaceUserDataWebService- Parameters:
provisionUser- Provision user which will be saved.- Returns:
- ProvisionUserResponse.
-
saveProvisionTemplateUser
public ProvisionUserResponse saveProvisionTemplateUser(UserRequestModel userRequestModel, UserCollection[] dependants)
Description copied from interface:UserDataWebServiceSave provision user formed by templated Edit User page.- Specified by:
saveProvisionTemplateUserin interfaceUserDataWebService- Returns:
-
reindexUser
public Response reindexUser(String id)
Description copied from interface:UserDataWebServiceReindexes a user- Specified by:
reindexUserin interfaceUserDataWebService
-
getApproverInfoByIds
public List<ApproverInfoBean> getApproverInfoByIds(Set<String> userIds)
- Specified by:
getApproverInfoByIdsin interfaceUserDataWebService
-
saveAlternateContact
public Response saveAlternateContact(AlternateContactModel alternateContactModel)
- Specified by:
saveAlternateContactin interfaceUserDataWebService
-
getHelpDeskQuestionsResponse
public HelpDeskQuestionsResponse getHelpDeskQuestionsResponse(HelpdeskQuestionsRequest request)
- Specified by:
getHelpDeskQuestionsResponsein interfaceUserDataWebService
-
saveSecretWord
public Response saveSecretWord(String userId, String word)
- Specified by:
saveSecretWordin interfaceUserDataWebService
-
resetSecretWord
public Response resetSecretWord(String userId)
- Specified by:
resetSecretWordin interfaceUserDataWebService
-
notifyAboutEmailDuplication
public void notifyAboutEmailDuplication(String requestId, Set<String> emailAddresses)
- Specified by:
notifyAboutEmailDuplicationin interfaceUserDataWebService
-
getPossibleAttributeNames
public List<String> getPossibleAttributeNames()
Method is used to return unique list of all possible attribute names- Specified by:
getPossibleAttributeNamesin interfaceUserDataWebService- Returns:
ArrayListofString
-
getAllUserAttributeValues
public List<String> getAllUserAttributeValues(String attributeName)
Method is used to return list of all values of attribute selected by name- Specified by:
getAllUserAttributeValuesin interfaceUserDataWebService- Returns:
ArrayListofString
-
isUserHasPicture
public BooleanResponse isUserHasPicture(String userId)
Description copied from interface:UserDataWebServiceMethod is used to define, does user has uploaded image or not.- Specified by:
isUserHasPicturein interfaceUserDataWebService- Parameters:
userId- - id for current user, nullable- Returns:
- - return
BooleanResponsewith value true (picture exists) and false (doesn't exists).
-
findOrphans
@Transactional(readOnly=true) public OrphanListResponse findOrphans(OrphanSearchBean searchBean, int from, int size)
Description copied from interface:UserDataWebServiceMethod is used to return list of orphans by search bean filters- Specified by:
findOrphansin interfaceUserDataWebService- Returns:
ArrayListofString
-
deleteOrphans
public Response deleteOrphans(List<Orphan> orphans, boolean deleteFromTarget)
Description copied from interface:UserDataWebServiceMethod is used to delete list of orphans- Specified by:
deleteOrphansin interfaceUserDataWebServicedeleteFromTarget- if true then delete object from source managed system- Returns:
Response
-
linkOrphans
public Response linkOrphans(List<Orphan> orphans)
Description copied from interface:UserDataWebServiceMethod is used to link user to selected list of orphans- Specified by:
linkOrphansin interfaceUserDataWebService- Returns:
Response
-
moveLoginToOrphan
public Response moveLoginToOrphan(String loginId)
Description copied from interface:UserDataWebServiceMethod is used to move selected user login to orphan- Specified by:
moveLoginToOrphanin interfaceUserDataWebService- Returns:
-
getActiveUserSessions
public List<AuthStateInfoModel> getActiveUserSessions(ActiveSessionRequest request, int from, int size)
- Specified by:
getActiveUserSessionsin interfaceUserDataWebService
-
getActiveUserSessionCount
public int getActiveUserSessionCount(ActiveSessionRequest request, int from, int size)
Description copied from interface:UserDataWebServiceMethod is used to get a count of user's active sessions.- Specified by:
getActiveUserSessionCountin interfaceUserDataWebService- Returns:
-
addResourceToUsers
public Response addResourceToUsers(String resourceId, Set<String> rightIds, Set<String> userIds)
Description copied from interface:UserDataWebServiceThis method is written only for testing purposes. Call this only from tests- Specified by:
addResourceToUsersin interfaceUserDataWebService- Returns:
-
approveAuthParam
public ApproveAuthParamResponse approveAuthParam(String token)
- Specified by:
approveAuthParamin interfaceUserDataWebService- Returns:
-
getUserAuthParams
public List<UserAuthParam> getUserAuthParams(String userId)
- Specified by:
getUserAuthParamsin interfaceUserDataWebService- Returns:
-
findUsersByApplications
public UserListResponse findUsersByApplications(AccessCertificationSearchBean searchBean, int from, int size)
- Specified by:
findUsersByApplicationsin interfaceUserDataWebService
-
getUserMdTypeId
public String getUserMdTypeId(String userId)
Description copied from interface:UserDataWebServiceMethod is used to return user metadata type ID.- Specified by:
getUserMdTypeIdin interfaceUserDataWebService- Returns:
-
provisionMembershipOnStartDate
public Response provisionMembershipOnStartDate(Date fromDate, Date toDate)
Description copied from interface:UserDataWebServicemethod to provision based on the specified start date range of entitlements.- Specified by:
provisionMembershipOnStartDatein interfaceUserDataWebService- Parameters:
fromDate- The start date from which users should be provisioned.toDate- The start date until which users should be provisioned.
-
deProvisionMembershipOnEndDate
public Response deProvisionMembershipOnEndDate(Date fromDate, Date toDate)
Description copied from interface:UserDataWebServicemethod to deprovision based on the specified start date range of entitlements.- Specified by:
deProvisionMembershipOnEndDatein interfaceUserDataWebService- Parameters:
fromDate- The end date from which users should be deprovisioned.toDate- The end date until which users should be deprovisioned.
-
submitITPolicy
public Response submitITPolicy(UserITPolicyHistoryRequest request)
- Specified by:
submitITPolicyin interfaceUserDataWebService
-
findUserITPolicyHistory
public UserITPolicyHistoryListResponse findUserITPolicyHistory(UserITPolicyHistorySearchBean searchBean, int from, int size)
- Specified by:
findUserITPolicyHistoryin interfaceUserDataWebService
-
getTerminatedUserListForReport
public TerminatedUserListResponse getTerminatedUserListForReport(Set<String> targetUsers, Date fromDate, Date toDate)
- Specified by:
getTerminatedUserListForReportin interfaceUserDataWebService
-
fetchUsersFromCSVFile
public UserListResponse fetchUsersFromCSVFile(BulkPasswordResetConfig resetConfig)
Fetches UserListResponse from a csv file based on the provided BulkPasswordResetConfig. This method retrieves a list of users by processing a csv file according to the configuration specified in the BulkPasswordResetConfig parameter. The configuration contains details about how to read and interpret the csv file. The method then returns a list of User objects representing the users extracted from the csv file.- Specified by:
fetchUsersFromCSVFilein interfaceUserDataWebService- Parameters:
resetConfig- The BulkPasswordResetConfig specifying the configuration for processing the csv file.- Returns:
- A List of User objects representing the users extracted from the csv file.
-
userTypeConversion
public Response userTypeConversion(UserTypeConversionModel conversionModel)
Changes the user metadata type using the provided UserTypeConversionModel.- Specified by:
userTypeConversionin interfaceUserDataWebService- Parameters:
conversionModel- The UserTypeConversionModel containing information for the user type conversion.- Returns:
- A Response representing the result of the user type change operation.
-
-