@Service(value="certificationManager") public class CertificationManagerImpl extends Object implements CertificationManager
Modifier and Type | Field and Description |
---|---|
protected AccCertCaseOperationsHelper |
caseHelper |
protected AccCertResponseComputationHelper |
computationHelper |
protected AccCertEventHelper |
eventHelper |
protected AccCertGeneralHelper |
generalHelper |
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_DECISIONS |
protected AccCertQueryHelper |
queryHelper |
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(String definitionOid,
Task task,
OperationResult parentResult)
Creates a certification campaign: creates AccessCertificationCampaignType object, based on
general information in certification definition.
|
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)
Provides statistical information about outcomes of cases in a given campaign.
|
void |
openNextStage(String campaignOid,
int requestedStageNumber,
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.
|
void |
registerCertificationEventListener(AccessCertificationEventListener listener) |
void |
registerHandler(String handlerUri,
CertificationHandler handler) |
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 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_DECISIONS
public static final String OPERATION_CLOSE_CAMPAIGN
public static final String OPERATION_GET_CAMPAIGN_STATISTICS
@Autowired protected SecurityEnforcer securityEnforcer
@Autowired protected AccCertGeneralHelper generalHelper
@Autowired protected AccCertEventHelper eventHelper
@Autowired protected AccCertResponseComputationHelper computationHelper
@Autowired protected AccCertQueryHelper queryHelper
@Autowired protected AccCertUpdateHelper updateHelper
@Autowired protected AccCertCaseOperationsHelper caseHelper
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(String definitionOid, Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ObjectNotFoundException, ObjectAlreadyExistsException
CertificationManager
createCampaign
in interface CertificationManager
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
ObjectNotFoundException
ObjectAlreadyExistsException
public void openNextStage(String campaignOid, int requestedStageNumber, Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ObjectNotFoundException, ObjectAlreadyExistsException
CertificationManager
openNextStage
in interface CertificationManager
campaignOid
- Certification campaign OID.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
ObjectNotFoundException
ObjectAlreadyExistsException
public void closeCurrentStage(String campaignOid, int stageNumberToClose, Task task, OperationResult parentResult) throws SchemaException, SecurityViolationException, ObjectNotFoundException, ObjectAlreadyExistsException
CertificationManager
closeCurrentStage
in interface CertificationManager
campaignOid
- Certification campaign OID.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
ObjectNotFoundException
ObjectAlreadyExistsException
public void startRemediation(String campaignOid, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, SecurityViolationException, ObjectAlreadyExistsException
CertificationManager
startRemediation
in interface CertificationManager
ObjectNotFoundException
SchemaException
SecurityViolationException
ObjectAlreadyExistsException
public 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
CertificationManager
searchDecisionsToReview
in interface CertificationManager
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
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, 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
ObjectAlreadyExistsException
public void closeCampaign(String campaignOid, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, SecurityViolationException, ObjectAlreadyExistsException
CertificationManager
closeCampaign
in interface CertificationManager
ObjectNotFoundException
SchemaException
SecurityViolationException
ObjectAlreadyExistsException
public com.evolveum.midpoint.xml.ns._public.common.common_3.AccessCertificationCasesStatisticsType getCampaignStatistics(String campaignOid, boolean currentStageOnly, Task task, OperationResult parentResult) throws ObjectNotFoundException, SchemaException, SecurityViolationException, ObjectAlreadyExistsException
CertificationManager
getCampaignStatistics
in interface CertificationManager
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
ObjectAlreadyExistsException
public void registerCertificationEventListener(AccessCertificationEventListener listener)
registerCertificationEventListener
in interface CertificationManager
Copyright © 2016 evolveum. All rights reserved.