Class AbstractAnyObjectWorkflowAdapter
- java.lang.Object
-
- org.apache.syncope.core.workflow.java.AbstractWorkflowAdapter
-
- org.apache.syncope.core.workflow.java.AbstractAnyObjectWorkflowAdapter
-
- All Implemented Interfaces:
AnyObjectWorkflowAdapter,WorkflowAdapter
- Direct Known Subclasses:
DefaultAnyObjectWorkflowAdapter
@Transactional(propagation=REQUIRES_NEW, rollbackFor=java.lang.Throwable.class) public abstract class AbstractAnyObjectWorkflowAdapter extends AbstractWorkflowAdapter implements AnyObjectWorkflowAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyObjectDAOanyObjectDAOprotected AnyObjectDataBinderdataBinder-
Fields inherited from class org.apache.syncope.core.workflow.java.AbstractWorkflowAdapter
entityFactory, groupDAO, publisher
-
-
Constructor Summary
Constructors Constructor Description AbstractAnyObjectWorkflowAdapter(AnyObjectDataBinder dataBinder, AnyObjectDAO anyObjectDAO, GroupDAO groupDAO, EntityFactory entityFactory, ApplicationEventPublisher publisher)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description WorkflowResult<String>create(AnyObjectCR anyObjectCR, String creator, String context)Create an anyObject.voiddelete(String anyObjectKey, String eraser, String context)Delete an anyObject.protected abstract WorkflowResult<String>doCreate(AnyObjectCR anyObjectCR, String creator, String context)protected abstract voiddoDelete(AnyObject anyObject, String eraser, String context)protected abstract WorkflowResult<AnyObjectUR>doUpdate(AnyObject anyObject, AnyObjectUR anyObjectUR, String updater, String context)StringgetPrefix()WorkflowResult<AnyObjectUR>update(AnyObjectUR anyObjectUR, String updater, String context)Update an anyObject.-
Methods inherited from class org.apache.syncope.core.workflow.java.AbstractWorkflowAdapter
metadata
-
-
-
-
Field Detail
-
dataBinder
protected final AnyObjectDataBinder dataBinder
-
anyObjectDAO
protected final AnyObjectDAO anyObjectDAO
-
-
Constructor Detail
-
AbstractAnyObjectWorkflowAdapter
public AbstractAnyObjectWorkflowAdapter(AnyObjectDataBinder dataBinder, AnyObjectDAO anyObjectDAO, GroupDAO groupDAO, EntityFactory entityFactory, ApplicationEventPublisher publisher)
-
-
Method Detail
-
getPrefix
public String getPrefix()
- Specified by:
getPrefixin interfaceWorkflowAdapter- Returns:
- any string that might be interpreted as 'prefix' (say table prefix in SQL environments)
-
doCreate
protected abstract WorkflowResult<String> doCreate(AnyObjectCR anyObjectCR, String creator, String context)
-
create
public WorkflowResult<String> create(AnyObjectCR anyObjectCR, String creator, String context)
Description copied from interface:AnyObjectWorkflowAdapterCreate an anyObject.- Specified by:
createin interfaceAnyObjectWorkflowAdapter- Parameters:
anyObjectCR- anyObject to be created and whether to propagate it as activecreator- username that requested this operationcontext- context information- Returns:
- anyObject just created
-
doUpdate
protected abstract WorkflowResult<AnyObjectUR> doUpdate(AnyObject anyObject, AnyObjectUR anyObjectUR, String updater, String context)
-
update
public WorkflowResult<AnyObjectUR> update(AnyObjectUR anyObjectUR, String updater, String context)
Description copied from interface:AnyObjectWorkflowAdapterUpdate an anyObject.- Specified by:
updatein interfaceAnyObjectWorkflowAdapter- Parameters:
anyObjectUR- modification set to be performedupdater- username that requested this operationcontext- context information- Returns:
- anyObject just updated and propagations to be performed
-
delete
public void delete(String anyObjectKey, String eraser, String context)
Description copied from interface:AnyObjectWorkflowAdapterDelete an anyObject.- Specified by:
deletein interfaceAnyObjectWorkflowAdapter- Parameters:
anyObjectKey- anyObject to be deletederaser- username that requested this operationcontext- context information
-
-