com.evolveum.midpoint.model.sync.action
Class BaseAction
java.lang.Object
com.evolveum.midpoint.model.sync.action.BaseAction
- All Implemented Interfaces:
- Action
- Direct Known Subclasses:
- AddUserAction, DeleteUserAction, ModifyPasswordAction, ModifyUserAction, SynchronizeAction
public abstract class BaseAction
- extends java.lang.Object
- implements Action
- Author:
- lazyman
Fields inherited from interface com.evolveum.midpoint.model.sync.Action |
ACTION_ADD_ACCOUNT, ACTION_ADD_USER, ACTION_DELETE_ACCOUNT, ACTION_DELETE_USER, ACTION_DISABLE_ACCOUNT, ACTION_DISABLE_USER, ACTION_LINK_ACCOUNT, ACTION_MODIFY_PASSWORD, ACTION_MODIFY_USER, ACTION_SYNCHRONIZE, ACTION_UNLINK_ACCOUNT |
Method Summary |
protected LensProjectionContext<AccountShadowType> |
createAccountLensContext(LensContext<UserType,AccountShadowType> context,
ResourceObjectShadowChangeDescription change,
SynchronizationIntent syncIntent,
com.evolveum.midpoint.model.sync.action.ActivationDecision activationDecision)
|
protected void |
createActivationPropertyDelta(ObjectDelta<?> objectDelta,
com.evolveum.midpoint.model.sync.action.ActivationDecision activationDecision,
java.lang.Boolean oldValue)
|
protected LensContext<UserType,AccountShadowType> |
createEmptyLensContext(ResourceObjectShadowChangeDescription change)
Creates empty lens context, filling in only the very basic metadata (such as channel). |
protected void |
executeChanges(LensContext<UserType,AccountShadowType> context,
Task task,
OperationResult result)
|
java.lang.String |
executeChanges(java.lang.String userOid,
ResourceObjectShadowChangeDescription change,
SynchronizationSituationType situation,
AuditEventRecord auditRecord,
Task task,
OperationResult result)
|
protected PrismObject<AccountShadowType> |
getAccountShadowFromChange(ResourceObjectShadowChangeDescription change)
|
AuditService |
getAuditService()
|
ChangeExecutor |
getExecutor()
|
protected ModelController |
getModel()
|
protected org.w3c.dom.Element |
getParameterElement(javax.xml.namespace.QName qname)
|
java.util.List<java.lang.Object> |
getParameters()
|
PrismContext |
getPrismContext()
|
protected UserType |
getUser(java.lang.String oid,
OperationResult result)
|
void |
setAuditService(AuditService auditService)
|
void |
setClockwork(Clockwork clockwork)
|
void |
setExecutor(ChangeExecutor executor)
|
void |
setModel(ModelController model)
|
void |
setParameters(java.util.List<java.lang.Object> parameters)
|
void |
setPrismContext(PrismContext prismContext)
|
protected void |
synchronizeUser(LensContext<UserType,AccountShadowType> context,
Task task,
OperationResult result)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseAction
public BaseAction()
getAuditService
public AuditService getAuditService()
setAuditService
public void setAuditService(AuditService auditService)
getPrismContext
public PrismContext getPrismContext()
setPrismContext
public void setPrismContext(PrismContext prismContext)
getParameters
public java.util.List<java.lang.Object> getParameters()
- Specified by:
getParameters
in interface Action
setParameters
public void setParameters(java.util.List<java.lang.Object> parameters)
- Specified by:
setParameters
in interface Action
getParameterElement
protected org.w3c.dom.Element getParameterElement(javax.xml.namespace.QName qname)
getUser
protected UserType getUser(java.lang.String oid,
OperationResult result)
throws SynchronizationException
- Throws:
SynchronizationException
executeChanges
public java.lang.String executeChanges(java.lang.String userOid,
ResourceObjectShadowChangeDescription change,
SynchronizationSituationType situation,
AuditEventRecord auditRecord,
Task task,
OperationResult result)
throws SynchronizationException,
SchemaException
- Specified by:
executeChanges
in interface Action
- Throws:
SynchronizationException
SchemaException
setModel
public void setModel(ModelController model)
getModel
protected ModelController getModel()
setClockwork
public void setClockwork(Clockwork clockwork)
getExecutor
public ChangeExecutor getExecutor()
setExecutor
public void setExecutor(ChangeExecutor executor)
createEmptyLensContext
protected LensContext<UserType,AccountShadowType> createEmptyLensContext(ResourceObjectShadowChangeDescription change)
- Creates empty lens context, filling in only the very basic metadata (such as channel).
createAccountLensContext
protected LensProjectionContext<AccountShadowType> createAccountLensContext(LensContext<UserType,AccountShadowType> context,
ResourceObjectShadowChangeDescription change,
SynchronizationIntent syncIntent,
com.evolveum.midpoint.model.sync.action.ActivationDecision activationDecision)
throws SchemaException
- Throws:
SchemaException
getAccountShadowFromChange
protected PrismObject<AccountShadowType> getAccountShadowFromChange(ResourceObjectShadowChangeDescription change)
synchronizeUser
protected void synchronizeUser(LensContext<UserType,AccountShadowType> context,
Task task,
OperationResult result)
throws SynchronizationException
- Throws:
SynchronizationException
executeChanges
protected void executeChanges(LensContext<UserType,AccountShadowType> context,
Task task,
OperationResult result)
throws SynchronizationException
- Throws:
SynchronizationException
createActivationPropertyDelta
protected void createActivationPropertyDelta(ObjectDelta<?> objectDelta,
com.evolveum.midpoint.model.sync.action.ActivationDecision activationDecision,
java.lang.Boolean oldValue)
Copyright © 2012 evolveum. All Rights Reserved.