Interface ActivitiTerminationService
-
- All Known Implementing Classes:
ActivitiTerminationServiceImpl
public interface ActivitiTerminationServiceInterface to handle requests related to terminations and end user's access cases
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandoesUserHaveAccessToRevocation(String requesterId, String userId)ResponseinitiateManualTaskForTermination(RevokeAccessRequestModel request)if user got terminated then activiti service will check if he has any access to manual systems, if so then task will be generated for admin of manual resource to terminate user manually.ResponserevokeAccess(RevokeAccessRequestModel request)Revoke access.ResponseterminateUser(TerminateUserRequestModel request)
-
-
-
Method Detail
-
initiateManualTaskForTermination
Response initiateManualTaskForTermination(RevokeAccessRequestModel request) throws BasicDataServiceException
if user got terminated then activiti service will check if he has any access to manual systems, if so then task will be generated for admin of manual resource to terminate user manually.- Parameters:
request-- Returns:
- Throws:
BasicDataServiceException
-
revokeAccess
Response revokeAccess(RevokeAccessRequestModel request) throws BasicDataServiceException
Revoke access. If requestor is not employee, employee's supervisor or managed system owner it returns error code ACCESS_DENIED. If user is not found it returns error code USER_NOT_FOUND.- Parameters:
request- contains info about resource type (ROLE, GROUP, RESOURCE, ORGANIZATION) and id, requestor id, employee id, managed system id- Returns:
- regular
objectwith status and error code. - Throws:
BasicDataServiceException
-
doesUserHaveAccessToRevocation
boolean doesUserHaveAccessToRevocation(String requesterId, String userId)
-
terminateUser
Response terminateUser(TerminateUserRequestModel request) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
-