Class JbpmProfileImpl
- java.lang.Object
-
- org.jbpm.designer.web.profile.impl.JbpmProfileImpl
-
- All Implemented Interfaces:
IDiagramProfile
@ApplicationScoped public class JbpmProfileImpl extends Object implements IDiagramProfile
The implementation of the jBPM profile for Process Designer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jbpm.designer.web.profile.IDiagramProfile
IDiagramProfile.IDiagramMarshaller, IDiagramProfile.IDiagramUnmarshaller
-
-
Constructor Summary
Constructors Constructor Description JbpmProfileImpl()
JbpmProfileImpl(javax.servlet.ServletContext servletContext)
JbpmProfileImpl(javax.servlet.ServletContext servletContext, boolean initializeLocalPlugins, boolean initializeRepository)
-
Method Summary
-
-
-
Method Detail
-
getTitle
public String getTitle()
- Specified by:
getTitle
in interfaceIDiagramProfile
- Returns:
- the title of the profile.
-
getStencilSet
public String getStencilSet()
- Specified by:
getStencilSet
in interfaceIDiagramProfile
- Returns:
- the stencil set used by the profile.
-
getStencilSetExtensions
public Collection<String> getStencilSetExtensions()
- Specified by:
getStencilSetExtensions
in interfaceIDiagramProfile
- Returns:
- the stencil set extensions used by the profile
-
getPlugins
public Collection<String> getPlugins()
- Specified by:
getPlugins
in interfaceIDiagramProfile
- Returns:
- the plugins to load for the profile.
-
getName
public String getName()
- Specified by:
getName
in interfaceIDiagramProfile
- Returns:
- the name of the profile it will be passed by the user when opening the editor.
-
getSerializedModelExtension
public String getSerializedModelExtension()
- Specified by:
getSerializedModelExtension
in interfaceIDiagramProfile
-
getLocalHistoryEnabled
public String getLocalHistoryEnabled()
- Specified by:
getLocalHistoryEnabled
in interfaceIDiagramProfile
- Returns:
- the local history enabled.
-
getLocalHistoryTimeout
public String getLocalHistoryTimeout()
- Specified by:
getLocalHistoryTimeout
in interfaceIDiagramProfile
- Returns:
- the local history timeout.
-
getStoreSVGonSaveOption
public String getStoreSVGonSaveOption()
- Specified by:
getStoreSVGonSaveOption
in interfaceIDiagramProfile
- Returns:
- the store svg on save option.
-
getRepository
public Repository getRepository()
- Specified by:
getRepository
in interfaceIDiagramProfile
- Returns:
- the repository.
-
init
public void init(javax.servlet.ServletContext context)
- Specified by:
init
in interfaceIDiagramProfile
-
setRepository
public void setRepository(Repository repository)
-
createMarshaller
public IDiagramProfile.IDiagramMarshaller createMarshaller()
- Specified by:
createMarshaller
in interfaceIDiagramProfile
- Returns:
- a marshaller to transform the json into the final model.
-
createUnmarshaller
public IDiagramProfile.IDiagramUnmarshaller createUnmarshaller()
- Specified by:
createUnmarshaller
in interfaceIDiagramProfile
- Returns:
- an unmarshaller to transform the model into the json.
-
getRepositoryGlobalDir
public String getRepositoryGlobalDir()
- Specified by:
getRepositoryGlobalDir
in interfaceIDiagramProfile
-
getRepositoryGlobalDir
public String getRepositoryGlobalDir(String uuid)
- Specified by:
getRepositoryGlobalDir
in interfaceIDiagramProfile
-
getDefinitions
public org.eclipse.bpmn2.Definitions getDefinitions(String xml) throws Exception
- Throws:
Exception
-
getStencilSetURL
public String getStencilSetURL()
- Specified by:
getStencilSetURL
in interfaceIDiagramProfile
- Returns:
- the stencil url used by the profile.
-
getStencilSetNamespaceURL
public String getStencilSetNamespaceURL()
- Specified by:
getStencilSetNamespaceURL
in interfaceIDiagramProfile
- Returns:
- stencil namespace url.
-
getStencilSetExtensionURL
public String getStencilSetExtensionURL()
- Specified by:
getStencilSetExtensionURL
in interfaceIDiagramProfile
- Returns:
- stencil set extension url used by the profile.
-
getBpsimDisplay
public String getBpsimDisplay()
- Specified by:
getBpsimDisplay
in interfaceIDiagramProfile
- Returns:
- the bpsim display option.
-
getFormsType
public String getFormsType()
- Specified by:
getFormsType
in interfaceIDiagramProfile
- Returns:
- the forms type
-
setZOrder
public void setZOrder(String zOrderEnabled)
For test purposes- Parameters:
zOrderEnabled
-
-
setBpsimDisplay
public void setBpsimDisplay(String bpsimDisplayEnabled)
For test purposes- Parameters:
bpsimDisplayEnabled
-
-
setFormsType
public void setFormsType(String formsTypeOption)
For test purposes- Parameters:
formsTypeOption
-
-
-