Class TextBlockHelperService


  • @DeclareRoles({"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
    @RolesAllowed({"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
    public class TextBlockHelperService
    extends Object
    The TextBlockHelperService is helper service to fetch a textBlock provided by the Imixs-Office-Workflow project. A text-block document is identified by its ID (txtname) and holds a HTML or PlainText information. A text-block document holds the following items
    • txtmode - html/text
    • txtcontent - textual information
    The type of a textBlock document is 'textblock'
    Author:
    rsoika
    • Constructor Detail

      • TextBlockHelperService

        public TextBlockHelperService()
    • Method Detail

      • loadTextBlock

        public org.imixs.workflow.ItemCollection loadTextBlock​(String name)
        This method returns a text-block ItemCollection for a specified name or id. If no text-block is found for this name the Method creates an empty text-block object. The text-block entity are not cached by this service. See also the TextBlockService in the Imixs-Office-Worklfow-Util project.
        Parameters:
        name - in attribute txtname
        discardCache - - indicates if the internal cache should be discarded.