Drools Workbench - Work Item Definitions Editor - Backend 6.0.0.Beta3

org.drools.workbench.screens.workitems.backend.server
Class WorkItemsEditorServiceImpl

java.lang.Object
  extended by org.drools.workbench.screens.workitems.backend.server.WorkItemsEditorServiceImpl
All Implemented Interfaces:
WorkItemsEditorService, org.kie.workbench.common.services.shared.file.SupportsCopy, org.kie.workbench.common.services.shared.file.SupportsCreate<String>, org.kie.workbench.common.services.shared.file.SupportsDelete, org.kie.workbench.common.services.shared.file.SupportsRead<String>, org.kie.workbench.common.services.shared.file.SupportsRename, org.kie.workbench.common.services.shared.file.SupportsUpdate<String>, org.kie.workbench.common.services.shared.validation.ValidationService<String>

@ApplicationScoped
public class WorkItemsEditorServiceImpl
extends Object
implements WorkItemsEditorService


Field Summary
 
Fields inherited from interface org.drools.workbench.screens.workitems.service.WorkItemsEditorService
WORK_ITEM_DEFINITION, WORK_ITEMS_EDITOR_SETTINGS, WORK_ITEMS_EDITOR_SETTINGS_DEFINITION, WORK_ITEMS_EDITOR_SETTINGS_DISPLAY_NAME, WORK_ITEMS_EDITOR_SETTINGS_PARAMETER, WORK_ITEMS_EDITOR_SETTINGS_RESULT
 
Constructor Summary
WorkItemsEditorServiceImpl()
           
 
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, String content, String comment)
           
 void delete(org.uberfire.backend.vfs.Path path, String comment)
           
 boolean isValid(org.uberfire.backend.vfs.Path path, String content)
           
 String load(org.uberfire.backend.vfs.Path path)
           
 WorkItemsModelContent loadContent(org.uberfire.backend.vfs.Path path)
           
 WorkItemDefinitionElements loadDefinitionElements()
           
 Set<org.drools.workbench.models.commons.shared.workitems.PortableWorkDefinition> loadWorkItemDefinitions(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, String content, org.kie.workbench.common.services.shared.metadata.model.Metadata metadata, String comment)
           
 void setupWorkItemDefinitionElements()
           
 org.kie.workbench.common.services.shared.validation.model.BuilderResult validate(org.uberfire.backend.vfs.Path path, String content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkItemsEditorServiceImpl

public WorkItemsEditorServiceImpl()
Method Detail

setupWorkItemDefinitionElements

@PostConstruct
public void setupWorkItemDefinitionElements()

create

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

load

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

loadContent

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

loadDefinitionElements

public WorkItemDefinitionElements loadDefinitionElements()
Specified by:
loadDefinitionElements in interface WorkItemsEditorService

save

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

delete

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

validate

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

isValid

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

loadWorkItemDefinitions

public Set<org.drools.workbench.models.commons.shared.workitems.PortableWorkDefinition> loadWorkItemDefinitions(org.uberfire.backend.vfs.Path path)
Specified by:
loadWorkItemDefinitions in interface WorkItemsEditorService

Drools Workbench - Work Item Definitions Editor - Backend 6.0.0.Beta3

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