Class HtmlEditorServiceImpl
- java.lang.Object
-
- org.uberfire.ext.editor.commons.backend.service.htmleditor.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.uberfire.backend.vfs.Pathcopy(org.uberfire.backend.vfs.Path path, String newName, String comment)org.uberfire.backend.vfs.Pathcopy(org.uberfire.backend.vfs.Path path, String newName, org.uberfire.backend.vfs.Path targetDirectory, String comment)voiddelete(org.uberfire.backend.vfs.Path path, String comment)voidinit()Stringload(org.uberfire.backend.vfs.Path path)org.uberfire.backend.vfs.Pathrename(org.uberfire.backend.vfs.Path path, String newName, String comment)org.uberfire.backend.vfs.Pathsave(org.uberfire.backend.vfs.Path path, String content, org.uberfire.ext.editor.commons.file.DefaultMetadata _metadata, String _comment)org.uberfire.backend.vfs.PathsaveAndRename(org.uberfire.backend.vfs.Path path, String newFileName, org.uberfire.ext.editor.commons.file.DefaultMetadata metadata, String content, String comment)
-
-
-
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
-
init
@PostConstruct public void init()
-
delete
public void delete(org.uberfire.backend.vfs.Path path, String comment)- Specified by:
deletein interfaceorg.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:
renamein interfaceorg.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:
savein interfaceorg.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:
copyin interfaceorg.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:
copyin interfaceorg.uberfire.ext.editor.commons.service.support.SupportsCopy
-
load
public String load(org.uberfire.backend.vfs.Path path)
- Specified by:
loadin interfaceorg.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:
saveAndRenamein interfaceorg.uberfire.ext.editor.commons.service.support.SupportsSaveAndRename<String,org.uberfire.ext.editor.commons.file.DefaultMetadata>
-
-