Examples of FilterType


Examples of org.apache.geronimo.xbeans.javaee6.FilterType

                throw new DeploymentException("At least one of value, urlPatterns and servletNames attributes are configured on the WebFilter annotation in the class " + cls.getName());
            }
            String[] urlPatterns = valueAttributeConfigured ? webFilter.value() : webFilter.urlPatterns();
            if (FilterMergeHandler.isFilterConfigured(filterName, mergeContext)) {
                //merge the filter annotation configuration to current web.xml
                FilterType targetFilter = FilterMergeHandler.getFilter(filterName, mergeContext);
                //merge init-param
                for (WebInitParam webInitParam : webFilter.initParams()) {
                    String paramName = webInitParam.name();
                    if (FilterInitParamMergeHandler.isFilterInitParamConfigured(filterName, paramName, mergeContext)) {
                        continue;
                    }
                    ParamValueType newParamValue = targetFilter.addNewInitParam();
                    newParamValue.addNewDescription().setStringValue(webInitParam.description());
                    newParamValue.addNewParamName().setStringValue(webInitParam.name());
                    newParamValue.addNewParamValue().setStringValue(webInitParam.value());
                    FilterInitParamMergeHandler.addFilterInitParam(filterName, newParamValue, ElementSource.ANNOTATION, mergeContext.getCurrentJarUrl(), mergeContext);
                }
            } else {
                //Create filter element
                FilterType newFilter = webApp.addNewFilter();
                newFilter.addNewFilterName().setStringValue(filterName);
                newFilter.addNewAsyncSupported().setBooleanValue(webFilter.asyncSupported());
                if (!webFilter.description().isEmpty()) {
                    newFilter.addNewDescription().setStringValue(webFilter.description());
                }
                if (!webFilter.displayName().isEmpty()) {
                    newFilter.addNewDisplayName().setStringValue(webFilter.displayName());
                }
                newFilter.addNewFilterClass().setStringValue(cls.getName());
                for (WebInitParam webInitParam : webFilter.initParams()) {
                    ParamValueType paramValue = newFilter.addNewInitParam();
                    paramValue.addNewDescription().setStringValue(webInitParam.description());
                    paramValue.addNewParamName().setStringValue(webInitParam.name());
                    paramValue.addNewParamValue().setStringValue(webInitParam.value());
                }
                if (!webFilter.smallIcon().isEmpty() || !webFilter.largeIcon().isEmpty()) {
                    IconType iconType = newFilter.addNewIcon();
                    if (!webFilter.smallIcon().isEmpty()) {
                        iconType.addNewSmallIcon().setStringValue(webFilter.smallIcon());
                    }
                    if (!webFilter.largeIcon().isEmpty()) {
                        iconType.addNewLargeIcon().setStringValue(webFilter.largeIcon());
View Full Code Here

Examples of org.apache.uima.simpleserver.config.Filter.FilterType

      }
    }
  }

  private static final void checkFilter(Filter filter, Type type, List<SimpleServerException> exc) {
    FilterType filterType = filter.getFilterType();
    switch (filterType) {
    case AND: {
      checkFilters(((AndFilter) filter).getFilters(), type, exc);
      break;
    }
View Full Code Here

Examples of org.exoplatform.applications.ooplugin.config.FilterType

      {
         throw new DialogException("Can't use this type of file!!!");
      }

      ArrayList<FilterType> filters = filterLoader.getFilterTypes(currentModelName);
      FilterType filter = filters.get(index);

      String[] fileInfo = new String[2];

      if (!fileName.endsWith("." + filter.getFileExtension()))
      {
         fileName += ("." + filter.getFileExtension());
      }

      fileInfo[0] = fileName;
      fileInfo[1] = filter.getApiName();

      return fileInfo;
   }
View Full Code Here

Examples of org.exoplatform.applications.ooplugin.config.FilterType

         ArrayList<FilterType> filters = filterLoader.getFilterTypes(currentModelName);
         if (filters.size() != 0)
         {
            for (int i = filters.size() - 1; i >= 0; i--)
            {
               FilterType currentFilter = filters.get(i);
               String filterStr = currentFilter.getLocalizedName() + " [." + currentFilter.getFileExtension() + "]";
               xComboType.addItem(filterStr, (short) 0);
               if (i == 0)
               {
                  setEditFilterValue(filterStr);
               }
View Full Code Here

Examples of org.jboss.ws.extensions.eventing.jaxws.FilterType

      }
   }

   protected FilterType getDefaultFilter()
   {
      FilterType filter = new FilterType();
      filter.setDialect(EventingConstants.getDialectXPath().toString());
      filter.getContent().add("/WindReport/State/text()='FL'");
      return filter;
   }
View Full Code Here

Examples of org.jboss.ws.extensions.eventing.jaxws.FilterType

      request.setEndTo(delivery.getNotifyTo());

      if (filterString != null)
      {
         // custom filter that applies to a certain hostname only
         FilterType filter = SysmonUtil.wrapFilterString(filterString);
      }

      // invoke subscription request
      SubscribeResponse subscriptionTicket = subscriptionPort.subscribeOp(request);
View Full Code Here

Examples of org.jboss.ws.extensions.eventing.jaxws.FilterType

      }
   }

   public static FilterType wrapFilterString(String s)
   {
      FilterType filter = new FilterType();
      filter.setDialect(EventingConstants.getDialectXPath().toString());
      filter.getContent().add(s);
      return filter;
   }
View Full Code Here

Examples of org.jboss.ws.extensions.eventing.jaxws.FilterType

      }
   }

   protected FilterType getDefaultFilter()
   {
      FilterType filter = new FilterType();
      filter.setDialect(EventingConstants.getDialectXPath().toString());
      filter.getContent().add("/WindReport/State/text()='FL'");
      return filter;
   }
View Full Code Here

Examples of org.nasutekds.server.types.FilterType

    HashMap<AttributeType, ArrayList<SearchFilter>> rangeComps =
         new HashMap<AttributeType, ArrayList<SearchFilter>>();

    for (SearchFilter filter : andFilter.getFilterComponents())
    {
      FilterType filterType = filter.getFilterType();
      if (filterType == FilterType.GREATER_OR_EQUAL ||
           filterType == FilterType.LESS_OR_EQUAL)
      {
        ArrayList<SearchFilter> rangeList;
        rangeList = rangeComps.get(filter.getAttributeType());
View Full Code Here

Examples of org.nasutekds.server.types.FilterType

  private ChangeNumber extractChangeNumber(SearchFilter filter)
  {
    AttributeType changeNumberAttrType =
      DirectoryServer.getDefaultAttributeType(CHANGE_NUMBER);

    FilterType filterType = filter.getFilterType();

    if ( (filterType.equals(FilterType.GREATER_OR_EQUAL) ||
             filterType.equals(FilterType.EQUALITY) ) &&
             (filter.getAttributeType().equals(changeNumberAttrType)))
    {
      try
      {
        ChangeNumber startingChangeNumber =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.