Class SaveAndRenameServiceImpl<T,​M>

  • All Implemented Interfaces:
    org.uberfire.ext.editor.commons.service.support.SupportsRename, org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<T,​M>, org.uberfire.ext.editor.commons.service.support.SupportsUpdate<T,​M>

    public class SaveAndRenameServiceImpl<T,​M>
    extends Object
    implements org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<T,​M>
    • Constructor Detail

      • SaveAndRenameServiceImpl

        public SaveAndRenameServiceImpl()
    • Method Detail

      • init

        public void init​(org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<T,​M> updateService)
      • rename

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

        public org.uberfire.backend.vfs.Path save​(org.uberfire.backend.vfs.Path path,
                                                  T content,
                                                  M metadata,
                                                  String comment)
        Specified by:
        save in interface org.uberfire.ext.editor.commons.service.support.SupportsUpdate<T,​M>
      • saveAndRename

        public org.uberfire.backend.vfs.Path saveAndRename​(org.uberfire.backend.vfs.Path path,
                                                           String newFileName,
                                                           M metadata,
                                                           T content,
                                                           String comment)
        Specified by:
        saveAndRename in interface org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<T,​M>