Class BpmnServiceImpl

  • All Implemented Interfaces:
    org.uberfire.ext.editor.commons.service.support.SupportsCopy, org.uberfire.ext.editor.commons.service.support.SupportsCreate<org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode>, org.uberfire.ext.editor.commons.service.support.SupportsDelete, org.uberfire.ext.editor.commons.service.support.SupportsRead<org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode>, org.uberfire.ext.editor.commons.service.support.SupportsRename, org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode,​org.uberfire.ext.wires.bpmn.api.service.todo.Metadata>, org.uberfire.ext.editor.commons.service.support.SupportsUpdate<org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode,​org.uberfire.ext.wires.bpmn.api.service.todo.Metadata>, org.uberfire.ext.wires.bpmn.api.service.BpmnService

    @ApplicationScoped
    public class BpmnServiceImpl
    extends Object
    implements org.uberfire.ext.wires.bpmn.api.service.BpmnService
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.jboss.errai.security.shared.api.identity.User identity  
      protected org.uberfire.rpc.SessionInfo sessionInfo  
    • Constructor Summary

      Constructors 
      Constructor Description
      BpmnServiceImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path, String newName, String comment)  
      org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path, String newName, org.uberfire.backend.vfs.Path targetDirectory, String comment)  
      org.uberfire.backend.vfs.Path create​(org.uberfire.backend.vfs.Path context, String fileName, org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode content, String comment)  
      void delete​(org.uberfire.backend.vfs.Path path, String comment)  
      List<org.uberfire.backend.vfs.Path> listFiles()  
      org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode load​(org.uberfire.backend.vfs.Path path)  
      org.uberfire.ext.wires.bpmn.api.model.impl.BpmnEditorContent loadContent​(org.uberfire.backend.vfs.Path path)  
      org.uberfire.backend.vfs.Path rename​(org.uberfire.backend.vfs.Path path, String newName, String comment)  
      org.uberfire.backend.vfs.Path save​(org.uberfire.backend.vfs.Path path, org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode content, org.uberfire.ext.wires.bpmn.api.service.todo.Metadata metadata, String comment)  
      org.uberfire.backend.vfs.Path saveAndRename​(org.uberfire.backend.vfs.Path path, String newFileName, org.uberfire.ext.wires.bpmn.api.service.todo.Metadata metadata, org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode content, String comment)  
      void setup()  
    • Field Detail

      • identity

        @Inject
        protected org.jboss.errai.security.shared.api.identity.User identity
      • sessionInfo

        @Inject
        protected org.uberfire.rpc.SessionInfo sessionInfo
    • Constructor Detail

      • BpmnServiceImpl

        public BpmnServiceImpl()
    • Method Detail

      • create

        public org.uberfire.backend.vfs.Path create​(org.uberfire.backend.vfs.Path context,
                                                    String fileName,
                                                    org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode content,
                                                    String comment)
        Specified by:
        create in interface org.uberfire.ext.editor.commons.service.support.SupportsCreate<org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode>
      • loadContent

        public org.uberfire.ext.wires.bpmn.api.model.impl.BpmnEditorContent loadContent​(org.uberfire.backend.vfs.Path path)
        Specified by:
        loadContent in interface org.uberfire.ext.wires.bpmn.api.service.BpmnService
      • load

        public org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode load​(org.uberfire.backend.vfs.Path path)
        Specified by:
        load in interface org.uberfire.ext.editor.commons.service.support.SupportsRead<org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode>
      • save

        public org.uberfire.backend.vfs.Path save​(org.uberfire.backend.vfs.Path path,
                                                  org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode content,
                                                  org.uberfire.ext.wires.bpmn.api.service.todo.Metadata metadata,
                                                  String comment)
        Specified by:
        save in interface org.uberfire.ext.editor.commons.service.support.SupportsUpdate<org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode,​org.uberfire.ext.wires.bpmn.api.service.todo.Metadata>
      • delete

        public void delete​(org.uberfire.backend.vfs.Path path,
                           String comment)
        Specified by:
        delete in interface org.uberfire.ext.editor.commons.service.support.SupportsDelete
      • rename

        public org.uberfire.backend.vfs.Path rename​(org.uberfire.backend.vfs.Path path,
                                                    String newName,
                                                    String comment)
        Specified by:
        rename in interface org.uberfire.ext.editor.commons.service.support.SupportsRename
      • copy

        public org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path,
                                                  String newName,
                                                  String comment)
        Specified by:
        copy in interface org.uberfire.ext.editor.commons.service.support.SupportsCopy
      • copy

        public org.uberfire.backend.vfs.Path copy​(org.uberfire.backend.vfs.Path path,
                                                  String newName,
                                                  org.uberfire.backend.vfs.Path targetDirectory,
                                                  String comment)
        Specified by:
        copy in interface org.uberfire.ext.editor.commons.service.support.SupportsCopy
      • listFiles

        public List<org.uberfire.backend.vfs.Path> listFiles()
        Specified by:
        listFiles in interface org.uberfire.ext.wires.bpmn.api.service.BpmnService
      • saveAndRename

        public org.uberfire.backend.vfs.Path saveAndRename​(org.uberfire.backend.vfs.Path path,
                                                           String newFileName,
                                                           org.uberfire.ext.wires.bpmn.api.service.todo.Metadata metadata,
                                                           org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode content,
                                                           String comment)
        Specified by:
        saveAndRename in interface org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<org.uberfire.ext.wires.bpmn.api.model.impl.nodes.ProcessNode,​org.uberfire.ext.wires.bpmn.api.service.todo.Metadata>