Package org.uberfire.backend.server.impl
Class ExperimentalEditorServiceImpl
- java.lang.Object
-
- org.uberfire.backend.server.impl.ExperimentalEditorServiceImpl
-
- All Implemented Interfaces:
org.uberfire.ext.editor.commons.service.support.SupportsDelete,ExperimentalEditorService
@ApplicationScoped public class ExperimentalEditorServiceImpl extends Object implements ExperimentalEditorService
-
-
Constructor Summary
Constructors Constructor Description ExperimentalEditorServiceImpl(org.uberfire.spaces.SpacesAPI spaces, org.uberfire.io.IOService ioService, javax.enterprise.event.Event<ExperimentalAssetRemoved> assetRemovedEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.uberfire.backend.vfs.Pathcreate(String assetName)voiddelete(org.uberfire.backend.vfs.Path path, String comment)voidinit()protected voidinitializeFileSystem()List<org.uberfire.backend.vfs.Path>listAll()Stringload(org.uberfire.backend.vfs.Path path)voidsave(org.uberfire.backend.vfs.Path path, String content)
-
-
-
Field Detail
-
STORAGE_PATH
public static final String STORAGE_PATH
- See Also:
- Constant Field Values
-
SEPARATOR
public static final String SEPARATOR
- See Also:
- Constant Field Values
-
EXTENSION
public static final String EXTENSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExperimentalEditorServiceImpl
@Inject public ExperimentalEditorServiceImpl(org.uberfire.spaces.SpacesAPI spaces, @Named("configIO") org.uberfire.io.IOService ioService, javax.enterprise.event.Event<ExperimentalAssetRemoved> assetRemovedEvent)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
listAll
public List<org.uberfire.backend.vfs.Path> listAll()
- Specified by:
listAllin interfaceExperimentalEditorService
-
create
public org.uberfire.backend.vfs.Path create(String assetName)
- Specified by:
createin interfaceExperimentalEditorService
-
load
public String load(org.uberfire.backend.vfs.Path path)
- Specified by:
loadin interfaceExperimentalEditorService
-
save
public void save(org.uberfire.backend.vfs.Path path, String content)- Specified by:
savein interfaceExperimentalEditorService
-
delete
public void delete(org.uberfire.backend.vfs.Path path, String comment)- Specified by:
deletein interfaceorg.uberfire.ext.editor.commons.service.support.SupportsDelete
-
initializeFileSystem
protected void initializeFileSystem()
-
-