com.evolveum.midpoint.model
Class AccountSyncContext
java.lang.Object
com.evolveum.midpoint.model.AccountSyncContext
- All Implemented Interfaces:
- DebugDumpable, Dumpable
public class AccountSyncContext
- extends java.lang.Object
- implements Dumpable, DebugDumpable
Account synchronization context that is part of SyncContext. Synchronization context that is passed inside the model
as the change is processed through several stages.
This part of the context describes an account. The account belonged, belongs, should belong or will belong to the user
specified in SyncContext. The specific state of the account is defined by the fields of this context, especially the
policyDecision field.
- Author:
- Radovan Semancik
- See Also:
SyncContext
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getAccountSyncDelta
public ObjectDelta<AccountShadowType> getAccountSyncDelta()
setAccountSyncDelta
public void setAccountSyncDelta(ObjectDelta<AccountShadowType> accountSyncDelta)
isDoReconciliation
public boolean isDoReconciliation()
setDoReconciliation
public void setDoReconciliation(boolean doReconciliation)
getResourceAccountType
public ResourceAccountType getResourceAccountType()
getAccountOld
public MidPointObject<AccountShadowType> getAccountOld()
setAccountOld
public void setAccountOld(MidPointObject<AccountShadowType> accountOld)
getAccountNew
public MidPointObject<AccountShadowType> getAccountNew()
setAccountNew
public void setAccountNew(MidPointObject<AccountShadowType> accountNew)
getAccountPrimaryDelta
public ObjectDelta<AccountShadowType> getAccountPrimaryDelta()
setAccountPrimaryDelta
public void setAccountPrimaryDelta(ObjectDelta<AccountShadowType> accountPrimaryDelta)
getAccountSecondaryDelta
public ObjectDelta<AccountShadowType> getAccountSecondaryDelta()
setAccountSecondaryDelta
public void setAccountSecondaryDelta(ObjectDelta<AccountShadowType> accountSecondaryDelta)
addToSecondaryDelta
public void addToSecondaryDelta(PropertyDelta accountPasswordDelta)
getAccountDelta
public ObjectDelta<AccountShadowType> getAccountDelta()
getResource
public ResourceType getResource()
setResource
public void setResource(ResourceType resource)
getOid
public java.lang.String getOid()
setOid
public void setOid(java.lang.String oid)
- Sets oid to the field but also to the deltas (if applicable).
isAssigned
public boolean isAssigned()
setAssigned
public void setAssigned(boolean isAssigned)
getPolicyDecision
public PolicyDecision getPolicyDecision()
setPolicyDecision
public void setPolicyDecision(PolicyDecision policyDecision)
getAttributeValueDeltaSetTripleMap
public java.util.Map<javax.xml.namespace.QName,DeltaSetTriple<ValueConstruction>> getAttributeValueDeltaSetTripleMap()
addToAttributeValueDeltaSetTripleMap
public void addToAttributeValueDeltaSetTripleMap(java.util.Map<javax.xml.namespace.QName,DeltaSetTriple<ValueConstruction>> attributeValueDeltaMap)
getResourceAccountTypeDefinitionType
public ResourceAccountTypeDefinitionType getResourceAccountTypeDefinitionType()
recomputeAccountNew
public void recomputeAccountNew()
- Recomputes the new state of account (accountNew). It is computed by applying deltas to the old state (accountOld).
Assuming that oldAccount is already set (or is null if it does not exist)
debugDump
public java.lang.String debugDump()
- Description copied from interface:
DebugDumpable
- Show the content of the object intended for diagnostics by system administrator. The out
put should be suitable to use in system logs at "debug" level. It may be multi-line, but in
that case it should be well indented and quite terse.
As it is intended to be used by system administrator, it should not use any developer terms
such as class names, exceptions or stack traces.
- Specified by:
debugDump
in interface DebugDumpable
- Returns:
- content of the object intended for diagnostics by system administrator.
debugDump
public java.lang.String debugDump(int indent)
- Specified by:
debugDump
in interface DebugDumpable
dump
public java.lang.String dump()
- Description copied from interface:
Dumpable
- Show the content of the object intended for diagnostics by developer.
The content may be multi-line, in case of hierarchical objects it may be intended.
The use of this method may not be efficient. It is not supposed to be used in normal operation.
However, it is very useful in tests or in case of dumping objects in severe error situations.
- Specified by:
dump
in interface Dumpable
- Returns:
- content of the object intended for diagnostics.
Copyright © 2012 evolveum. All Rights Reserved.