Tabnine Logo
FilterBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
FilterBuilder
in
jrds.configuration

Best Java code snippets using jrds.configuration.FilterBuilder (Showing top 5 results out of 315)

origin: fbacchella/jrds

public Map<String, Filter> setFilterMap() {
  Map<String, JrdsDocument> nodemap = load.getRepository(ConfigType.FILTER);
  FilterBuilder ob = new FilterBuilder();
  ob.setPm(pm);
  Map<String, Filter> filtersMap = getObjectMap(ob, nodemap);
  logger.debug(jrds.Util.delayedFormatString("Filters configured: %s", filtersMap.keySet()));
  return filtersMap;
}
origin: fbacchella/jrds

@Override
Filter build(JrdsDocument n) throws InvocationTargetException {
  try {
    return makeFilter(n);
  } catch (SecurityException | IllegalArgumentException | NoSuchMethodException | IllegalAccessException | InstantiationException e) {
    throw new InvocationTargetException(e, FilterBuilder.class.getName());
  }
}
origin: fbacchella/jrds

private Filter doFilter(JrdsDocument d) throws SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException, IOException {
  FilterBuilder sm = new FilterBuilder();
  sm.setPm(Tools.makePm(testFolder, "security=true"));
  return sm.makeFilter(d);
}
origin: fbacchella/jrds

public Filter makeFilter(JrdsDocument n) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {
  JrdsElement root = n.getRootElement();
  JrdsElement name = root.getElementbyName("name");
  if(name == null)
    return null;
  FilterXml f = new FilterXml(name.getTextContent());
  setMethod(root.getChildElementsByName("path"), f, "addPath", String.class);
  setMethod(root.getChildElementsByName("tag"), f, "addTag", String.class);
  setMethod(root.getChildElementsByName("qualifiedname"), f, "addGraph", String.class);
  doACL(f, n, root);
  logger.trace(Util.delayedFormatString("Filter loaded: %s", f.getName()));
  return f;
}
origin: fbacchella/jrds

@Test
public void testFilter() throws Exception {
  JrdsDocument d = Tools.parseRessource("view1.xml");
  PropertiesManager pm = Tools.makePm(testFolder);
  FilterBuilder fb = new FilterBuilder();
  fb.setPm(pm);
  Filter f = fb.makeFilter(d);
  Assert.assertEquals("Test view 1", f.getName());
}
jrds.configurationFilterBuilder

Most used methods

  • <init>
  • makeFilter
  • setPm
  • doACL
  • setMethod

Popular in Java

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • String (java.lang)
  • Permission (java.security)
    Legacy security code; do not use.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top Vim plugins
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