Kie Workbench - Common - Services Backend 6.2.0.Final

org.kie.workbench.common.services.backend.kmodule
Class KModuleServiceImpl

java.lang.Object
  extended by org.kie.workbench.common.services.backend.kmodule.KModuleServiceImpl
All Implemented Interfaces:
KModuleService, org.uberfire.ext.editor.commons.service.support.SupportsRead<KModuleModel>, org.uberfire.ext.editor.commons.service.support.SupportsUpdate<KModuleModel,org.guvnor.common.services.shared.metadata.model.Metadata>

@ApplicationScoped
public class KModuleServiceImpl
extends Object
implements KModuleService


Constructor Summary
KModuleServiceImpl()
           
KModuleServiceImpl(org.uberfire.io.IOService ioService, KieProjectService projectService, org.guvnor.common.services.shared.metadata.MetadataService metadataService, KModuleContentHandler moduleContentHandler)
           
 
Method Summary
 boolean isKModule(org.uberfire.backend.vfs.Path resource)
           
 KModuleModel load(org.uberfire.backend.vfs.Path path)
           
 org.uberfire.backend.vfs.Path save(org.uberfire.backend.vfs.Path path, KModuleModel content, org.guvnor.common.services.shared.metadata.model.Metadata metadata, String comment)
           
 org.uberfire.backend.vfs.Path setUpKModuleStructure(org.uberfire.backend.vfs.Path projectRoot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KModuleServiceImpl

public KModuleServiceImpl()

KModuleServiceImpl

@Inject
public KModuleServiceImpl(@Named(value="ioStrategy")
                                 org.uberfire.io.IOService ioService,
                                 KieProjectService projectService,
                                 org.guvnor.common.services.shared.metadata.MetadataService metadataService,
                                 KModuleContentHandler moduleContentHandler)
Method Detail

isKModule

public boolean isKModule(org.uberfire.backend.vfs.Path resource)
Specified by:
isKModule in interface KModuleService

setUpKModuleStructure

public org.uberfire.backend.vfs.Path setUpKModuleStructure(org.uberfire.backend.vfs.Path projectRoot)
Specified by:
setUpKModuleStructure in interface KModuleService

load

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

save

public org.uberfire.backend.vfs.Path save(org.uberfire.backend.vfs.Path path,
                                          KModuleModel content,
                                          org.guvnor.common.services.shared.metadata.model.Metadata metadata,
                                          String comment)
Specified by:
save in interface org.uberfire.ext.editor.commons.service.support.SupportsUpdate<KModuleModel,org.guvnor.common.services.shared.metadata.model.Metadata>

Kie Workbench - Common - Services Backend 6.2.0.Final

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.