Examples of DestroyPortlets


Examples of org.oasis.wsrp.v2.DestroyPortlets

      if (!ParameterValidation.existsAndIsNotEmpty(portletHandles))
      {
         throw new IllegalArgumentException("Cannot create a DestroyPortlets with an empty list of portlet handles!");
      }

      DestroyPortlets destroyPortlets = new DestroyPortlets();
      destroyPortlets.setRegistrationContext(registrationContext);
      destroyPortlets.getPortletHandles().addAll(portletHandles);

      return destroyPortlets;
   }
View Full Code Here

Examples of org.oasis.wsrp.v2.DestroyPortlets

      @WebParam(mode = WebParam.Mode.OUT, name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") Holder<List<V1Extension>> extensions
   ) throws V1MissingParameters, V1InconsistentParameters, V1InvalidRegistration, V1OperationFailed
   {
      try
      {
         DestroyPortlets destroyPortlets = WSRPTypeFactory.createDestroyPortlets(
            V1ToV2Converter.toV2RegistrationContext(registrationContext), portletHandles
         );
         DestroyPortletsResponse destroyPortletsResponse = producer.destroyPortlets(destroyPortlets);

         destroyFailed.value = V2ToV1Converter.toV1DestroyFailed(destroyPortletsResponse.getFailedPortlets());
View Full Code Here

Examples of org.oasis.wsrp.v2.DestroyPortlets

      @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types") UserContext userContext,
      @WebParam(name = "failedPortlets", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", mode = WebParam.Mode.OUT) Holder<List<FailedPortlets>> failedPortlets,
      @WebParam(name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", mode = WebParam.Mode.OUT) Holder<List<Extension>> extensions
   ) throws InconsistentParameters, InvalidRegistration, MissingParameters, ModifyRegistrationRequired, OperationFailed, OperationNotSupported, ResourceSuspended
   {
      DestroyPortlets destroyPortlets = WSRPTypeFactory.createDestroyPortlets(registrationContext, portletHandles);

      DestroyPortletsResponse destroyPortletsResponse = producer.destroyPortlets(destroyPortlets);

      failedPortlets.value = destroyPortletsResponse.getFailedPortlets();
      extensions.value = destroyPortletsResponse.getExtensions();
View Full Code Here

Examples of org.oasis.wsrp.v2.DestroyPortlets

      if (!ParameterValidation.existsAndIsNotEmpty(portletHandles))
      {
         throw new IllegalArgumentException("Cannot create a DestroyPortlets with an empty list of portlet handles!");
      }

      DestroyPortlets destroyPortlets = new DestroyPortlets();
      destroyPortlets.setRegistrationContext(registrationContext);
      destroyPortlets.getPortletHandles().addAll(portletHandles);

      return destroyPortlets;
   }
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.