Package org.camunda.bpm.engine.impl.cmd
Class AbstractGetDeployedFormCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.AbstractGetDeployedFormCmd
-
- All Implemented Interfaces:
Command<InputStream>
- Direct Known Subclasses:
GetDeployedStartFormCmd,GetDeployedTaskFormCmd
public abstract class AbstractGetDeployedFormCmd extends Object implements Command<InputStream>
- Author:
- Anna Pazola
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCAMUNDA_FORMS_KEYprotected static intCAMUNDA_FORMS_KEY_LENGTHprotected CommandContextcommandContextprotected static StringDEPLOYMENT_KEYprotected static intDEPLOYMENT_KEY_LENGTHprotected static StringEMBEDDED_KEYprotected static intEMBEDDED_KEY_LENGTH
-
Constructor Summary
Constructors Constructor Description AbstractGetDeployedFormCmd()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcheckAuthorization()InputStreamexecute(CommandContext commandContext)protected InputStreamgetDeploymentResource(String deploymentId, String resourceName)protected abstract FormDatagetFormData()protected InputStreamgetResourceForCamundaFormRef(CamundaFormRef camundaFormRef, String deploymentId)protected InputStreamgetResourceForFormKey(FormData formData, String formKey)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
-
-
-
Field Detail
-
EMBEDDED_KEY
protected static String EMBEDDED_KEY
-
CAMUNDA_FORMS_KEY
protected static String CAMUNDA_FORMS_KEY
-
EMBEDDED_KEY_LENGTH
protected static int EMBEDDED_KEY_LENGTH
-
CAMUNDA_FORMS_KEY_LENGTH
protected static int CAMUNDA_FORMS_KEY_LENGTH
-
DEPLOYMENT_KEY
protected static String DEPLOYMENT_KEY
-
DEPLOYMENT_KEY_LENGTH
protected static int DEPLOYMENT_KEY_LENGTH
-
commandContext
protected CommandContext commandContext
-
-
Method Detail
-
execute
public InputStream execute(CommandContext commandContext)
- Specified by:
executein interfaceCommand<InputStream>
-
getResourceForFormKey
protected InputStream getResourceForFormKey(FormData formData, String formKey)
-
getResourceForCamundaFormRef
protected InputStream getResourceForCamundaFormRef(CamundaFormRef camundaFormRef, String deploymentId)
-
getDeploymentResource
protected InputStream getDeploymentResource(String deploymentId, String resourceName)
-
getFormData
protected abstract FormData getFormData()
-
checkAuthorization
protected abstract void checkAuthorization()
-
-