Drools Workbench - Fact Model Editor - Backend 6.0.0.CR1

org.drools.workbench.screens.factmodel.backend.server
Class FactModelServiceImpl

java.lang.Object
  extended by org.drools.workbench.screens.factmodel.backend.server.FactModelServiceImpl
All Implemented Interfaces:
FactModelService, org.guvnor.common.services.shared.file.SupportsCopy, org.guvnor.common.services.shared.file.SupportsCreate<FactModels>, org.guvnor.common.services.shared.file.SupportsDelete, org.guvnor.common.services.shared.file.SupportsRead<FactModels>, org.guvnor.common.services.shared.file.SupportsRename, org.guvnor.common.services.shared.file.SupportsUpdate<FactModels>, org.guvnor.common.services.shared.validation.ValidationService<FactModels>, org.kie.workbench.common.services.shared.source.ViewSourceService<FactModels>

@ApplicationScoped
public class FactModelServiceImpl
extends Object
implements FactModelService


Constructor Summary
FactModelServiceImpl()
           
 
Method Summary
 org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path, String newName, String comment)
           
 org.uberfire.backend.vfs.Path create(org.uberfire.backend.vfs.Path context, String fileName, FactModels content, String comment)
           
 void delete(org.uberfire.backend.vfs.Path path, String comment)
           
 boolean isValid(org.uberfire.backend.vfs.Path path, FactModels content)
           
 FactModels load(org.uberfire.backend.vfs.Path path)
           
 FactModelContent loadContent(org.uberfire.backend.vfs.Path path)
           
 org.uberfire.backend.vfs.Path rename(org.uberfire.backend.vfs.Path path, String newName, String comment)
           
 org.uberfire.backend.vfs.Path save(org.uberfire.backend.vfs.Path resource, FactModels content, org.guvnor.common.services.shared.metadata.model.Metadata metadata, String comment)
           
 String toSource(org.uberfire.backend.vfs.Path path, FactModels model)
           
 org.guvnor.common.services.shared.validation.model.BuilderResult validate(org.uberfire.backend.vfs.Path path, FactModels content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactModelServiceImpl

public FactModelServiceImpl()
Method Detail

create

public org.uberfire.backend.vfs.Path create(org.uberfire.backend.vfs.Path context,
                                            String fileName,
                                            FactModels content,
                                            String comment)
Specified by:
create in interface org.guvnor.common.services.shared.file.SupportsCreate<FactModels>

load

public FactModels load(org.uberfire.backend.vfs.Path path)
Specified by:
load in interface org.guvnor.common.services.shared.file.SupportsRead<FactModels>

loadContent

public FactModelContent loadContent(org.uberfire.backend.vfs.Path path)
Specified by:
loadContent in interface FactModelService

save

public org.uberfire.backend.vfs.Path save(org.uberfire.backend.vfs.Path resource,
                                          FactModels content,
                                          org.guvnor.common.services.shared.metadata.model.Metadata metadata,
                                          String comment)
Specified by:
save in interface org.guvnor.common.services.shared.file.SupportsUpdate<FactModels>

delete

public void delete(org.uberfire.backend.vfs.Path path,
                   String comment)
Specified by:
delete in interface org.guvnor.common.services.shared.file.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.guvnor.common.services.shared.file.SupportsRename

copy

public org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path,
                                          String newName,
                                          String comment)
Specified by:
copy in interface org.guvnor.common.services.shared.file.SupportsCopy

toSource

public String toSource(org.uberfire.backend.vfs.Path path,
                       FactModels model)
Specified by:
toSource in interface org.kie.workbench.common.services.shared.source.ViewSourceService<FactModels>

validate

public org.guvnor.common.services.shared.validation.model.BuilderResult validate(org.uberfire.backend.vfs.Path path,
                                                                                 FactModels content)
Specified by:
validate in interface org.guvnor.common.services.shared.validation.ValidationService<FactModels>

isValid

public boolean isValid(org.uberfire.backend.vfs.Path path,
                       FactModels content)
Specified by:
isValid in interface org.guvnor.common.services.shared.validation.ValidationService<FactModels>

Drools Workbench - Fact Model Editor - Backend 6.0.0.CR1

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