public interface AccessCertificationService
Modifier and Type | Method and Description |
---|---|
void |
closeCampaign(String campaignOid,
Task task,
OperationResult result)
Closes a campaign.
|
void |
closeCurrentStage(String campaignOid,
int stageNumber,
Task task,
OperationResult parentResult)
Opens the next stage in the certification campaign.
|
com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType |
createCampaign(String definitionOid,
Task task,
OperationResult parentResult)
Creates a certification campaign: creates AccessCertificationCampaignType object, based on
general information in certification definition.
|
com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCasesStatisticsType |
getCampaignStatistics(String campaignOid,
boolean currentStageOnly,
Task task,
OperationResult parentResult)
Provides statistical information about outcomes of cases in a given campaign.
|
void |
openNextStage(String campaignOid,
int stageNumber,
Task task,
OperationResult parentResult)
Opens the next review stage in the certification campaign.
|
void |
recordDecision(String campaignOid,
long caseId,
com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationDecisionType decision,
Task task,
OperationResult parentResult)
Records a particular decision of a reviewer.
|
List<com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCaseType> |
searchDecisionsToReview(ObjectQuery caseQuery,
boolean notDecidedOnly,
Collection<SelectorOptions<GetOperationOptions>> options,
Task task,
OperationResult parentResult)
Returns a set of certification decisions for currently logged-in user.
|
void |
startRemediation(String campaignOid,
Task task,
OperationResult result)
Starts the remediation phase for the campaign.
|
com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType createCampaign(String definitionOid, 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.SchemaException
SecurityViolationException
ConfigurationException
ObjectNotFoundException
CommunicationException
ExpressionEvaluationException
ObjectAlreadyExistsException
PolicyViolationException
void openNextStage(String campaignOid, int stageNumber, 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.SchemaException
SecurityViolationException
ConfigurationException
ObjectNotFoundException
CommunicationException
ExpressionEvaluationException
ObjectAlreadyExistsException
PolicyViolationException
void closeCurrentStage(String campaignOid, int stageNumber, 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.SchemaException
SecurityViolationException
ConfigurationException
ObjectNotFoundException
CommunicationException
ExpressionEvaluationException
ObjectAlreadyExistsException
PolicyViolationException
void startRemediation(String campaignOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectAlreadyExistsException
campaignOid
- task
- result
- ObjectNotFoundException
SchemaException
CommunicationException
ConfigurationException
SecurityViolationException
ObjectAlreadyExistsException
void closeCampaign(String campaignOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectAlreadyExistsException
campaignOid
- task
- result
- ObjectNotFoundException
SchemaException
CommunicationException
ConfigurationException
SecurityViolationException
ObjectAlreadyExistsException
List<com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCaseType> searchDecisionsToReview(ObjectQuery caseQuery, boolean notDecidedOnly, Collection<SelectorOptions<GetOperationOptions>> options, 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.ObjectNotFoundException
SchemaException
SecurityViolationException
ConfigurationException
CommunicationException
void recordDecision(String campaignOid, long caseId, com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationDecisionType decision, 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.ObjectNotFoundException
SchemaException
SecurityViolationException
ConfigurationException
CommunicationException
ObjectAlreadyExistsException
com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCasesStatisticsType getCampaignStatistics(String campaignOid, boolean currentStageOnly, 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.ObjectNotFoundException
SchemaException
SecurityViolationException
ConfigurationException
CommunicationException
ObjectAlreadyExistsException
Copyright © 2016 evolveum. All rights reserved.