Examples of PortletDescriptionResponse


Examples of oasis.names.tc.wsrp.v1.types.PortletDescriptionResponse

        if (userCtx != null)
            request.setUserContext(userCtx);

        request.setDesiredLocales(desiredLocales);

        PortletDescriptionResponse response = null;

        try {

            response = portletPort.getPortletDescription(request);
            parameterChecker.check(response);
View Full Code Here

Examples of oasis.names.tc.wsrp.v1.types.PortletDescriptionResponse

        if (userCtx != null)
            request.setUserContext(userCtx);

        request.setDesiredLocales(desiredLocales);

        PortletDescriptionResponse response = null;

        try {

            response = portletPort.getPortletDescription(request);
            parameterChecker.check(response);
View Full Code Here

Examples of org.oasis.wsrp.v2.PortletDescriptionResponse

         if (ParameterValidation.existsAndIsNotEmpty(desiredLocales))
         {
            getPortletDescription.getDesiredLocales().addAll(desiredLocales);
         }

         PortletDescriptionResponse description = producer.getPortletDescription(getPortletDescription);

         portletDescription.value = V2ToV1Converter.toV1PortletDescription(description.getPortletDescription());
         resourceList.value = V2ToV1Converter.toV1ResourceList(description.getResourceList());
         extensions.value = WSRPUtils.transform(description.getExtensions(), V2ToV1Converter.EXTENSION);
      }
      catch (AccessDenied accessDenied)
      {
         throw V2ToV1Converter.toV1Exception(V1AccessDenied.class, accessDenied);
      }
View Full Code Here

Examples of org.oasis.wsrp.v2.PortletDescriptionResponse

      MissingParameters, ModifyRegistrationRequired, OperationFailed, OperationNotSupported, ResourceSuspended
   {
      GetPortletDescription getPortletDescription = WSRPTypeFactory.createGetPortletDescription(registrationContext, portletContext, userContext);
      getPortletDescription.getDesiredLocales().addAll(desiredLocales);

      PortletDescriptionResponse description = producer.getPortletDescription(getPortletDescription);

      portletDescription.value = description.getPortletDescription();
      resourceList.value = description.getResourceList();
      extensions.value = description.getExtensions();
   }
View Full Code Here

Examples of org.oasis.wsrp.v2.PortletDescriptionResponse

         if (ParameterValidation.existsAndIsNotEmpty(desiredLocales))
         {
            getPortletDescription.getDesiredLocales().addAll(desiredLocales);
         }

         PortletDescriptionResponse description = producer.getPortletDescription(getPortletDescription);

         portletDescription.value = V2ToV1Converter.toV1PortletDescription(description.getPortletDescription());
         resourceList.value = V2ToV1Converter.toV1ResourceList(description.getResourceList());
         extensions.value = WSRPUtils.transform(description.getExtensions(), V2ToV1Converter.EXTENSION);
      }
      catch (AccessDenied accessDenied)
      {
         throw V2ToV1Converter.toV1Exception(V1AccessDenied.class, accessDenied);
      }
View Full Code Here

Examples of org.oasis.wsrp.v2.PortletDescriptionResponse

      MissingParameters, ModifyRegistrationRequired, OperationFailed, OperationNotSupported, ResourceSuspended
   {
      GetPortletDescription getPortletDescription = WSRPTypeFactory.createGetPortletDescription(registrationContext, portletContext, userContext);
      getPortletDescription.getDesiredLocales().addAll(desiredLocales);

      PortletDescriptionResponse description = producer.getPortletDescription(getPortletDescription);

      portletDescription.value = description.getPortletDescription();
      resourceList.value = description.getResourceList();
      extensions.value = description.getExtensions();
   }
View Full Code Here

Examples of org.oasis.wsrp.v2.PortletDescriptionResponse

      MissingParameters, ModifyRegistrationRequired, OperationFailed, OperationNotSupported, ResourceSuspended
   {
      GetPortletDescription getPortletDescription = WSRPTypeFactory.createGetPortletDescription(registrationContext, portletContext, userContext);
      getPortletDescription.getDesiredLocales().addAll(desiredLocales);

      PortletDescriptionResponse description = producer.getPortletDescription(getPortletDescription);

      portletDescription.value = description.getPortletDescription();
      resourceList.value = description.getResourceList();
      extensions.value = description.getExtensions();
   }
View Full Code Here

Examples of org.oasis.wsrp.v2.PortletDescriptionResponse

         if (ParameterValidation.existsAndIsNotEmpty(desiredLocales))
         {
            getPortletDescription.getDesiredLocales().addAll(desiredLocales);
         }

         PortletDescriptionResponse description = producer.getPortletDescription(getPortletDescription);

         portletDescription.value = V2ToV1Converter.toV1PortletDescription(description.getPortletDescription());
         resourceList.value = V2ToV1Converter.toV1ResourceList(description.getResourceList());
         extensions.value = WSRPUtils.transform(description.getExtensions(), V2ToV1Converter.EXTENSION);
      }
      catch (AccessDenied accessDenied)
      {
         throw V2ToV1Converter.toV1Exception(V1AccessDenied.class, accessDenied);
      }
View Full Code Here

Examples of org.oasis.wsrp.v2.PortletDescriptionResponse

    * @since 2.6
    */
   public static PortletDescriptionResponse createPortletDescriptionResponse(PortletDescription portletDescription)
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(portletDescription, "PortletDescription");
      PortletDescriptionResponse response = new PortletDescriptionResponse();
      response.setPortletDescription(portletDescription);
      return response;
   }
View Full Code Here

Examples of org.oasis.wsrp.v2.PortletDescriptionResponse

    * @since 2.6
    */
   public static PortletDescriptionResponse createPortletDescriptionResponse(PortletDescription portletDescription)
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(portletDescription, "PortletDescription");
      PortletDescriptionResponse response = new PortletDescriptionResponse();
      response.setPortletDescription(portletDescription);
      return response;
   }
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.