Examples of CopyPortlets


Examples of org.oasis.wsrp.v2.CopyPortlets

      @WebParam(name = "failedPortlets", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", mode = WebParam.Mode.OUT) Holder<List<FailedPortlets>> failedPortlets,
      @WebParam(name = "resourceList", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", mode = WebParam.Mode.OUT) Holder<ResourceList> resourceList,
      @WebParam(name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", mode = WebParam.Mode.OUT) Holder<List<Extension>> extensions
   ) throws AccessDenied, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, MissingParameters, ModifyRegistrationRequired, OperationFailed, OperationNotSupported, ResourceSuspended
   {
      final CopyPortlets copyPortlets = WSRPTypeFactory.createCopyPortlets(toRegistrationContext, toUserContext, fromRegistrationContext, fromUserContext, fromPortletContexts);
      copyPortlets.setLifetime(lifetime);

      final CopyPortletsResponse copyPortletsResponse = producer.copyPortlets(copyPortlets);

      copiedPortlets.value = copyPortletsResponse.getCopiedPortlets();
      failedPortlets.value = copyPortletsResponse.getFailedPortlets();
View Full Code Here

Examples of org.oasis.wsrp.v2.CopyPortlets

      if (!ParameterValidation.existsAndIsNotEmpty(fromPortletContexts))
      {
         throw new IllegalArgumentException("Must provide at least one PortletContext to CopyPortlets.");
      }

      CopyPortlets copyPortlets = new CopyPortlets();
      copyPortlets.setToRegistrationContext(toRegistrationContext);
      copyPortlets.setToUserContext(toUserContext);
      copyPortlets.setFromRegistrationContext(fromRegistrationContext);
      copyPortlets.setFromUserContext(fromUserContext);
      copyPortlets.getFromPortletContexts().addAll(fromPortletContexts);

      return copyPortlets;
   }
View Full Code Here

Examples of org.oasis.wsrp.v2.CopyPortlets

      if (!ParameterValidation.existsAndIsNotEmpty(fromPortletContexts))
      {
         throw new IllegalArgumentException("Must provide at least one PortletContext to CopyPortlets.");
      }

      CopyPortlets copyPortlets = new CopyPortlets();
      copyPortlets.setToRegistrationContext(toRegistrationContext);
      copyPortlets.setToUserContext(toUserContext);
      copyPortlets.setFromRegistrationContext(fromRegistrationContext);
      copyPortlets.setFromUserContext(fromUserContext);
      copyPortlets.getFromPortletContexts().addAll(fromPortletContexts);

      return copyPortlets;
   }
View Full Code Here

Examples of org.oasis.wsrp.v2.CopyPortlets

      @WebParam(name = "failedPortlets", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", mode = WebParam.Mode.OUT) Holder<List<FailedPortlets>> failedPortlets,
      @WebParam(name = "resourceList", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", mode = WebParam.Mode.OUT) Holder<ResourceList> resourceList,
      @WebParam(name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", mode = WebParam.Mode.OUT) Holder<List<Extension>> extensions
   ) throws AccessDenied, InconsistentParameters, InvalidHandle, InvalidRegistration, InvalidUserCategory, MissingParameters, ModifyRegistrationRequired, OperationFailed, OperationNotSupported, ResourceSuspended
   {
      final CopyPortlets copyPortlets = WSRPTypeFactory.createCopyPortlets(toRegistrationContext, toUserContext, fromRegistrationContext, fromUserContext, fromPortletContexts);
      copyPortlets.setLifetime(lifetime);

      final CopyPortletsResponse copyPortletsResponse = producer.copyPortlets(copyPortlets);

      copiedPortlets.value = copyPortletsResponse.getCopiedPortlets();
      failedPortlets.value = copyPortletsResponse.getFailedPortlets();
View Full Code Here

Examples of org.oasis.wsrp.v2.CopyPortlets

      if (!ParameterValidation.existsAndIsNotEmpty(fromPortletContexts))
      {
         throw new IllegalArgumentException("Must provide at least one PortletContext to CopyPortlets.");
      }

      CopyPortlets copyPortlets = new CopyPortlets();
      copyPortlets.setToRegistrationContext(toRegistrationContext);
      copyPortlets.setToUserContext(toUserContext);
      copyPortlets.setFromRegistrationContext(fromRegistrationContext);
      copyPortlets.setFromUserContext(fromUserContext);
      copyPortlets.getFromPortletContexts().addAll(fromPortletContexts);

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