congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FSMenuService.asURL
Code IndexAdd Tabnine to your IDE (free)

How to use
asURL
method
in
org.jbpm.form.builder.services.impl.fs.FSMenuService

Best Java code snippets using org.jbpm.form.builder.services.impl.fs.FSMenuService.asURL (Showing top 10 results out of 315)

origin: org.jbpm/jbpm-form-services

@Override 
protected URL asURL(String path) throws URISyntaxException {
  if (exceptionType != null && exceptionType.equals(URISyntaxException.class)) throw new URISyntaxException(path, "mocking");
  return super.asURL(path);
}
@Override 
origin: org.jbpm/form-services

@Override 
protected URL asURL(String path) throws URISyntaxException {
  if (exceptionType != null && exceptionType.equals(URISyntaxException.class)) throw new URISyntaxException(path, "mocking");
  return super.asURL(path);
}
@Override 
origin: org.jbpm/jbpm-form-services

@Override
public List<MenuOptionDescription> listOptions() throws MenuServiceException {
  Gson gson = new Gson();
  List<MenuOptionDescription> retval = new ArrayList<MenuOptionDescription>();
  try {
    URL url = asURL("/menuOptions.json");
    retval = gson.fromJson(createReader(url), new TypeToken<List<MenuOptionDescription>>(){}.getType());
  } catch (URISyntaxException e) {
    throw new MenuServiceException("Problem finding menu options json file", e); 
  } catch (FileNotFoundException e) {
    throw new MenuServiceException("No menu options json file found", e);
  } catch (Exception e) {
    throw new MenuServiceException("Unexpected error", e);
  }
  return retval;
}

origin: org.jbpm/form-services

@Override
public List<MenuOptionDescription> listOptions() throws MenuServiceException {
  Gson gson = new Gson();
  List<MenuOptionDescription> retval = new ArrayList<MenuOptionDescription>();
  try {
    URL url = asURL("/menuOptions.json");
    retval = gson.fromJson(createReader(url), new TypeToken<List<MenuOptionDescription>>(){}.getType());
  } catch (URISyntaxException e) {
    throw new MenuServiceException("Problem finding menu options json file", e); 
  } catch (FileNotFoundException e) {
    throw new MenuServiceException("No menu options json file found", e);
  } catch (Exception e) {
    throw new MenuServiceException("Unexpected error", e);
  }
  return retval;
}

origin: org.jbpm/jbpm-form-services

@Override
public List<ValidationDescription> listValidations() throws MenuServiceException {
  Gson gson = new Gson();
  List<ValidationDescription> retval = null;
  try {
    URL url = asURL("/validations.json");
    retval = gson.fromJson(createReader(url), new TypeToken<List<ValidationDescription>>(){}.getType());
  } catch (URISyntaxException e) {
    throw new MenuServiceException("Problem finding validations json file", e); 
  } catch (FileNotFoundException e) {
    throw new MenuServiceException("No validations json file found", e);
  } catch (Exception e) {
    throw new MenuServiceException("Unexpected error", e);
  }
  return retval;
}

origin: org.jbpm/form-services

@Override
public List<ValidationDescription> listValidations() throws MenuServiceException {
  Gson gson = new Gson();
  List<ValidationDescription> retval = null;
  try {
    URL url = asURL("/validations.json");
    retval = gson.fromJson(createReader(url), new TypeToken<List<ValidationDescription>>(){}.getType());
  } catch (URISyntaxException e) {
    throw new MenuServiceException("Problem finding validations json file", e); 
  } catch (FileNotFoundException e) {
    throw new MenuServiceException("No validations json file found", e);
  } catch (Exception e) {
    throw new MenuServiceException("Unexpected error", e);
  }
  return retval;
}

origin: org.jbpm/form-services

