public interface StencilSetManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Modifier and Type | Method and Description |
---|---|
byte[] |
exportStencilSet(java.lang.String stencilsJson,
java.util.List<com.haulmont.cuba.core.entity.FileDescriptor> iconFiles)
Exports a stencilset json file and a set of stencil icon files into the zip archive
|
java.lang.String |
getStencilSet()
Returns a stencilset that is a result of merge of the default stencilset from the 'stencilset.json' file
and the custom stencilset that is stored in the database
|
void |
importStencilSet(byte[] zipBytes)
Imports a zip archive with the stencilset.json and stencils icons
|
void |
registerServiceTaskStencilBpmnJsonConverter(java.lang.String stencilId)
Associates a new stencil with the
CustomServiceTaskJsonConverter |
void |
resetStencilSet()
Removes a custom stencil set from the database
|
void |
setStencilSet(java.lang.String jsonData)
Updates a custom stencilset in the database.
|
static final java.lang.String NAME
java.lang.String getStencilSet()
void setStencilSet(java.lang.String jsonData)
jsonData
- custom stencilset json. Note that custom stencilset must contain only custom stencils and propertyPackagesvoid resetStencilSet()
void registerServiceTaskStencilBpmnJsonConverter(java.lang.String stencilId)
CustomServiceTaskJsonConverter
byte[] exportStencilSet(java.lang.String stencilsJson, java.util.List<com.haulmont.cuba.core.entity.FileDescriptor> iconFiles)
stencilsJson
- json string with the custom stencilsiconFiles
- a list of stencil icons file descriptorsvoid importStencilSet(byte[] zipBytes)
zipBytes
- a byte array of the zip archive