public class LensContext<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> extends Object implements ModelContext<F>
INDENT_STRING
Modifier | Constructor and Description |
---|---|
|
LensContext(Class<F> focusClass,
PrismContext prismContext,
ProvisioningService provisioningService) |
protected |
LensContext(PrismContext prismContext) |
Modifier and Type | Method and Description |
---|---|
void |
addConflictingProjectionContext(LensProjectionContext conflictingContext) |
void |
addProjectionContext(LensProjectionContext projectionContext) |
void |
adopt(PrismContext prismContext) |
void |
checkAbortRequested() |
void |
checkConsistence() |
void |
checkEncrypted() |
void |
cleanup()
Cleans up the contexts by removing some of the working state.
|
void |
clearConflictingProjectionContexts() |
LensContext<F> |
clone() |
protected void |
copyValues(LensContext<F> clone) |
LensFocusContext<F> |
createFocusContext() |
LensFocusContext<F> |
createFocusContext(Class<F> explicitFocusClass) |
LensProjectionContext |
createProjectionContext() |
LensProjectionContext |
createProjectionContext(ResourceShadowDiscriminator rat) |
String |
debugDump()
Show the content of the object intended for diagnostics by system administrator.
|
String |
debugDump(int indent) |
String |
debugDump(int indent,
boolean showTriples) |
void |
distributeResource() |
String |
dump(boolean showTriples) |
LensProjectionContext |
findOrCreateProjectionContext(ResourceShadowDiscriminator rat) |
LensProjectionContext |
findProjectionContext(ResourceShadowDiscriminator rat) |
LensProjectionContext |
findProjectionContext(ResourceShadowDiscriminator rat,
String oid) |
LensProjectionContext |
findProjectionContextByOid(String oid) |
protected void |
fixProvisioningTypeInDelta(ObjectDelta delta,
OperationResult result) |
static LensContext |
fromLensContextType(com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType lensContextType,
PrismContext prismContext,
ProvisioningService provisioningService,
OperationResult parentResult) |
com.evolveum.midpoint.xml.ns._public.common.common_3.ProjectionPolicyType |
getAccountSynchronizationSettings() |
Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> |
getAllChanges()
Returns all changes, user and all accounts.
|
String |
getChannel() |
List<LensProjectionContext> |
getConflictingProjectionContexts() |
LensDebugListener |
getDebugListener() |
com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType |
getEffectivePasswordPolicy() |
DeltaSetTriple<EvaluatedAssignmentImpl> |
getEvaluatedAssignmentTriple() |
Collection<ObjectDeltaOperation<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> |
getExecutedDeltas()
Returns all executed deltas, user and all accounts.
|
int |
getExecutionWave() |
Class<F> |
getFocusClass() |
LensFocusContext<F> |
getFocusContext() |
com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectTemplateType |
getFocusTemplate() |
com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType |
getGlobalPasswordPolicy() |
Collection<ResourceShadowDiscriminator> |
getHistoricResourceObjects() |
int |
getMaxWave() |
protected PrismContext |
getNotNullPrismContext() |
ModelExecuteOptions |
getOptions() |
LensFocusContext<F> |
getOrCreateFocusContext() |
LensFocusContext<F> |
getOrCreateFocusContext(Class<F> explicitFocusClass) |
Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> |
getPrimaryChanges() |
PrismContext |
getPrismContext() |
Collection<ProgressListener> |
getProgressListeners() |
Collection<LensProjectionContext> |
getProjectionContexts() |
Iterator<LensProjectionContext> |
getProjectionContextsIterator() |
int |
getProjectionWave() |
ProvisioningService |
getProvisioningService() |
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType |
getResource(ResourceShadowDiscriminator rat)
Returns a resource for specified account type.
|
com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType |
getResource(String resourceOid)
Returns a resource for specified account type.
|
List<LensObjectDeltaOperation<?>> |
getRottenExecutedDeltas() |
Long |
getSequenceCounter(String sequenceOid) |
Map<String,Long> |
getSequences() |
ModelState |
getState() |
com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextStatsType |
getStats() |
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> |
getSystemConfiguration() |
String |
getTriggeredResourceOid() |
Collection<ObjectDeltaOperation<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> |
getUnauditedExecutedDeltas()
Returns all executed deltas, user and all accounts.
|
boolean |
hasAnyPrimaryChange() |
void |
incrementExecutionWave() |
void |
incrementProjectionWave() |
boolean |
isAbortRequested() |
boolean |
isDoReconciliationForAllProjections() |
boolean |
isExecutionAudited() |
boolean |
isFresh() |
boolean |
isLazyAuditRequest()
If set to true then the request will be audited right before execution.
|
boolean |
isRequestAudited() |
boolean |
isRequestAuthorized() |
void |
markExecutedDeltasAudited() |
void |
normalize() |
void |
recompute() |
void |
recomputeFocus() |
void |
recomputeProjections() |
void |
refreshAuxiliaryObjectClassDefinitions() |
void |
rememberResource(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType)
Puts resource in the cache for later use.
|
void |
rememberResources(Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resources)
Puts resources in the cache for later use.
|
void |
replacePrimaryFocusDelta(ObjectDelta<F> newDelta) |
void |
replacePrimaryFocusDeltas(List<ObjectDelta<F>> deltas) |
void |
reportProgress(ProgressInformation progress) |
void |
resetProjectionWave() |
void |
rot()
Makes the context and all sub-context non-fresh.
|
void |
setAccountSynchronizationSettings(com.evolveum.midpoint.xml.ns._public.common.common_3.ProjectionPolicyType accountSynchronizationSettings) |
void |
setChannel(QName channelQName) |
void |
setChannel(String channelUri) |
void |
setDebugListener(LensDebugListener debugListener) |
void |
setDoReconciliationForAllProjections(boolean doReconciliationForAllProjections) |
void |
setEvaluatedAssignmentTriple(DeltaSetTriple<EvaluatedAssignmentImpl> evaluatedAssignmentTriple) |
void |
setExecutionAudited(boolean executionAudited) |
void |
setExecutionWave(int executionWave) |
void |
setFocusContext(LensFocusContext<F> focusContext) |
void |
setFocusTemplate(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectTemplateType focusTemplate) |
void |
setFresh(boolean isFresh) |
void |
setGlobalPasswordPolicy(com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType globalPasswordPolicy) |
void |
setLazyAuditRequest(boolean lazyAuditRequest) |
void |
setOptions(ModelExecuteOptions options) |
void |
setProgressListeners(Collection<ProgressListener> progressListeners) |
void |
setProjectionWave(int wave) |
void |
setRequestAudited(boolean requestAudited) |
void |
setRequestAuthorized(boolean isRequestAuthorized) |
void |
setSequenceCounter(String sequenceOid,
long counter) |
void |
setState(ModelState state) |
void |
setStats(com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextStatsType stats) |
void |
setSystemConfiguration(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> systemConfiguration) |
void |
setTriggeredResource(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType triggeredResource) |
void |
setTriggeredResource(String triggeredResourceOid) |
com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType |
toLensContextType() |
PrismContainer<com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType> |
toPrismContainer() |
String |
toString() |
public LensContext(Class<F> focusClass, PrismContext prismContext, ProvisioningService provisioningService)
protected LensContext(PrismContext prismContext)
public PrismContext getPrismContext()
getPrismContext
in interface ModelContext<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
protected PrismContext getNotNullPrismContext()
public ProvisioningService getProvisioningService()
public void setTriggeredResource(String triggeredResourceOid)
public void setTriggeredResource(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType triggeredResource)
public String getTriggeredResourceOid()
public ModelState getState()
getState
in interface ModelContext<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public void setState(ModelState state)
public LensFocusContext<F> getFocusContext()
getFocusContext
in interface ModelContext<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public void setFocusContext(LensFocusContext<F> focusContext)
public LensFocusContext<F> createFocusContext()
public LensFocusContext<F> createFocusContext(Class<F> explicitFocusClass)
public LensFocusContext<F> getOrCreateFocusContext()
public LensFocusContext<F> getOrCreateFocusContext(Class<F> explicitFocusClass)
public Collection<LensProjectionContext> getProjectionContexts()
getProjectionContexts
in interface ModelContext<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public Iterator<LensProjectionContext> getProjectionContextsIterator()
public void addProjectionContext(LensProjectionContext projectionContext)
public LensProjectionContext findProjectionContextByOid(String oid)
public LensProjectionContext findProjectionContext(ResourceShadowDiscriminator rat)
findProjectionContext
in interface ModelContext<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public LensProjectionContext findOrCreateProjectionContext(ResourceShadowDiscriminator rat)
public com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectTemplateType getFocusTemplate()
public void setFocusTemplate(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectTemplateType focusTemplate)
public LensProjectionContext findProjectionContext(ResourceShadowDiscriminator rat, String oid)
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> getSystemConfiguration()
getSystemConfiguration
in interface ModelContext<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public void setSystemConfiguration(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> systemConfiguration)
public com.evolveum.midpoint.xml.ns._public.common.common_3.ProjectionPolicyType getAccountSynchronizationSettings()
public void setAccountSynchronizationSettings(com.evolveum.midpoint.xml.ns._public.common.common_3.ProjectionPolicyType accountSynchronizationSettings)
public com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType getGlobalPasswordPolicy()
public void setGlobalPasswordPolicy(com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType globalPasswordPolicy)
public int getProjectionWave()
public void setProjectionWave(int wave)
public void incrementProjectionWave()
public void resetProjectionWave()
public int getExecutionWave()
public void setExecutionWave(int executionWave)
public void incrementExecutionWave()
public int getMaxWave()
public boolean isFresh()
public void setFresh(boolean isFresh)
public boolean isRequestAuthorized()
public void setRequestAuthorized(boolean isRequestAuthorized)
public void rot()
public String getChannel()
getChannel
in interface ModelContext<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public void setChannel(String channelUri)
public void setChannel(QName channelQName)
public boolean isDoReconciliationForAllProjections()
public void setDoReconciliationForAllProjections(boolean doReconciliationForAllProjections)
public DeltaSetTriple<EvaluatedAssignmentImpl> getEvaluatedAssignmentTriple()
getEvaluatedAssignmentTriple
in interface ModelContext<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public void setEvaluatedAssignmentTriple(DeltaSetTriple<EvaluatedAssignmentImpl> evaluatedAssignmentTriple)
public ModelExecuteOptions getOptions()
public void setOptions(ModelExecuteOptions options)
public LensDebugListener getDebugListener()
public void setDebugListener(LensDebugListener debugListener)
public boolean isLazyAuditRequest()
public void setLazyAuditRequest(boolean lazyAuditRequest)
public boolean isRequestAudited()
public void setRequestAudited(boolean requestAudited)
public boolean isExecutionAudited()
public void setExecutionAudited(boolean executionAudited)
public com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextStatsType getStats()
public void setStats(com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextStatsType stats)
public Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> getAllChanges() throws SchemaException
SchemaException
public boolean hasAnyPrimaryChange() throws SchemaException
SchemaException
public Collection<ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> getPrimaryChanges() throws SchemaException
SchemaException
public void replacePrimaryFocusDelta(ObjectDelta<F> newDelta)
public void replacePrimaryFocusDeltas(List<ObjectDelta<F>> deltas) throws SchemaException
SchemaException
public Collection<ObjectDeltaOperation<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> getExecutedDeltas() throws SchemaException
SchemaException
public Collection<ObjectDeltaOperation<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>> getUnauditedExecutedDeltas() throws SchemaException
SchemaException
public void markExecutedDeltasAudited()
public List<LensObjectDeltaOperation<?>> getRottenExecutedDeltas()
public void recompute() throws SchemaException
SchemaException
public void recomputeFocus() throws SchemaException
SchemaException
public void recomputeProjections() throws SchemaException
SchemaException
public void refreshAuxiliaryObjectClassDefinitions() throws SchemaException
SchemaException
public void checkAbortRequested()
public void checkConsistence()
public void checkEncrypted()
public LensProjectionContext createProjectionContext()
public LensProjectionContext createProjectionContext(ResourceShadowDiscriminator rat)
public com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType getResource(ResourceShadowDiscriminator rat)
SyncContext#rememberResource(ResourceType)
public com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType getResource(String resourceOid)
SyncContext#rememberResource(ResourceType)
public void rememberResources(Collection<com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType> resources)
public void rememberResource(com.evolveum.midpoint.xml.ns._public.common.common_3.ResourceType resourceType)
public void cleanup() throws SchemaException
SchemaException
public void adopt(PrismContext prismContext) throws SchemaException
SchemaException
public void normalize()
public LensContext<F> clone()
protected void copyValues(LensContext<F> clone)
public void distributeResource()
public Class<F> getFocusClass()
getFocusClass
in interface ModelContext<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public String dump(boolean showTriples)
public String debugDump(int indent)
debugDump
in interface DebugDumpable
public String debugDump(int indent, boolean showTriples)
public com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType toLensContextType() throws SchemaException
SchemaException
public PrismContainer<com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType> toPrismContainer() throws SchemaException
SchemaException
public static LensContext fromLensContextType(com.evolveum.midpoint.xml.ns._public.common.common_3.LensContextType lensContextType, PrismContext prismContext, ProvisioningService provisioningService, OperationResult parentResult) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
protected void fixProvisioningTypeInDelta(ObjectDelta delta, OperationResult result) throws SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationException
public com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType getEffectivePasswordPolicy()
public void setProgressListeners(Collection<ProgressListener> progressListeners)
public Collection<ProgressListener> getProgressListeners()
public void reportProgress(ProgressInformation progress)
reportProgress
in interface ModelContext<F extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType>
public boolean isAbortRequested()
public Collection<ResourceShadowDiscriminator> getHistoricResourceObjects()
public void setSequenceCounter(String sequenceOid, long counter)
public List<LensProjectionContext> getConflictingProjectionContexts()
public void addConflictingProjectionContext(LensProjectionContext conflictingContext)
public void clearConflictingProjectionContexts()
Copyright © 2016 evolveum. All rights reserved.