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 Response
acceptITPolicy(String userId)
Deprecated.Response
addPhone(Phone val)
Add a Phone to this UserResponse
addResourceToUsers(String resourceId, Set<String> rightIds, Set<String> userIds)
This method is written only for testing purposes.ApproveAuthParamResponse
approveAuthParam(String token)
int
count(UserSearchBean userSearchBean)
Response
deleteOrphans(List<Orphan> orphans, boolean deleteFromTarget)
Method is used to delete list of orphansResponse
deleteProfilePictureById(String picId)
Deletes Profile picture by it's IDResponse
deleteProfilePictureByUserId(String userId)
Deletes Profile picture for User by his IDResponse
deleteUser(String userId)
Deletes a user from the database by user idResponse
deProvisionMembershipOnEndDate(Date fromDate, Date toDate)
method to deprovision based on the specified start date range of entitlements.UserListResponse
fetchUsersFromCSVFile(BulkPasswordResetConfig resetConfig)
Fetches UserListResponse from a csv file based on the provided BulkPasswordResetConfig.UserListResponse
findBeans(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 UserOrphanListResponse
findOrphans(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 beanUserListResponse
findPotentialSupSubs(PotentialSupSubSearchBean userSearchBean, int from, int size)
Retrieves list of potential supervisor/subordinate users that match given search criteria.int
findPotentialSupSubsCount(PotentialSupSubSearchBean userSearchBean)
Counts number of potential supervisor/subordinate users that match given count criteria.Supervisor
findSupervisor(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 criteriaUserITPolicyHistoryListResponse
findUserITPolicyHistory(UserITPolicyHistorySearchBean searchBean, int from, int size)
UserListResponse
findUsersByApplications(AccessCertificationSearchBean searchBean, int from, int size)
int
getActiveUserSessionCount(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 systemint
getAllSuperiorsCount()
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)
UserAttribute
getAttribute(String attrId)
Get a UserAttribute by the idList<EmailAddress>
getEmailAddressList(String userId)
Get all EmailAddress records associated with a UserHelpDeskQuestionsResponse
getHelpDeskQuestionsResponse(HelpdeskQuestionsRequest request)
Date
getLastIndexDateTime(String id)
Checks if user with given id is indexed.int
getNumOfAddressesForUser(String userId)
Gets the number of Addresses for this userint
getNumOfEmailsForUser(String userId)
Gets the number of Emails for this userint
getNumOfPhonesForUser(String userId)
Gets the number of Phones for this UserList<String>
getPossibleAttributeNames()
Method is used to return unique list of all possible attribute namesSupervisor
getPrimarySupervisor(String employeeId)
Returns the primary supervisor for this employee.ProfilePicture
getProfilePictureById(String picId)
Returns Profile picture by it's IDProfilePicture
getProfilePictureByUserId(String userId)
Returns Profile picture for User by his IDProfilePictureUserMapResponse
getProfilePictureUserMap(List<String> ids)
UserListResponse
getSubordinates(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 userIdint
getSubordinatesCount(String userId)
Gets the number of subordinates for this UserSupervisorListResponse
getSuperiors(String userId, UserCollection[] dependants, int from, int size)
returns a paged List of Supervisors for this UserSupervisorListResponse
getSuperiorsWithTypes(String userId, UserCollection[] dependants, int from, int size)
TerminatedUserListResponse
getTerminatedUserListForReport(Set<String> targetUsers, Date fromDate, Date toDate)
List<UserAttribute>
getUserAttributes(String userId)
Gets list ofUserAttribute
associated 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.User
getUserByPrincipal(String principal, String managedSysId, UserCollection[] dependants)
Find a User based on his principal, security domain, and the managed systemString
getUserMdTypeId(String userId)
Method is used to return user metadata type ID.UserResponse
getUserWithDependent(String id, UserCollection[] dependants)
Get a user based on his internal IDResponse
isSecretWordFilled(String userId)
Checks if given user answered security question.BooleanResponse
isUserHasPicture(String userId)
Method is used to define, does user has uploaded image or not.Response
linkOrphans(List<Orphan> orphans)
Method is used to link user to selected list of orphansResponse
moveLoginToOrphan(String loginId)
Method is used to move selected user login to orphanvoid
notifyAboutEmailDuplication(String requestId, Set<String> emailAddresses)
Response
provisionMembershipOnStartDate(Date fromDate, Date toDate)
method to provision based on the specified start date range of entitlements.Response
reindexUser(String id)
Reindexes a userResponse
removeUser(String id)
Delete aUser
from the databaseResponse
resetSecretWord(String userId)
Response
saveAlternateContact(AlternateContactModel alternateContactModel)
Response
saveProfilePicture(ProfilePicture pic)
Saves Profile pictureProvisionUserResponse
saveProvisionTemplateUser(UserRequestModel userRequestModel, UserCollection[] dependants)
Save provision user formed by templated Edit User page.ProvisionUserResponse
saveProvisionUser(ProvisionUser provisionUser, UserCollection[] dependants)
Saves ProvisionUser.Response
saveSecretWord(String userId, String word)
SaveTemplateProfileResponse
saveUserProfile(UserProfileRequestModel request)
Saves a User ProfileResponse
setSecondaryStatus(String userId, UserStatusEnum secondaryStatus)
Sets the Secondary Status of the UserResponse
submitITPolicy(UserITPolicyHistoryRequest request)
UserListResponse
suggest(UserSearchBean searchBean, int from, int size)
Call to find users by various criteria.UserResponse
suggestById(String id)
Get a user from Elasticsearch.Response
userTypeConversion(UserTypeConversionModel conversionModel)
Changes the user metadata type using the provided UserTypeConversionModel.Response
validatePhone(Phone phone)
Validate that a phone is valid.Response
validateUserSearchRequest(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:UserDataWebService
Add a Phone to this User- Specified by:
addPhone
in 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:UserDataWebService
Find Address objects based on the incoming criteria- Specified by:
getAddressBeans
in interfaceUserDataWebService
- Parameters:
sb
- -AddressSearchBean
the 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:UserDataWebService
Get a UserAttribute by the id- Specified by:
getAttribute
in interfaceUserDataWebService
- Parameters:
attrId
- - the id of this UserAttribute- Returns:
- a
UserAttribute
object, or null if not found
-
isSecretWordFilled
public Response isSecretWordFilled(String userId)
Description copied from interface:UserDataWebService
Checks if given user answered security question.- Specified by:
isSecretWordFilled
in 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:UserDataWebService
Get all EmailAddress records associated with a User- Specified by:
getEmailAddressList
in 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:UserDataWebService
Gets a paged List of Phones identified by the search bean- Specified by:
findPhoneBeans
in 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:UserDataWebService
Returns the primary supervisor for this employee. Null if no primary is defined.- Specified by:
getPrimarySupervisor
in interfaceUserDataWebService
- Returns:
-
findSupervisor
public Supervisor findSupervisor(String superiorId, String subordinateId)
Description copied from interface:UserDataWebService
gets a supervisor Object based on the Superior ID and Subordinate ID- Specified by:
findSupervisor
in interfaceUserDataWebService
- Parameters:
superiorId
- - the Superior IDsubordinateId
- - the Subordinate ID- Returns:
- - the Supervisor object
-
getProfilePictureUserMap
public ProfilePictureUserMapResponse getProfilePictureUserMap(List<String> ids)
- Specified by:
getProfilePictureUserMap
in interfaceUserDataWebService
-
getSuperiors
public SupervisorListResponse getSuperiors(String userId, UserCollection[] dependants, int from, int size)
Description copied from interface:UserDataWebService
returns a paged List of Supervisors for this User- Specified by:
getSuperiors
in 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:
getSuperiorsWithTypes
in interfaceUserDataWebService
-
getSubordinates
public UserListResponse getSubordinates(String userId, UserCollection[] dependants, int from, int size, List<SortParam> sortList, UserSearchBean filterSearch)
Description copied from interface:UserDataWebService
Gets a Paged List of User Objects, representing the subordinates of this userId- Specified by:
getSubordinates
in 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:UserDataWebService
Gets the number of subordinates for this User- Specified by:
getSubordinatesCount
in 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:UserDataWebService
Retrieves list of potential supervisor/subordinate users that match given search criteria.- Specified by:
findPotentialSupSubs
in 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:UserDataWebService
Counts number of potential supervisor/subordinate users that match given count criteria.- Specified by:
findPotentialSupSubsCount
in 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:UserDataWebService
Get a user based on his internal ID- Specified by:
getUserWithDependent
in interfaceUserDataWebService
- Parameters:
id
- - the internal user ID of the user being requesteddependants
- -UserCollection
collection to be returned.UserCollection.ALL
for 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:UserDataWebService
Find a User based on his principal, security domain, and the managed system- Specified by:
getUserByPrincipal
in interfaceUserDataWebService
- Parameters:
principal
- - the user's principalLogin
managedSysId
- - the ID of theto which the principal belongs to
dependants
- - dependants to return. ALL for all, null for complete shallow object. Otherwise specify the exact collecitons you want returned.- Returns:
- - a
User
object, or null if not found
-
removeUser
public Response removeUser(String id)
Description copied from interface:UserDataWebService
Delete aUser
from the database- Specified by:
removeUser
in interfaceUserDataWebService
- Parameters:
id
- - the ID of the user- Returns:
- a
Response
Object, 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:UserDataWebService
Call to find users by various criteria- Specified by:
findBeans
in interfaceUserDataWebService
- Parameters:
searchBean
- -UserSearchBean
from
- - where to start pagingsize
- - how many results to return- Returns:
- a
UserListResponse
of matched User objects
-
suggestById
public UserResponse suggestById(String id)
Description copied from interface:UserDataWebService
Get a user from Elasticsearch. This does not hit the database, uses only elasticsearch- Specified by:
suggestById
in interfaceUserDataWebService
- Parameters:
id
- - the internal user ID of the user being requested- Returns:
- - a
UserResponse
object, or null if not found
-
suggest
public UserListResponse suggest(UserSearchBean searchBean, int from, int size)
Description copied from interface:UserDataWebService
Call 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:
suggest
in interfaceUserDataWebService
- Parameters:
searchBean
- -UserSearchBean
from
- - where to start pagingsize
- - how many results to return- Returns:
- a
UserListResponse
of matched User objects
-
count
public int count(UserSearchBean userSearchBean)
- Specified by:
count
in interfaceUserDataWebService
-
deleteUser
public Response deleteUser(String userId)
Description copied from interface:UserDataWebService
Deletes a user from the database by user id- Specified by:
deleteUser
in 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:UserDataWebService
Sets the Secondary Status of the User- Specified by:
setSecondaryStatus
in 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:UserDataWebService
Gets the number of Emails for this user- Specified by:
getNumOfEmailsForUser
in interfaceUserDataWebService
- Parameters:
userId
- - the User ID- Returns:
- the number of Emails for this user
-
getNumOfAddressesForUser
public int getNumOfAddressesForUser(String userId)
Description copied from interface:UserDataWebService
Gets the number of Addresses for this user- Specified by:
getNumOfAddressesForUser
in interfaceUserDataWebService
- Parameters:
userId
- - the User ID- Returns:
- the number of Addresses for this user
-
getNumOfPhonesForUser
public int getNumOfPhonesForUser(String userId)
Description copied from interface:UserDataWebService
Gets the number of Phones for this User- Specified by:
getNumOfPhonesForUser
in 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:UserDataWebService
Gets list ofUserAttribute
associated with this User- Specified by:
getUserAttributes
in interfaceUserDataWebService
- Parameters:
userId
- - the id of this User- Returns:
- a List of
UserAttribute
associated with this user
-
saveUserProfile
public SaveTemplateProfileResponse saveUserProfile(UserProfileRequestModel request)
Description copied from interface:UserDataWebService
Saves a User Profile- Specified by:
saveUserProfile
in 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:UserDataWebService
Returns Profile picture by it's ID- Specified by:
getProfilePictureById
in interfaceUserDataWebService
- Returns:
-
getProfilePictureByUserId
public ProfilePicture getProfilePictureByUserId(String userId)
Description copied from interface:UserDataWebService
Returns Profile picture for User by his ID- Specified by:
getProfilePictureByUserId
in interfaceUserDataWebService
- Returns:
-
saveProfilePicture
public Response saveProfilePicture(ProfilePicture pic)
Description copied from interface:UserDataWebService
Saves Profile picture- Specified by:
saveProfilePicture
in interfaceUserDataWebService
- Returns:
-
deleteProfilePictureById
public Response deleteProfilePictureById(String picId)
Description copied from interface:UserDataWebService
Deletes Profile picture by it's ID- Specified by:
deleteProfilePictureById
in interfaceUserDataWebService
- Returns:
-
deleteProfilePictureByUserId
public Response deleteProfilePictureByUserId(String userId)
Description copied from interface:UserDataWebService
Deletes Profile picture for User by his ID- Specified by:
deleteProfilePictureByUserId
in interfaceUserDataWebService
- Returns:
-
acceptITPolicy
@Deprecated(since="4.2.2") public Response acceptITPolicy(String userId)
Deprecated.Description copied from interface:UserDataWebService
Accept an IT policy- Specified by:
acceptITPolicy
in 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:UserDataWebService
Validate user search request according to Delegation filter.- Specified by:
validateUserSearchRequest
in 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:UserDataWebService
Retrieves list of users that have last date before given last date.- Specified by:
getUserByLastDate
in 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:UserDataWebService
Retrieves list of users that has create date between form date and to date.- Specified by:
getUserBetweenCreateDate
in 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:UserDataWebService
Retrieves list of users whose startDate is between from date and to date.- Specified by:
getUserBetweenStartDate
in 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:UserDataWebService
This method does search by lastDate- Specified by:
getUserBetweenLastDate
in 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:UserDataWebService
returns a paged List of all Supervisors in the system- Specified by:
getAllSuperiors
in 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:UserDataWebService
Get the Number of all supervisors in the system- Specified by:
getAllSuperiorsCount
in 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:UserDataWebService
Gets a paged List of EmailAddress records associated with a User- Specified by:
findEmailBeans
in 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:UserDataWebService
Validate that a phone is valid.- Specified by:
validatePhone
in interfaceUserDataWebService
- Returns:
- a Response Object, containing the result of this operation
-
findSupervisors
public List<Supervisor> findSupervisors(SupervisorSearchBean supervisorSearchBean)
Description copied from interface:UserDataWebService
Call to find supervisors by various criteria- Specified by:
findSupervisors
in interfaceUserDataWebService
- Returns:
- a List Supervisor objects
-
getLastIndexDateTime
public Date getLastIndexDateTime(String id)
Description copied from interface:UserDataWebService
Checks if user with given id is indexed.- Specified by:
getLastIndexDateTime
in 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:UserDataWebService
Saves ProvisionUser.- Specified by:
saveProvisionUser
in interfaceUserDataWebService
- Parameters:
provisionUser
- Provision user which will be saved.- Returns:
- ProvisionUserResponse.
-
saveProvisionTemplateUser
public ProvisionUserResponse saveProvisionTemplateUser(UserRequestModel userRequestModel, UserCollection[] dependants)
Description copied from interface:UserDataWebService
Save provision user formed by templated Edit User page.- Specified by:
saveProvisionTemplateUser
in interfaceUserDataWebService
- Returns:
-
reindexUser
public Response reindexUser(String id)
Description copied from interface:UserDataWebService
Reindexes a user- Specified by:
reindexUser
in interfaceUserDataWebService
-
getApproverInfoByIds
public List<ApproverInfoBean> getApproverInfoByIds(Set<String> userIds)
- Specified by:
getApproverInfoByIds
in interfaceUserDataWebService
-
saveAlternateContact
public Response saveAlternateContact(AlternateContactModel alternateContactModel)
- Specified by:
saveAlternateContact
in interfaceUserDataWebService
-
getHelpDeskQuestionsResponse
public HelpDeskQuestionsResponse getHelpDeskQuestionsResponse(HelpdeskQuestionsRequest request)
- Specified by:
getHelpDeskQuestionsResponse
in interfaceUserDataWebService
-
saveSecretWord
public Response saveSecretWord(String userId, String word)
- Specified by:
saveSecretWord
in interfaceUserDataWebService
-
resetSecretWord
public Response resetSecretWord(String userId)
- Specified by:
resetSecretWord
in interfaceUserDataWebService
-
notifyAboutEmailDuplication
public void notifyAboutEmailDuplication(String requestId, Set<String> emailAddresses)
- Specified by:
notifyAboutEmailDuplication
in interfaceUserDataWebService
-
getPossibleAttributeNames
public List<String> getPossibleAttributeNames()
Method is used to return unique list of all possible attribute names- Specified by:
getPossibleAttributeNames
in interfaceUserDataWebService
- Returns:
ArrayList
ofString
-
getAllUserAttributeValues
public List<String> getAllUserAttributeValues(String attributeName)
Method is used to return list of all values of attribute selected by name- Specified by:
getAllUserAttributeValues
in interfaceUserDataWebService
- Returns:
ArrayList
ofString
-
isUserHasPicture
public BooleanResponse isUserHasPicture(String userId)
Description copied from interface:UserDataWebService
Method is used to define, does user has uploaded image or not.- Specified by:
isUserHasPicture
in interfaceUserDataWebService
- Parameters:
userId
- - id for current user, nullable- Returns:
- - return
BooleanResponse
with 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:UserDataWebService
Method is used to return list of orphans by search bean filters- Specified by:
findOrphans
in interfaceUserDataWebService
- Returns:
ArrayList
ofString
-
deleteOrphans
public Response deleteOrphans(List<Orphan> orphans, boolean deleteFromTarget)
Description copied from interface:UserDataWebService
Method is used to delete list of orphans- Specified by:
deleteOrphans
in interfaceUserDataWebService
deleteFromTarget
- if true then delete object from source managed system- Returns:
Response
-
linkOrphans
public Response linkOrphans(List<Orphan> orphans)
Description copied from interface:UserDataWebService
Method is used to link user to selected list of orphans- Specified by:
linkOrphans
in interfaceUserDataWebService
- Returns:
Response
-
moveLoginToOrphan
public Response moveLoginToOrphan(String loginId)
Description copied from interface:UserDataWebService
Method is used to move selected user login to orphan- Specified by:
moveLoginToOrphan
in interfaceUserDataWebService
- Returns:
-
getActiveUserSessions
public List<AuthStateInfoModel> getActiveUserSessions(ActiveSessionRequest request, int from, int size)
- Specified by:
getActiveUserSessions
in interfaceUserDataWebService
-
getActiveUserSessionCount
public int getActiveUserSessionCount(ActiveSessionRequest request, int from, int size)
Description copied from interface:UserDataWebService
Method is used to get a count of user's active sessions.- Specified by:
getActiveUserSessionCount
in interfaceUserDataWebService
- Returns:
-
addResourceToUsers
public Response addResourceToUsers(String resourceId, Set<String> rightIds, Set<String> userIds)
Description copied from interface:UserDataWebService
This method is written only for testing purposes. Call this only from tests- Specified by:
addResourceToUsers
in interfaceUserDataWebService
- Returns:
-
approveAuthParam
public ApproveAuthParamResponse approveAuthParam(String token)
- Specified by:
approveAuthParam
in interfaceUserDataWebService
- Returns:
-
getUserAuthParams
public List<UserAuthParam> getUserAuthParams(String userId)
- Specified by:
getUserAuthParams
in interfaceUserDataWebService
- Returns:
-
findUsersByApplications
public UserListResponse findUsersByApplications(AccessCertificationSearchBean searchBean, int from, int size)
- Specified by:
findUsersByApplications
in interfaceUserDataWebService
-
getUserMdTypeId
public String getUserMdTypeId(String userId)
Description copied from interface:UserDataWebService
Method is used to return user metadata type ID.- Specified by:
getUserMdTypeId
in interfaceUserDataWebService
- Returns:
-
provisionMembershipOnStartDate
public Response provisionMembershipOnStartDate(Date fromDate, Date toDate)
Description copied from interface:UserDataWebService
method to provision based on the specified start date range of entitlements.- Specified by:
provisionMembershipOnStartDate
in 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:UserDataWebService
method to deprovision based on the specified start date range of entitlements.- Specified by:
deProvisionMembershipOnEndDate
in 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:
submitITPolicy
in interfaceUserDataWebService
-
findUserITPolicyHistory
public UserITPolicyHistoryListResponse findUserITPolicyHistory(UserITPolicyHistorySearchBean searchBean, int from, int size)
- Specified by:
findUserITPolicyHistory
in interfaceUserDataWebService
-
getTerminatedUserListForReport
public TerminatedUserListResponse getTerminatedUserListForReport(Set<String> targetUsers, Date fromDate, Date toDate)
- Specified by:
getTerminatedUserListForReport
in 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:
fetchUsersFromCSVFile
in 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:
userTypeConversion
in interfaceUserDataWebService
- Parameters:
conversionModel
- The UserTypeConversionModel containing information for the user type conversion.- Returns:
- A Response representing the result of the user type change operation.
-
-