@DeclareRoles(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"}) @RolesAllowed(value={"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"}) public class TextBlockService extends Object
| Constructor and Description |
|---|
TextBlockService() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTextBlock(org.imixs.workflow.ItemCollection aconfig)
This method deletes an existing text-block.
|
org.imixs.workflow.ItemCollection |
loadTextBlock(String name)
This method returns a text-block ItemCollection for a specified name or ID.
|
org.imixs.workflow.ItemCollection |
loadTextBlock(String name,
boolean discardCache)
This method returns a text-block ItemCollection for a specified name or id.
|
void |
onDocumentEvent(org.imixs.workflow.engine.DocumentEvent event)
This method refreshes the cache if a textblock was saved.
|
void |
onTextEvent(org.imixs.workflow.engine.TextEvent event)
This method reacts on CDI events of the type TextEvent and parses a string
for xml tag
|
org.imixs.workflow.ItemCollection |
save(org.imixs.workflow.ItemCollection textBlockItemCollection)
SavesO the text-block entity
|
public void deleteTextBlock(org.imixs.workflow.ItemCollection aconfig)
throws org.imixs.workflow.exceptions.AccessDeniedException
aconfig - org.imixs.workflow.exceptions.AccessDeniedExceptionpublic org.imixs.workflow.ItemCollection loadTextBlock(String name)
name - in attribute txtnamepublic org.imixs.workflow.ItemCollection loadTextBlock(String name, boolean discardCache)
name - in attribute txtnamediscardCache - - indicates if the internal cache should be discarded.public org.imixs.workflow.ItemCollection save(org.imixs.workflow.ItemCollection textBlockItemCollection)
throws org.imixs.workflow.exceptions.AccessDeniedException
org.imixs.workflow.exceptions.AccessDeniedExceptionpublic void onTextEvent(@Observes @Priority(value=2600) org.imixs.workflow.engine.TextEvent event)
The priority of the CDI event is set to (APPLICATION+10) to ensure that the textblock adapter is triggered after the TextItemValueAdapter
public void onDocumentEvent(@Observes
org.imixs.workflow.engine.DocumentEvent event)
event - Copyright © 2016–2022 Imixs Software Solutions GmbH. All rights reserved.