com.evolveum.midpoint.model.sync.action
Class BaseAction

java.lang.Object
  extended by com.evolveum.midpoint.model.sync.action.BaseAction
All Implemented Interfaces:
Action
Direct Known Subclasses:
AddUserAction, DeleteUserAction, ModifyPasswordAction, ModifyUserAction, SynchronizeAction

public abstract class BaseAction
extends Object
implements Action

Author:
lazyman

Field Summary
 
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
 
Constructor Summary
BaseAction()
           
 
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, 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)
           
 String executeChanges(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  Element getParameterElement(QName qname)
           
 List<Object> getParameters()
           
 PrismContext getPrismContext()
           
protected  UserType getUser(String oid, OperationResult result)
           
 void setAuditService(AuditService auditService)
           
 void setClockwork(Clockwork clockwork)
           
 void setExecutor(ChangeExecutor executor)
           
 void setModel(ModelController model)
           
 void setParameters(List<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
 

Constructor Detail

BaseAction

public BaseAction()
Method Detail

getAuditService

public AuditService getAuditService()

setAuditService

public void setAuditService(AuditService auditService)

getPrismContext

public PrismContext getPrismContext()

setPrismContext

public void setPrismContext(PrismContext prismContext)

getParameters

public List<Object> getParameters()
Specified by:
getParameters in interface Action

setParameters

public void setParameters(List<Object> parameters)
Specified by:
setParameters in interface Action

getParameterElement

protected Element getParameterElement(QName qname)

getUser

protected UserType getUser(String oid,
                           OperationResult result)
                    throws SynchronizationException
Throws:
SynchronizationException

executeChanges

public String executeChanges(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,
                                             Boolean oldValue)


Copyright © 2013 evolveum. All Rights Reserved.