private void writeMenuItems(Map<String, List<MenuItemDescription>> items) throws MenuServiceException {
  try {
    FormRepresentationEncoder encoder = FormEncodingFactory.getEncoder();
    String json = encoder.encodeMenuItemsMap(items);
    URL url = asURL("/menuItems.json");
    writeToURL(url, json);
  } catch (FormEncodingException e) {
    throw new MenuServiceException("Problem transforming menu items to json", e);
  } catch (URISyntaxException e) {
    throw new MenuServiceException("Problem finding menu items json file", e);
  } catch (FileNotFoundException e) {
    throw new MenuServiceException("No menu items json file found", e);
  } catch (IOException e) {
    throw new MenuServiceException("Problem writing menu items json file", e);
  } catch (Exception e) {
    throw new MenuServiceException("Unexpected error", e);
  }
}
origin: org.jbpm/jbpm-form-services

private void writeMenuItems(Map<String, List<MenuItemDescription>> items) throws MenuServiceException {
  try {
    FormRepresentationEncoder encoder = FormEncodingFactory.getEncoder();
    String json = encoder.encodeMenuItemsMap(items);
    URL url = asURL("/menuItems.json");
    writeToURL(url, json);
  } catch (FormEncodingException e) {
    throw new MenuServiceException("Problem transforming menu items to json", e);
  } catch (URISyntaxException e) {
    throw new MenuServiceException("Problem finding menu items json file", e);
  } catch (FileNotFoundException e) {
    throw new MenuServiceException("No menu items json file found", e);
  } catch (IOException e) {
    throw new MenuServiceException("Problem writing menu items json file", e);
  } catch (Exception e) {
    throw new MenuServiceException("Unexpected error", e);
  }
}
origin: org.jbpm/jbpm-form-services

@Override
public Map<String, List<MenuItemDescription>> listMenuItems() throws MenuServiceException {
  Map<String, List<MenuItemDescription>> retval = null;
  try {
    FormRepresentationDecoder decoder = FormEncodingFactory.getDecoder();
    URL url = asURL("/menuItems.json");
    String json = readURL(url);
    retval = decoder.decodeMenuItemsMap(json);
  } catch (FormEncodingException e) {
    throw new MenuServiceException("Problem parsing menu items json file", e);
  } catch (URISyntaxException e) {
    throw new MenuServiceException("Problem finding menu items json file", e);
  } catch (FileNotFoundException e) {
    throw new MenuServiceException("No menu items json file found", e);
  } catch (IOException e) {
    throw new MenuServiceException("Problem reading menu items json file", e);
  } catch (Exception e) {
    throw new MenuServiceException("Unexpected error", e);
  }
  return retval;
}
origin: org.jbpm/form-services

@Override
public Map<String, List<MenuItemDescription>> listMenuItems() throws MenuServiceException {
  Map<String, List<MenuItemDescription>> retval = null;
  try {
    FormRepresentationDecoder decoder = FormEncodingFactory.getDecoder();
    URL url = asURL("/menuItems.json");
    String json = readURL(url);
    retval = decoder.decodeMenuItemsMap(json);
  } catch (FormEncodingException e) {
    throw new MenuServiceException("Problem parsing menu items json file", e);
  } catch (URISyntaxException e) {
    throw new MenuServiceException("Problem finding menu items json file", e);
  } catch (FileNotFoundException e) {
    throw new MenuServiceException("No menu items json file found", e);
  } catch (IOException e) {
    throw new MenuServiceException("Problem reading menu items json file", e);
  } catch (Exception e) {
    throw new MenuServiceException("Unexpected error", e);
  }
  return retval;
}
org.jbpm.form.builder.services.impl.fsFSMenuServiceasURL

Popular methods of FSMenuService

  • createReader
  • listMenuItems
  • readURL
  • writeToURL
  • <init>
  • addToMap
  • getFormBuilderProperties
  • listOptions
  • listValidations
  • removeFromMap
  • saveMenuItem
  • writeMenuItems
  • saveMenuItem,
  • writeMenuItems

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • startActivity (Activity)
  • setContentView (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Join (org.hibernate.mapping)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now