public interface AccessCertificationService
| Modifier and Type | Method and Description |
|---|---|
void |
closeCampaign(String campaignOid,
com.evolveum.midpoint.task.api.Task task,
OperationResult result)
Closes a campaign.
|
void |
closeCurrentStage(String campaignOid,
int stageNumber,
com.evolveum.midpoint.task.api.Task task,
OperationResult parentResult)
Opens the next stage in the certification campaign.
|
AccessCertificationCampaignType |
createCampaign(String definitionOid,
com.evolveum.midpoint.task.api.Task task,
OperationResult parentResult)
Creates a certification campaign: creates AccessCertificationCampaignType object, based on
general information in certification definition.
|
AccessCertificationCasesStatisticsType |
getCampaignStatistics(String campaignOid,
boolean currentStageOnly,
com.evolveum.midpoint.task.api.Task task,
OperationResult parentResult)
Provides statistical information about outcomes of cases in a given campaign.
|
void |
openNextStage(String campaignOid,
int stageNumber,
com.evolveum.midpoint.task.api.Task task,
OperationResult parentResult)
Opens the next review stage in the certification campaign.
|
void |
recordDecision(String campaignOid,
long caseId,
AccessCertificationDecisionType decision,
com.evolveum.midpoint.task.api.Task task,
OperationResult parentResult)
Records a particular decision of a reviewer.
|
List<AccessCertificationCaseType> |
searchDecisionsToReview(com.evolveum.midpoint.prism.query.ObjectQuery caseQuery,
boolean notDecidedOnly,
Collection<SelectorOptions<GetOperationOptions>> options,
com.evolveum.midpoint.task.api.Task task,
OperationResult parentResult)
Returns a set of certification decisions for currently logged-in user.
|
void |
startRemediation(String campaignOid,
com.evolveum.midpoint.task.api.Task task,
OperationResult result)
Starts the remediation phase for the campaign.
|
AccessCertificationCampaignType createCampaign(String definitionOid, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ConfigurationException, ObjectNotFoundException, CommunicationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PolicyViolationException
definitionOid - OID of certification definition for this campaign.task - Task in context of which all operations will take place.parentResult - Result for the operations.SchemaExceptionSecurityViolationExceptionConfigurationExceptionObjectNotFoundExceptionCommunicationExceptionExpressionEvaluationExceptionObjectAlreadyExistsExceptionPolicyViolationExceptionvoid openNextStage(String campaignOid, int stageNumber, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ConfigurationException, ObjectNotFoundException, CommunicationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PolicyViolationException
campaignOid - Certification campaign OID.stageNumber - Stage that has to be open. This has to be the stage after the current one (or the first one).task - Task in context of which all operations will take place.parentResult - Result for the operations.SchemaExceptionSecurityViolationExceptionConfigurationExceptionObjectNotFoundExceptionCommunicationExceptionExpressionEvaluationExceptionObjectAlreadyExistsExceptionPolicyViolationExceptionvoid closeCurrentStage(String campaignOid, int stageNumber, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ConfigurationException, ObjectNotFoundException, CommunicationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PolicyViolationException
campaignOid - Certification campaign OID.stageNumber - Stage that has to be closed. This has to be the current stage.task - Task in context of which all operations will take place.parentResult - Result for the operations.SchemaExceptionSecurityViolationExceptionConfigurationExceptionObjectNotFoundExceptionCommunicationExceptionExpressionEvaluationExceptionObjectAlreadyExistsExceptionPolicyViolationExceptionvoid startRemediation(String campaignOid, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectAlreadyExistsException
campaignOid - task - result - ObjectNotFoundExceptionSchemaExceptionCommunicationExceptionConfigurationExceptionSecurityViolationExceptionObjectAlreadyExistsExceptionvoid closeCampaign(String campaignOid, com.evolveum.midpoint.task.api.Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectAlreadyExistsException
campaignOid - task - result - ObjectNotFoundExceptionSchemaExceptionCommunicationExceptionConfigurationExceptionSecurityViolationExceptionObjectAlreadyExistsExceptionList<AccessCertificationCaseType> searchDecisionsToReview(com.evolveum.midpoint.prism.query.ObjectQuery caseQuery, boolean notDecidedOnly, Collection<SelectorOptions<GetOperationOptions>> options, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationException
caseQuery - Specification of the cases to retrieve.notDecidedOnly - If true, only response==(NO_DECISION or null) should be returned.
Although it can be formulated in Query API terms, this would refer to implementation details - so
the cleaner way is keep this knowledge inside certification module only.options - Options to use (e.g. RESOLVE_NAMES).task - Task in context of which all operations will take place.parentResult - Result for the operations.ObjectNotFoundExceptionSchemaExceptionSecurityViolationExceptionConfigurationExceptionCommunicationExceptionvoid recordDecision(String campaignOid, long caseId, AccessCertificationDecisionType decision, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationException, ObjectAlreadyExistsException
campaignOid - OID of the campaign to which the decision belongs.caseId - ID of the certification case to which the decision belongs.decision - The decision itself.task - Task in context of which all operations will take place.parentResult - Result for the operations.ObjectNotFoundExceptionSchemaExceptionSecurityViolationExceptionConfigurationExceptionCommunicationExceptionObjectAlreadyExistsExceptionAccessCertificationCasesStatisticsType getCampaignStatistics(String campaignOid, boolean currentStageOnly, com.evolveum.midpoint.task.api.Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationException, ObjectAlreadyExistsException
campaignOid - OID of the campaign to report oncurrentStageOnly - Whether to report on stage outcomes for current-stage cases (if true), or to report on overall outcomes of all cases (if false).task - Task in context of which all operations will take place.parentResult - Result for the operations.ObjectNotFoundExceptionSchemaExceptionSecurityViolationExceptionConfigurationExceptionCommunicationExceptionObjectAlreadyExistsExceptionCopyright © 2016 Evolveum. All rights reserved.