org.cateproject.controller.flow.action
Class AbstractEditAction<T extends eu.etaxonomy.cdm.model.common.IdentifiableEntity,SERVICE extends eu.etaxonomy.cdm.api.service.IIdentifiableEntityService<T>,FORM extends AbstractReplaceForm<? extends T,? extends T>>
java.lang.Object
org.cateproject.controller.flow.action.AbstractFlowAction<T,SERVICE>
org.cateproject.controller.flow.action.AbstractEditAction<T,SERVICE,FORM>
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware, org.springframework.webflow.engine.FlowExecutionExceptionHandler
- Direct Known Subclasses:
- AbstractMediaEditAction, EditAction, EditAction, EditAction, EditAction, EditAction, EditAction, EditAction
public abstract class AbstractEditAction<T extends eu.etaxonomy.cdm.model.common.IdentifiableEntity,SERVICE extends eu.etaxonomy.cdm.api.service.IIdentifiableEntityService<T>,FORM extends AbstractReplaceForm<? extends T,? extends T>>
- extends AbstractFlowAction<T,SERVICE>
- implements org.springframework.webflow.engine.FlowExecutionExceptionHandler
|
Field Summary |
protected eu.etaxonomy.cdm.api.service.IAgentService |
agentService
|
protected eu.etaxonomy.cdm.api.service.IReferenceService |
referenceService
|
|
Method Summary |
eu.etaxonomy.cdm.model.media.Rights |
addRights(T t,
String type)
|
eu.etaxonomy.cdm.model.common.IdentifiableSource |
addSource(T t)
|
boolean |
canHandle(org.springframework.webflow.execution.FlowExecutionException exception)
|
abstract T |
createNewInstance(Class clazz,
org.springframework.webflow.execution.RequestContext requestContext)
|
abstract boolean |
delete(T t,
org.springframework.binding.message.MessageContext messageContext)
|
protected Boolean |
doDelete(T object,
org.springframework.binding.message.MessageContext messageContext)
|
protected Boolean |
doReplace(AbstractReplaceForm<T,T> replaceForm,
org.springframework.binding.message.MessageContext messageContext)
|
protected Boolean |
doSave(T object,
org.springframework.binding.message.MessageContext messageContext)
|
abstract String |
editOrCreate(UUID uuid,
org.springframework.webflow.execution.RequestContext requestContext)
|
abstract List<Class> |
getAvailableClasses(Class clazz)
|
eu.etaxonomy.cdm.model.media.Rights |
getRights(T t,
UUID uuid)
|
eu.etaxonomy.cdm.model.common.IdentifiableSource |
getSource(T t,
UUID uuid)
|
void |
handle(org.springframework.webflow.execution.FlowExecutionException exception,
org.springframework.webflow.engine.RequestControlContext context)
|
T |
load(UUID uuid,
org.springframework.webflow.execution.RequestContext requestContext)
|
Boolean |
removeCitation(eu.etaxonomy.cdm.model.common.IdentifiableSource source)
|
Boolean |
removeRights(T t,
UUID uuid)
|
Boolean |
removeRightsHolder(eu.etaxonomy.cdm.model.media.Rights rights)
|
Boolean |
removeSource(T t,
UUID uuid)
|
abstract Boolean |
replace(FORM replaceForm,
org.springframework.binding.message.MessageContext messageContext)
|
abstract Boolean |
saveOrUpdate(T object,
org.springframework.binding.message.MessageContext messageContext)
|
void |
setAgentService(eu.etaxonomy.cdm.api.service.IAgentService agentService)
|
Boolean |
setCitation(UUID ref,
eu.etaxonomy.cdm.model.common.IdentifiableSource source)
|
void |
setReferenceService(eu.etaxonomy.cdm.api.service.IReferenceService referenceService)
|
abstract Boolean |
setReplacement(UUID uuid,
FORM replaceForm)
|
Boolean |
setRightsHolder(UUID agent,
eu.etaxonomy.cdm.model.media.Rights rights)
|
abstract FORM |
setUpReplaceForm(T t)
|
abstract boolean |
updateTitleCache(T t)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agentService
protected eu.etaxonomy.cdm.api.service.IAgentService agentService
referenceService
protected eu.etaxonomy.cdm.api.service.IReferenceService referenceService
AbstractEditAction
public AbstractEditAction()
setAgentService
public void setAgentService(eu.etaxonomy.cdm.api.service.IAgentService agentService)
setReferenceService
public void setReferenceService(eu.etaxonomy.cdm.api.service.IReferenceService referenceService)
editOrCreate
public abstract String editOrCreate(UUID uuid,
org.springframework.webflow.execution.RequestContext requestContext)
setUpReplaceForm
public abstract FORM setUpReplaceForm(T t)
replace
public abstract Boolean replace(FORM replaceForm,
org.springframework.binding.message.MessageContext messageContext)
setReplacement
public abstract Boolean setReplacement(UUID uuid,
FORM replaceForm)
delete
public abstract boolean delete(T t,
org.springframework.binding.message.MessageContext messageContext)
createNewInstance
public abstract T createNewInstance(Class clazz,
org.springframework.webflow.execution.RequestContext requestContext)
getAvailableClasses
public abstract List<Class> getAvailableClasses(Class clazz)
updateTitleCache
public abstract boolean updateTitleCache(T t)
saveOrUpdate
public abstract Boolean saveOrUpdate(T object,
org.springframework.binding.message.MessageContext messageContext)
doSave
protected Boolean doSave(T object,
org.springframework.binding.message.MessageContext messageContext)
doDelete
protected Boolean doDelete(T object,
org.springframework.binding.message.MessageContext messageContext)
doReplace
protected Boolean doReplace(AbstractReplaceForm<T,T> replaceForm,
org.springframework.binding.message.MessageContext messageContext)
load
public T load(UUID uuid,
org.springframework.webflow.execution.RequestContext requestContext)
canHandle
public boolean canHandle(org.springframework.webflow.execution.FlowExecutionException exception)
- Specified by:
canHandle in interface org.springframework.webflow.engine.FlowExecutionExceptionHandler
handle
public void handle(org.springframework.webflow.execution.FlowExecutionException exception,
org.springframework.webflow.engine.RequestControlContext context)
- Specified by:
handle in interface org.springframework.webflow.engine.FlowExecutionExceptionHandler
getRights
public eu.etaxonomy.cdm.model.media.Rights getRights(T t,
UUID uuid)
addRights
public eu.etaxonomy.cdm.model.media.Rights addRights(T t,
String type)
removeRights
public Boolean removeRights(T t,
UUID uuid)
removeRightsHolder
public Boolean removeRightsHolder(eu.etaxonomy.cdm.model.media.Rights rights)
setRightsHolder
public Boolean setRightsHolder(UUID agent,
eu.etaxonomy.cdm.model.media.Rights rights)
getSource
public eu.etaxonomy.cdm.model.common.IdentifiableSource getSource(T t,
UUID uuid)
addSource
public eu.etaxonomy.cdm.model.common.IdentifiableSource addSource(T t)
removeSource
public Boolean removeSource(T t,
UUID uuid)
removeCitation
public Boolean removeCitation(eu.etaxonomy.cdm.model.common.IdentifiableSource source)
setCitation
public Boolean setCitation(UUID ref,
eu.etaxonomy.cdm.model.common.IdentifiableSource source)
Copyright © 2010. All Rights Reserved.