|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolveum.midpoint.model.SyncContext
public class SyncContext
Synchronization context that is passed inside the model as the change is processed through several stages.
The context contains complete information about the change that relates to a user. It container user, accounts that belongs, belonged or should belong to the user, deltas, old a new values for all the objects. This information is assembled and transformed as the context is passed through individual stages of model processing. It also contains policies (e.g. user template), channel and similar information. This can be used to customize processing per-request.
Field Summary |
---|
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable |
---|
INDENT_STRING |
Constructor Summary | |
---|---|
SyncContext()
|
Method Summary | |
---|---|
void |
addAccountSyncContext(ResourceAccountType rat,
AccountSyncContext accountSyncContext)
|
void |
addPrimaryUserDelta(ObjectDelta<UserType> userDelta)
|
AccountSyncContext |
createAccountSyncContext(ResourceAccountType rat)
Creates new empty account sync context and adds it to this context. |
java.lang.String |
debugDump()
Show the content of the object intended for diagnostics by system administrator. |
java.lang.String |
debugDump(int indent)
|
java.lang.String |
dump()
Show the content of the object intended for diagnostics by developer. |
java.util.Collection<AccountSyncContext> |
getAccountContexts()
|
AccountSyncContext |
getAccountSyncContext(ResourceAccountType rat)
|
AccountSynchronizationSettingsType |
getAccountSynchronizationSettings()
|
java.util.Collection<ObjectDelta<?>> |
getAllChanges()
Returns all changes, user and all accounts. |
PropertyDelta |
getAssignmentDelta()
Returns delta of user assignments, both primary and secondary (merged together). |
AssignmentPolicyEnforcementType |
getAssignmentPolicyEnforcementType()
Returns one aspect from the synchronization settings (with respect to default value). |
java.lang.String |
getChannel()
|
RefinedAccountDefinition |
getRefinedAccountDefinition(ResourceAccountType rat,
SchemaRegistry schemaRegistry)
Returns refined account definition for specified account type. |
RefinedResourceSchema |
getRefinedResourceSchema(ResourceAccountType rat,
SchemaRegistry schemaRegistry)
Returns refined resource schema for specified account type. |
ResourceType |
getResource(ResourceAccountType rat)
Returns a resource for specified account type. |
ObjectDelta<UserType> |
getUserDelta()
Returns user delta, both primary and secondary (merged together). |
MidPointObject<UserType> |
getUserNew()
|
MidPointObject<UserType> |
getUserOld()
|
ObjectDelta<UserType> |
getUserPrimaryDelta()
|
ObjectDelta<UserType> |
getUserSecondaryDelta()
|
UserTemplateType |
getUserTemplate()
|
UserType |
getUserTypeOld()
|
boolean |
isDoReconciliationForAllAccounts()
|
void |
recomputeAccountsNew()
Recompute new account state. |
void |
recomputeNew()
Recompute new user state and new account states. |
void |
recomputeUserNew()
Recompute new user state. |
void |
rememberResource(ResourceType resourceType)
Puts resource in the cache for later use. |
void |
rememberResources(java.util.Collection<ResourceType> resources)
Puts resources in the cache for later use. |
void |
setAccountPrimaryDelta(ResourceAccountType rat,
ObjectDelta<AccountShadowType> accountDelta)
|
void |
setAccountSecondaryDelta(ResourceAccountType rat,
ObjectDelta<AccountShadowType> accountDelta)
|
void |
setAccountSynchronizationSettings(AccountSynchronizationSettingsType accountSynchronizationSettings)
|
void |
setChannel(java.lang.String channel)
|
void |
setDoReconciliationForAllAccounts(boolean doReconciliationForAllAccounts)
|
void |
setUserNew(MidPointObject<UserType> userNew)
|
void |
setUserOid(java.lang.String oid)
|
void |
setUserOld(MidPointObject<UserType> userOld)
|
void |
setUserPrimaryDelta(ObjectDelta<UserType> userPrimaryDelta)
|
void |
setUserSecondaryDelta(ObjectDelta<UserType> userSecondaryDelta)
|
void |
setUserTemplate(UserTemplateType userTemplate)
|
void |
setUserTypeOld(UserType userTypeOld)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SyncContext()
Method Detail |
---|
public UserType getUserTypeOld()
public void setUserTypeOld(UserType userTypeOld)
public MidPointObject<UserType> getUserOld()
public void setUserOld(MidPointObject<UserType> userOld)
public MidPointObject<UserType> getUserNew()
public void setUserNew(MidPointObject<UserType> userNew)
public ObjectDelta<UserType> getUserPrimaryDelta()
public void setUserPrimaryDelta(ObjectDelta<UserType> userPrimaryDelta)
public ObjectDelta<UserType> getUserSecondaryDelta()
public void setUserSecondaryDelta(ObjectDelta<UserType> userSecondaryDelta)
public UserTemplateType getUserTemplate()
public void setUserTemplate(UserTemplateType userTemplate)
public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
public AccountSynchronizationSettingsType getAccountSynchronizationSettings()
public void setAccountSynchronizationSettings(AccountSynchronizationSettingsType accountSynchronizationSettings)
public boolean isDoReconciliationForAllAccounts()
public void setDoReconciliationForAllAccounts(boolean doReconciliationForAllAccounts)
public AssignmentPolicyEnforcementType getAssignmentPolicyEnforcementType()
public java.util.Collection<AccountSyncContext> getAccountContexts()
public void addAccountSyncContext(ResourceAccountType rat, AccountSyncContext accountSyncContext)
public void setAccountPrimaryDelta(ResourceAccountType rat, ObjectDelta<AccountShadowType> accountDelta)
public void setAccountSecondaryDelta(ResourceAccountType rat, ObjectDelta<AccountShadowType> accountDelta)
public ObjectDelta<UserType> getUserDelta()
public void setUserOid(java.lang.String oid)
public void recomputeNew()
public void recomputeUserNew()
public void recomputeAccountsNew()
public PropertyDelta getAssignmentDelta()
public void addPrimaryUserDelta(ObjectDelta<UserType> userDelta)
public RefinedResourceSchema getRefinedResourceSchema(ResourceAccountType rat, SchemaRegistry schemaRegistry) throws SchemaException
SchemaException
rememberResource(ResourceType)
public RefinedAccountDefinition getRefinedAccountDefinition(ResourceAccountType rat, SchemaRegistry schemaRegistry) throws SchemaException
SchemaException
rememberResource(ResourceType)
public ResourceType getResource(ResourceAccountType rat)
rememberResource(ResourceType)
public AccountSyncContext getAccountSyncContext(ResourceAccountType rat)
public void rememberResources(java.util.Collection<ResourceType> resources)
public void rememberResource(ResourceType resourceType)
public java.util.Collection<ObjectDelta<?>> getAllChanges()
public AccountSyncContext createAccountSyncContext(ResourceAccountType rat)
public java.lang.String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public java.lang.String dump()
Dumpable
dump
in interface Dumpable
public java.lang.String debugDump(int indent)
debugDump
in interface DebugDumpable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |