Examples of ResourceList


Examples of org.apache.uima.fit.internal.ResourceList

        field.setAccessible(true);
       
        try {
          if (value instanceof ResourceList) {
            // Value is a multi-valued resource
            ResourceList resList = (ResourceList) value;
           
            // We cannot do this in ResourceList because the resource doesn't have access to
            // the UIMA context we use here. Resources are initialize with their own contexts
            // by the UIMA framework!
            List<Object> elements = new ArrayList<Object>();
            for (int i = 0; i < resList.getSize(); i++) {
              Object elementValue = getResourceObject(context, resList.getResourceName()
                      + PREFIX_SEPARATOR + ResourceList.ELEMENT_KEY + "[" + i + "]");
              elements.add(elementValue);
            }

            SimpleTypeConverter converter = new SimpleTypeConverter();
View Full Code Here

Examples of org.oasis.wsrp.v2.ResourceList

            }
         }

         List<FailedPortlets> failedPortlets = new ArrayList<FailedPortlets>(failedPortletsMap.values());
         //TODO: handle resources properly
         ResourceList resourceList = null;
         return WSRPTypeFactory.createCopyPortletsResponse(copiedPortlets, failedPortlets, resourceList);
      }
      catch (Exception e)
      {
         throw WSRP2ExceptionFactory.throwWSException(OperationFailed.class, "Operation Failed while trying to CopyPortlets.", e);
View Full Code Here

Examples of org.oasis.wsrp.v2.ResourceList

               }
            }
         }

         //TODO: handle resourceLists better (should be using for things like errors)
         ResourceList resourceList = null;

         byte[] exportContextBytes = exportManager.encodeExportContextData(exportContext);

         Lifetime lifetime = null;
View Full Code Here

Examples of org.oasis.wsrp.v2.ResourceList

                  failedPortlets.getImportID().add(importPortlet.getImportID());
               }
            }
         }

         ResourceList resourceList = null; //TODO: figure out what exactly should be stored in the resource list here

         return WSRPTypeFactory.createImportPortletsResponse(importedPortlets, new ArrayList<ImportPortletsFailed>(failedPortletsMap.values()), resourceList);
      }
      finally
      {
View Full Code Here

Examples of org.oasis.wsrp.v2.ResourceList

   public static ResourceList toV2ResourceList(V1ResourceList v1ResourceList)
   {
      if (v1ResourceList != null)
      {
         List<Resource> resources = WSRPUtils.transform(v1ResourceList.getResources(), RESOURCE);
         ResourceList result = WSRPTypeFactory.createResourceList(resources);

         List<Extension> extensions = WSRPUtils.transform(v1ResourceList.getExtensions(), EXTENSION);
         if (extensions != null)
         {
            result.getExtensions().addAll(extensions);
         }

         return result;
      }
      else
View Full Code Here

Examples of org.oasis.wsrp.v2.ResourceList

   public static ResourceList createResourceList(List<Resource> resources)
   {
      if (ParameterValidation.existsAndIsNotEmpty(resources))
      {
         ResourceList resourceList = new ResourceList();
         resourceList.getResources().addAll(resources);

         return resourceList;
      }
      else
      {
View Full Code Here

Examples of org.oasis.wsrp.v2.ResourceList

            }
         }

         List<FailedPortlets> failedPortlets = new ArrayList<FailedPortlets>(failedPortletsMap.values());
         //TODO: handle resources properly
         ResourceList resourceList = null;
         return WSRPTypeFactory.createCopyPortletsResponse(copiedPortlets, failedPortlets, resourceList);
      }
      catch (Exception e)
      {
         throw WSRP2ExceptionFactory.throwWSException(OperationFailed.class, "Operation Failed while trying to CopyPortlets.", e);
View Full Code Here

Examples of org.oasis.wsrp.v2.ResourceList

               }
            }
         }

         //TODO: handle resourceLists better (should be using for things like errors)
         ResourceList resourceList = null;

         byte[] exportContextBytes = producer.getExportManager().encodeExportContextData(exportContext);

         Lifetime lifetime = null;
View Full Code Here

Examples of org.oasis.wsrp.v2.ResourceList

                  failedPortlets.getImportID().add(importPortlet.getImportID());
               }
            }
         }

         ResourceList resourceList = null; //TODO: figure out what exactly should be stored in the resource list here

         return WSRPTypeFactory.createImportPortletsResponse(importedPortlets, new ArrayList<ImportPortletsFailed>(failedPortletsMap.values()), resourceList);
      }
      finally
      {
View Full Code Here

Examples of org.oasis.wsrp.v2.ResourceList

   public static ResourceList createResourceList(List<Resource> resources)
   {
      if (ParameterValidation.existsAndIsNotEmpty(resources))
      {
         ResourceList resourceList = new ResourceList();
         resourceList.getResources().addAll(resources);

         return resourceList;
      }
      else
      {
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.