@Service(value="reportManager") public class ReportManagerImpl extends Object implements ReportManager, ChangeHook, ReadHook
Constructor and Description |
---|
ReportManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
cleanupReports(com.evolveum.midpoint.xml.ns._public.common.common_3.CleanupPolicyType cleanupPolicy,
OperationResult parentResult)
todo comments [lazyman]
todo how to return progress
|
InputStream |
getReportOutputData(String reportOutputOid,
OperationResult parentResult)
todo comments [lazyman]
|
void |
init() |
HookOperationMode |
invoke(ModelContext context,
Task task,
OperationResult parentResult)
Transforms change:
1/ ReportOutputType DELETE to MODIFY some attribute to mark it for deletion.
|
<T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
invoke(PrismObject<T> object,
Collection<SelectorOptions<GetOperationOptions>> options,
Task task,
OperationResult parentResult)
todo
|
void |
invokeOnException(ModelContext context,
Throwable throwable,
Task task,
OperationResult result)
This method is invoked by the clockwork when an exception occurs.
|
void |
runReport(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ReportType> object,
PrismContainer<com.evolveum.midpoint.xml.ns._public.common.common_3.ReportParameterType> paramContainer,
Task task,
OperationResult parentResult)
Creates and starts task with proper handler, also adds necessary information to task
(like ReportType reference and so on).
|
public static final String HOOK_URI
@PostConstruct public void init()
public <T extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> void invoke(PrismObject<T> object, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult parentResult) throws SchemaException, ObjectNotFoundException, SecurityViolationException, CommunicationException, ConfigurationException
ReadHook
invoke
in interface ReadHook
SchemaException
ObjectNotFoundException
SecurityViolationException
CommunicationException
ConfigurationException
public void runReport(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.ReportType> object, PrismContainer<com.evolveum.midpoint.xml.ns._public.common.common_3.ReportParameterType> paramContainer, Task task, OperationResult parentResult)
runReport
in interface ReportManager
object
- task
- parentResult
- describes report which has to be createdpublic HookOperationMode invoke(ModelContext context, Task task, OperationResult parentResult)
invoke
in interface ChangeHook
context
- task
- result
- UnsupportedEncodingException
public void invokeOnException(ModelContext context, Throwable throwable, Task task, OperationResult result)
ChangeHook
invokeOnException
in interface ChangeHook
context
- actual model context at the point of processing the exceptionthrowable
- the exception itselftask
- actual task, in context of which the operation was carried outresult
- actual operation result - the handler should create a subresult here for its operation
This method has no return value, as it is not expected that the processing would continue in
the background. (This could change in the future.)public void cleanupReports(com.evolveum.midpoint.xml.ns._public.common.common_3.CleanupPolicyType cleanupPolicy, OperationResult parentResult)
ReportManager
cleanupReports
in interface ReportManager
public InputStream getReportOutputData(String reportOutputOid, OperationResult parentResult)
ReportManager
getReportOutputData
in interface ReportManager
Copyright © 2016 evolveum. All rights reserved.