@Service(value="certificationManager") public class CertificationManagerImpl extends Object implements CertificationManager
Modifier and Type | Field and Description |
---|---|
protected AccCertResponseComputationHelper |
computationHelper |
protected AccCertEventHelper |
eventHelper |
protected AccCertGeneralHelper |
helper |
static String |
INTERFACE_DOT |
static String |
OPERATION_CLOSE_CAMPAIGN |
static String |
OPERATION_CLOSE_CURRENT_STAGE |
static String |
OPERATION_CREATE_CAMPAIGN |
static String |
OPERATION_GET_CAMPAIGN_STATISTICS |
static String |
OPERATION_OPEN_NEXT_STAGE |
static String |
OPERATION_RECORD_DECISION |
static String |
OPERATION_SEARCH_CASES |
static String |
OPERATION_SEARCH_DECISIONS |
protected AccCertQueryHelper |
queryHelper |
protected RepositoryService |
repositoryService |
protected SecurityEnforcer |
securityEnforcer |
protected AccCertUpdateHelper |
updateHelper |
Constructor and Description |
---|
CertificationManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
closeCampaign(String campaignOid,
Task task,
OperationResult parentResult)
Closes a campaign.
|
void |
closeCurrentStage(String campaignOid,
int stageNumberToClose,
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 certDefinition,
com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType campaign,
Task task,
OperationResult parentResult)
Creates a certification campaign.
|
CertificationHandler |
findCertificationHandler(com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType 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 requestedStageNumber,
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) |
void |
registerHandler(String handlerUri,
CertificationHandler handler) |
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 parentResult)
Starts the remediation phase for the campaign.
|
public static final String INTERFACE_DOT
public static final String OPERATION_CREATE_CAMPAIGN
public static final String OPERATION_OPEN_NEXT_STAGE
public static final String OPERATION_CLOSE_CURRENT_STAGE
public static final String OPERATION_RECORD_DECISION
public static final String OPERATION_SEARCH_CASES
public static final String OPERATION_SEARCH_DECISIONS
public static final String OPERATION_CLOSE_CAMPAIGN
public static final String OPERATION_GET_CAMPAIGN_STATISTICS
@Autowired protected SecurityEnforcer securityEnforcer
@Autowired protected AccCertGeneralHelper helper
@Autowired protected AccCertEventHelper eventHelper
@Autowired protected AccCertResponseComputationHelper computationHelper
@Autowired protected AccCertQueryHelper queryHelper
@Autowired protected AccCertUpdateHelper updateHelper
@Autowired @Qualifier(value="cacheRepositoryService") protected RepositoryService repositoryService
public void registerHandler(String handlerUri, CertificationHandler handler)
public CertificationHandler findCertificationHandler(com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType campaign)
public com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType createCampaign(com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationDefinitionType certDefinition, com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCampaignType campaign, Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ConfigurationException, ObjectNotFoundException, CommunicationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PolicyViolationException
CertificationManager
createCampaign
in interface CertificationManager
certDefinition
- 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
public void openNextStage(String campaignOid, int requestedStageNumber, Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ConfigurationException, ObjectNotFoundException, CommunicationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PolicyViolationException
CertificationManager
openNextStage
in interface CertificationManager
requestedStageNumber
- 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
public void closeCurrentStage(String campaignOid, int stageNumberToClose, Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ConfigurationException, ObjectNotFoundException, CommunicationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PolicyViolationException
CertificationManager
closeCurrentStage
in interface CertificationManager
stageNumberToClose
- 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
public void startRemediation(String campaignOid, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectAlreadyExistsException
CertificationManager
public 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
CertificationManager
searchCases
in interface CertificationManager
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
public 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
CertificationManager
searchDecisions
in interface CertificationManager
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
public 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
CertificationManager
recordDecision
in interface CertificationManager
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
public void closeCampaign(String campaignOid, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectAlreadyExistsException
CertificationManager
public 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
public void registerCertificationEventListener(AccessCertificationEventListener listener)
registerCertificationEventListener
in interface CertificationManager
Copyright © 2015 evolveum. All rights reserved.