Examples of accept()


Examples of org.exoplatform.services.jcr.impl.core.itemfilters.PropertyNamePatternFilter.accept()

               // full iterator
               List<PropertyImpl> props = new ArrayList<PropertyImpl>();
               for (int i = 0, length = childs.size(); i < length; i++)
               {
                  PropertyData child = childs.get(i);
                  if (filter.accept(child))
                  {
                     PropertyImpl item = (PropertyImpl)dataManager.readItem(child, nodeData(), true, false);
                     session.getActionHandler().postRead(item);
                     props.add(item);
                  }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.itemfilters.QPathEntryFilter.accept()

                           Iterator<QPathEntryFilter> patternIterator = uncachedPatterns.iterator();
                           while (patternIterator.hasNext())
                           {
                              QPathEntryFilter pattern = patternIterator.next();
                              @SuppressWarnings("unchecked")
                              List<NodeData> persistedNodeData = (List<NodeData>)pattern.accept(persistedItemList);
                              if (pattern.isExactName())
                              {
                                 if (persistedNodeData.isEmpty())
                                 {
                                    cache.put(new NullNodeData(parentData, pattern.getQPathEntry()));
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.TransientNodeData.accept()

                  // if an incoming node has the same
                  // UUID as a node already existing in this workspace,
                  // the already existing node is removed

                  RemoveVisitor remover = new RemoveVisitor();
                  existedSameIdentifier.accept(remover);

                  changes.addAll(remover.getRemovedStates());
               }

               ItemDataCopyVisitor copier =
View Full Code Here

Examples of org.exoplatform.services.rest.FilterDescriptor.accept()

    */
   public void addRequestFilter(Class<? extends RequestFilter> clazz, RequestFilter instance,
      ComponentLifecycleScope scope)
   {
      FilterDescriptor descriptor = new FilterDescriptorImpl(clazz);
      descriptor.accept(rdv);

      ObjectFactory<FilterDescriptor> factory = new PerRequestObjectFactory<FilterDescriptor>(descriptor);
      switch (scope)
      {
         case PER_REQUEST :
View Full Code Here

Examples of org.exoplatform.services.rest.impl.provider.ProviderDescriptorImpl.accept()

                  pm = new MediaTypeMap<ObjectFactory<ProviderDescriptor>>();
                  contextResolvers.put(aclazz, pm);
               }

               ProviderDescriptor descriptor = new ProviderDescriptorImpl(clazz);
               descriptor.accept(rdv);

               ObjectFactory<ProviderDescriptor> factory = null;
               switch (scope)
               {
                  case PER_REQUEST :
View Full Code Here

Examples of org.exoplatform.services.rest.impl.resource.AbstractResourceDescriptorImpl.accept()

      }
      try
      {
         AbstractResourceDescriptor descriptor = new AbstractResourceDescriptorImpl(resourceClass, invokerFactory);
         // validate AbstractResourceDescriptor
         descriptor.accept(rdv);
         if (properties != null)
         {
            descriptor.getProperties().putAll(properties);
         }
         addResource(new PerRequestObjectFactory<AbstractResourceDescriptor>(descriptor));
View Full Code Here

Examples of org.exoplatform.services.rest.impl.resource.ApplicationResource.accept()

                  appProviders.addResponseFilter((ResponseFilter)obj);
            }
            else if (clazz.getAnnotation(Path.class) != null)
            {
               AbstractResourceDescriptor descriptor = new ApplicationResource(applicationId, obj);
               descriptor.accept(rdv);
               resources.addResource(new SingletonObjectFactory<AbstractResourceDescriptor>(descriptor, obj));
            }
            else
            {
               LOG.warn("Unknown class type: " + clazz.getName() + " found in " + applicationId);
View Full Code Here

Examples of org.exoplatform.services.rest.method.MethodInvokerFilter.accept()

   {

      for (ObjectFactory<FilterDescriptor> factory : context.getProviders().getMethodInvokerFilters(context.getPath()))
      {
         MethodInvokerFilter f = (MethodInvokerFilter)factory.getInstance(context);
         f.accept(methodResource);
      }

      Object[] p = new Object[methodResource.getMethodParameters().size()];
      int i = 0;
      for (org.exoplatform.services.rest.method.MethodParameter mp : methodResource.getMethodParameters())
View Full Code Here

Examples of org.exoplatform.services.rest.provider.ProviderDescriptor.accept()

                  pm = new MediaTypeMap<ObjectFactory<ProviderDescriptor>>();
                  contextResolvers.put(aclazz, pm);
               }

               ProviderDescriptor descriptor = new ProviderDescriptorImpl(clazz);
               descriptor.accept(rdv);

               ObjectFactory<ProviderDescriptor> factory = null;
               switch (scope)
               {
                  case PER_REQUEST :
View Full Code Here

Examples of org.exoplatform.services.rest.resource.AbstractResourceDescriptor.accept()

      }
      try
      {
         AbstractResourceDescriptor descriptor = new AbstractResourceDescriptorImpl(resourceClass, invokerFactory);
         // validate AbstractResourceDescriptor
         descriptor.accept(rdv);
         if (properties != null)
         {
            descriptor.getProperties().putAll(properties);
         }
         addResource(new PerRequestObjectFactory<AbstractResourceDescriptor>(descriptor));
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.