Class HtmlEditorServiceImpl

  • All Implemented Interfaces:
    org.uberfire.ext.editor.commons.service.htmleditor.HtmlEditorService, org.uberfire.ext.editor.commons.service.support.SupportsCopy, org.uberfire.ext.editor.commons.service.support.SupportsDelete, org.uberfire.ext.editor.commons.service.support.SupportsRead<String>, org.uberfire.ext.editor.commons.service.support.SupportsRename, org.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<String,​org.uberfire.ext.editor.commons.file.DefaultMetadata>, org.uberfire.ext.editor.commons.service.support.SupportsUpdate<String,​org.uberfire.ext.editor.commons.file.DefaultMetadata>

    public class HtmlEditorServiceImpl
    extends Object
    implements org.uberfire.ext.editor.commons.service.htmleditor.HtmlEditorService
    • Constructor Summary

      Constructors 
      Constructor Description
      HtmlEditorServiceImpl​(org.uberfire.backend.vfs.VFSService vfsServices, org.uberfire.ext.editor.commons.service.DeleteService deleteService, org.uberfire.ext.editor.commons.service.RenameService renameService, org.uberfire.ext.editor.commons.service.CopyService copyService, SaveAndRenameServiceImpl<String,​org.uberfire.ext.editor.commons.file.DefaultMetadata> saveAndRenameService)  
    • Constructor Detail

      • HtmlEditorServiceImpl

        @Inject
        public HtmlEditorServiceImpl​(org.uberfire.backend.vfs.VFSService vfsServices,
                                     org.uberfire.ext.editor.commons.service.DeleteService deleteService,
                                     org.uberfire.ext.editor.commons.service.RenameService renameService,
                                     org.uberfire.ext.editor.commons.service.CopyService copyService,
                                     SaveAndRenameServiceImpl<String,​org.uberfire.ext.editor.commons.file.DefaultMetadata> saveAndRenameService)
    • Method Detail

      • 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
      • save

        public org.uberfire.backend.vfs.Path save​(org.uberfire.backend.vfs.Path path,
                                                  String content,
                                                  org.uberfire.ext.editor.commons.file.DefaultMetadata _metadata,
                                                  String _comment)
        Specified by:
        save in interface org.uberfire.ext.editor.commons.service.support.SupportsUpdate<String,​org.uberfire.ext.editor.commons.file.DefaultMetadata>
      • 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
      • load

        public String load​(org.uberfire.backend.vfs.Path path)
        Specified by:
        load in interface org.uberfire.ext.editor.commons.service.support.SupportsRead<String>
      • saveAndRename

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