public interface CertificationManager
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(com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationDefinitionType certificationDefinition,
com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType campaign,
Task task,
OperationResult parentResult)
Creates a certification campaign.
|
com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCasesStatisticsType |
getCampaignStatistics(String campaignOid,
boolean currentStageOnly,
Task task,
OperationResult parentResult) |
void |
openNextStage(String campaignOid,
int stageNumber,
Task task,
OperationResult parentResult)
Opens the next 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.
|
void |
registerCertificationEventListener(AccessCertificationEventListener listener) |
List<com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCaseType> |
searchCases(String campaignOid,
ObjectQuery query,
Collection<SelectorOptions<GetOperationOptions>> options,
Task task,
OperationResult parentResult)
Returns a set of certification cases that match a given query.
|
List<com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCaseType> |
searchDecisions(ObjectQuery campaignQuery,
ObjectQuery caseQuery,
String reviewerOid,
boolean notDecidedOnly,
Collection<SelectorOptions<GetOperationOptions>> options,
Task task,
OperationResult parentResult)
Returns a set of certification decisions that match a given query.
|
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(com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationDefinitionType certificationDefinition, com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType campaign, Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ConfigurationException, ObjectNotFoundException, CommunicationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PolicyViolationException
certificationDefinition
- Certification definition for this campaign.campaign
- Specific values for this campaign (optional).
It must not be persistent, i.e. its OID must not be set.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
campaign
- Certification campaign. If its definition reference is already resolved, it will be used.
Otherwise, the implementation will resolve the definition by itself.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
campaign
- Certification campaign. If its definition reference is already resolved, it will be used.
Otherwise, the implementation will resolve the definition by itself.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
campaign
- task
- result
- ObjectNotFoundException
SchemaException
CommunicationException
ConfigurationException
SecurityViolationException
ObjectAlreadyExistsException
void closeCampaign(String campaignOid, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectAlreadyExistsException
campaign
- task
- result
- ObjectNotFoundException
SchemaException
CommunicationException
ConfigurationException
SecurityViolationException
ObjectAlreadyExistsException
List<com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCaseType> searchCases(String campaignOid, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationException
campaignOid
- OID of the campaign to query.query
- Specification of the cases to retrieve.options
- Options to use (currently supported is RESOLVE_NAMES).task
- Task in context of which all operations will take place.parentResult
- Result for the operations.ObjectNotFoundException
SchemaException
SecurityViolationException
ConfigurationException
CommunicationException
List<com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCaseType> searchDecisions(ObjectQuery campaignQuery, ObjectQuery caseQuery, String reviewerOid, boolean notDecidedOnly, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, SecurityViolationException, ConfigurationException, CommunicationException
campaignQuery
- Specification of campaigns to query.caseQuery
- Specification of the cases to retrieve.reviewerOid
- OID of the reviewer whose decisions we want to retrieve.notDecidedOnly
- If true, only response==(NO_DECISION or null) should be returned.
It is currently not possible to formulate this using Query API
(we don't know the ID of the decision element to refer to).options
- Options to use (currently supported is 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
void registerCertificationEventListener(AccessCertificationEventListener listener)
Copyright © 2015 evolveum. All rights reserved.