Tabnine Logo
ParentingPostProcessor.createAncestry
Code IndexAdd Tabnine to your IDE (free)

How to use
createAncestry
method
in
com.ocpsoft.pretty.faces.config.spi.ParentingPostProcessor

Best Java code snippets using com.ocpsoft.pretty.faces.config.spi.ParentingPostProcessor.createAncestry (Showing top 8 results out of 315)

origin: com.ocpsoft/prettyfaces-jsf2

public PrettyConfig processConfiguration(ServletContext context, PrettyConfig config)
{
 String enabled = context.getInitParameter(HIERARCHY_ENABLED_PARAM);
 if ((enabled != null) && "false".equalsIgnoreCase(enabled.trim()))
 {
   return config;
 }
 List<UrlMapping> mappings = config.getMappings();
 for (UrlMapping m : mappings)
 {
   createAncestry(config, m);
 }
 return config;
}
origin: ocpsoft/prettyfaces

public PrettyConfig processConfiguration(ServletContext context, PrettyConfig config)
{
 String enabled = context.getInitParameter(HIERARCHY_ENABLED_PARAM);
 if ((enabled != null) && "false".equalsIgnoreCase(enabled.trim()))
 {
   return config;
 }
 List<UrlMapping> mappings = config.getMappings();
 for (UrlMapping m : mappings)
 {
   createAncestry(config, m);
 }
 return config;
}
origin: ocpsoft/prettyfaces

public PrettyConfig processConfiguration(ServletContext context, PrettyConfig config)
{
 String enabled = context.getInitParameter(HIERARCHY_ENABLED_PARAM);
 if ((enabled != null) && "false".equalsIgnoreCase(enabled.trim()))
 {
   return config;
 }
 List<UrlMapping> mappings = config.getMappings();
 for (UrlMapping m : mappings)
 {
   createAncestry(config, m);
 }
 return config;
}
origin: ocpsoft/rewrite

@Override
public PrettyConfig processConfiguration(ServletContext context, PrettyConfig config)
{
 String enabled = context.getInitParameter(HIERARCHY_ENABLED_PARAM);
 if ((enabled != null) && "false".equalsIgnoreCase(enabled.trim()))
 {
   return config;
 }
 List<UrlMapping> mappings = config.getMappings();
 for (UrlMapping m : mappings)
 {
   createAncestry(config, m);
 }
 return config;
}
origin: ocpsoft/prettyfaces

private void createAncestry(PrettyConfig config, UrlMapping m)
{
 if (m.hasParent() && !seen.contains(m))
 {
   UrlMapping parent = config.getMappingById(m.getParentId());
   if (parent == null)
   {
    throw new PrettyException("Error when building configuration for URL-mapping [" + m.getId() + ":"
       + m.getPattern() + "] - the requested parentId [" + m.getParentId() + "] does not exist in the configuration.");
   }
   if (parent.hasParent())
   {
    createAncestry(config, parent);
   }
   m.setPattern(parent.getPattern() + m.getPattern());
   mergeValidators(parent, m);
   mergeActions(parent, m);
   mergeQueryParams(parent, m);
   seen.add(m);
 }
}
origin: com.ocpsoft/prettyfaces-jsf2

private void createAncestry(PrettyConfig config, UrlMapping m)
{
 if (m.hasParent() && !seen.contains(m))
 {
   UrlMapping parent = config.getMappingById(m.getParentId());
   if (parent == null)
   {
    throw new PrettyException("Error when building configuration for URL-mapping [" + m.getId() + ":"
       + m.getPattern() + "] - the requested parentId [" + m.getParentId() + "] does not exist in the configuration.");
   }
   if (parent.hasParent())
   {
    createAncestry(config, parent);
   }
   m.setPattern(parent.getPattern() + m.getPattern());
   mergeValidators(parent, m);
   mergeActions(parent, m);
   mergeQueryParams(parent, m);
   seen.add(m);
 }
}
origin: ocpsoft/prettyfaces

private void createAncestry(PrettyConfig config, UrlMapping m)
{
 if (m.hasParent() && !seen.contains(m))
 {
   UrlMapping parent = config.getMappingById(m.getParentId());
   if (parent == null)
   {
    throw new PrettyException("Error when building configuration for URL-mapping [" + m.getId() + ":"
       + m.getPattern() + "] - the requested parentId [" + m.getParentId() + "] does not exist in the configuration.");
   }
   if (parent.hasParent())
   {
    createAncestry(config, parent);
   }
   m.setPattern(parent.getPattern() + m.getPattern());
   mergeValidators(parent, m);
   mergeActions(parent, m);
   mergeQueryParams(parent, m);
   seen.add(m);
 }
}
origin: ocpsoft/rewrite

private void createAncestry(PrettyConfig config, UrlMapping m)
{
 if (m.hasParent() && !seen.contains(m))
 {
   UrlMapping parent = config.getMappingById(m.getParentId());
   if (parent == null)
   {
    throw new PrettyException("Error when building configuration for URL-mapping [" + m.getId() + ":"
         + m.getPattern() + "] - the requested parentId [" + m.getParentId()
         + "] does not exist in the configuration.");
   }
   if (parent.hasParent())
   {
    createAncestry(config, parent);
   }
   m.setPattern(parent.getPattern() + m.getPattern());
   mergeValidators(parent, m);
   mergeActions(parent, m);
   mergeQueryParams(parent, m);
   seen.add(m);
 }
}
com.ocpsoft.pretty.faces.config.spiParentingPostProcessorcreateAncestry

Popular methods of ParentingPostProcessor

  • <init>
  • copy
  • mergeActions
  • mergeQueryParams
  • mergeValidators

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for WebStorm
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