Package org.gatein.management.api

Examples of org.gatein.management.api.PathTemplateFilter$Builder


    @Override
    protected void execute(OperationContext operationContext, ResultHandler resultHandler, Navigation navigation)
            throws ResourceNotFoundException, OperationException {
        List<String> filterAttributes = operationContext.getAttributes().getValues("filter");
        PathTemplateFilter filter;
        try {
            filter = PathTemplateFilter.parse(filterAttributes);
        } catch (ParseException e) {
            throw new OperationException(operationContext.getOperationName(), "Could not parse filter attributes.", e);
        }

        if (filter.hasPathTemplate("nav-uri")) {
            filtered.execute(operationContext, resultHandler, filter);
        } else {
            Site site = navigation.getSite();
            String navUri = operationContext.getAddress().resolvePathTemplate("nav-uri");
            SiteKey siteKey = getSiteKey(site);
View Full Code Here


            if (pageName == null) {
                PathAddress pageAddress = operationContext.getAddress().append(page.getName());
                // We need to look up the subresource because this sets the path template resolver to be used by the filter.
                operationContext.getManagedResource().getSubResource(pageAddress);

                PathTemplateFilter filter;
                try {
                    filter = PathTemplateFilter.parse(operationContext.getAttributes().getValues("filter"));
                } catch (ParseException e) {
                    throw new OperationException(operationContext.getOperationName(), "Could not parse filter attributes.", e);
                }
View Full Code Here

   @Override
   protected void execute(OperationContext operationContext, ResultHandler resultHandler, Navigation navigation) throws ResourceNotFoundException, OperationException
   {
      List<String> filterAttributes = operationContext.getAttributes().getValues("filter");
      PathTemplateFilter filter;
      try
      {
         filter = PathTemplateFilter.parse(filterAttributes);
      }
      catch (ParseException e)
      {
         throw new OperationException(operationContext.getOperationName(), "Could not parse filter attributes.", e);
      }

      if (filter.hasPathTemplate("nav-uri"))
      {
         filtered.execute(operationContext, resultHandler, filter);
      }
      else
      {
View Full Code Here

         {
            PathAddress pageAddress = operationContext.getAddress().append(page.getName());
            // We need to look up the subresource because this sets the path template resolver to be used by the filter.
            operationContext.getManagedResource().getSubResource(pageAddress);

            PathTemplateFilter filter;
            try
            {
               filter = PathTemplateFilter.parse(operationContext.getAttributes().getValues("filter"));
            }
            catch (ParseException e)
View Full Code Here

   {
      OperationHandler handler = resource.getOperationHandler(address, operationName);
      if (handler != null && handler != this)
      {
         List<String> filterAttributes = operationContext.getAttributes().getValues("filter");
         PathTemplateFilter filter;
         try
         {
            filter = PathTemplateFilter.parse(filterAttributes);
         }
         catch (ParseException e)
View Full Code Here

TOP

Related Classes of org.gatein.management.api.PathTemplateFilter$Builder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.