org.jbpm.formbuilder.server.menu
Class GuvnorMenuService

java.lang.Object
  extended by org.jbpm.formbuilder.shared.menu.AbstractBaseMenuService
      extended by org.jbpm.formbuilder.server.menu.GuvnorMenuService
All Implemented Interfaces:
MenuService

public class GuvnorMenuService
extends AbstractBaseMenuService


Constructor Summary
GuvnorMenuService()
           
 
Method Summary
protected  URL asURL(String path)
           
protected  Reader createReader(URL url)
           
 void deleteMenuItem(String groupName, MenuItemDescription item)
           
 Map<String,String> getFormBuilderProperties()
           
 Map<String,List<MenuItemDescription>> listMenuItems()
           
 List<MenuOptionDescription> listOptions()
           
 List<ValidationDescription> listValidations()
           
protected  String readURL(URL url)
           
 void saveMenuItem(String groupName, MenuItemDescription item)
           
protected  void writeToURL(URL url, String json)
           
 
Methods inherited from class org.jbpm.formbuilder.shared.menu.AbstractBaseMenuService
addToMap, removeFromMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuvnorMenuService

public GuvnorMenuService()
Method Detail

listOptions

public List<MenuOptionDescription> listOptions()
                                        throws MenuServiceException
Throws:
MenuServiceException

listMenuItems

public Map<String,List<MenuItemDescription>> listMenuItems()
                                                    throws MenuServiceException
Throws:
MenuServiceException

listValidations

public List<ValidationDescription> listValidations()
                                            throws MenuServiceException
Throws:
MenuServiceException

saveMenuItem

public void saveMenuItem(String groupName,
                         MenuItemDescription item)
                  throws MenuServiceException
Throws:
MenuServiceException

deleteMenuItem

public void deleteMenuItem(String groupName,
                           MenuItemDescription item)
                    throws MenuServiceException
Throws:
MenuServiceException

getFormBuilderProperties

public Map<String,String> getFormBuilderProperties()
                                            throws MenuServiceException
Throws:
MenuServiceException

writeToURL

protected void writeToURL(URL url,
                          String json)
                   throws FileNotFoundException,
                          IOException
Throws:
FileNotFoundException
IOException

asURL

protected URL asURL(String path)
             throws URISyntaxException
Throws:
URISyntaxException

createReader

protected Reader createReader(URL url)
                       throws FileNotFoundException,
                              IOException
Throws:
FileNotFoundException
IOException

readURL

protected String readURL(URL url)
                  throws FileNotFoundException,
                         IOException
Throws:
FileNotFoundException
IOException


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