Package org.oasis.wsrp.v2

Examples of org.oasis.wsrp.v2.InitCookie


   protected HandleEventsResponse internalProcessResponse(PortletInvocationResponse response)
   {
      if (response instanceof UpdateNavigationalStateResponse)
      {
         UpdateNavigationalStateResponse unsResponse = (UpdateNavigationalStateResponse)response;
         HandleEventsResponse eventsResponse = WSRPTypeFactory.createHandleEventsReponse();

         UpdateResponse updateResponse = createUpdateResponse(unsResponse);
         eventsResponse.setUpdateResponse(updateResponse);

         return eventsResponse;
      }
      else
      {
View Full Code Here


               if (!failedPortletsMap.containsKey(errorCode.name()))
               {
                  List<String> portleIDs = new ArrayList<String>();
                  portleIDs.add(importPortlet.getImportID());

                  ImportPortletsFailed failedPortlets = WSRPTypeFactory.createImportPortletsFailed(portleIDs, errorCode, reason);
                  failedPortletsMap.put(errorCode.name(), failedPortlets);
               }
               else
               {
                  ImportPortletsFailed failedPortlets = failedPortletsMap.get(errorCode.name());
                  failedPortlets.getImportID().add(importPortlet.getImportID());
               }
            }
         }

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

               org.gatein.pc.api.PortletContext pcPortletContext = WSRPUtils.convertToPortalPortletContext(pc);

               org.gatein.pc.api.PortletContext cpc = producer.getPortletInvoker().importPortlet(PortletStateType.OPAQUE, pcPortletContext);
               PortletContext wpc = WSRPUtils.convertToWSRPPortletContext(cpc);

               ImportedPortlet importedPortlet = WSRPTypeFactory.createImportedPortlet(importPortlet.getImportID(), wpc);

               importedPortlets.add(importedPortlet);
            }
            catch (Exception e)
            {
View Full Code Here

      @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") V1RegistrationContext registrationContext
   ) throws V1InvalidRegistration, V1AccessDenied, V1OperationFailed
   {
      forceSessionAccess();

      InitCookie initCookie = WSRPTypeFactory.createInitCookie(V1ToV2Converter.toV2RegistrationContext(registrationContext));

      List<Extension> extensions;
      try
      {
         extensions = producer.initCookie(initCookie);
View Full Code Here

      @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types") UserContext userContext
   ) throws AccessDenied, InvalidRegistration, ModifyRegistrationRequired, OperationFailed, OperationNotSupported, ResourceSuspended
   {
      forceSessionAccess();

      InitCookie initCookie = WSRPTypeFactory.createInitCookie(registrationContext);

      return producer.initCookie(initCookie);
   }
View Full Code Here

      @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") V1RegistrationContext registrationContext
   ) throws V1InvalidRegistration, V1AccessDenied, V1OperationFailed
   {
      forceSessionAccess();

      InitCookie initCookie = WSRPTypeFactory.createInitCookie(V1ToV2Converter.toV2RegistrationContext(registrationContext));

      List<Extension> extensions;
      try
      {
         extensions = producer.initCookie(initCookie);
View Full Code Here

      @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types") UserContext userContext
   ) throws AccessDenied, InvalidRegistration, ModifyRegistrationRequired, OperationFailed, OperationNotSupported, ResourceSuspended
   {
      forceSessionAccess();

      InitCookie initCookie = WSRPTypeFactory.createInitCookie(registrationContext);

      return producer.initCookie(initCookie);
   }
View Full Code Here

      @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types") UserContext userContext
   ) throws AccessDenied, InvalidRegistration, ModifyRegistrationRequired, OperationFailed, OperationNotSupported, ResourceSuspended
   {
      forceSessionAccess();

      InitCookie initCookie = WSRPTypeFactory.createInitCookie(registrationContext);

      return producer.initCookie(initCookie);
   }
View Full Code Here

      @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types") V1RegistrationContext registrationContext
   ) throws V1InvalidRegistration, V1AccessDenied, V1OperationFailed
   {
      forceSessionAccess();

      InitCookie initCookie = WSRPTypeFactory.createInitCookie(V1ToV2Converter.toV2RegistrationContext(registrationContext));

      List<Extension> extensions;
      try
      {
         extensions = producer.initCookie(initCookie);
View Full Code Here

   public static InitCookie toV2InitCookie(V1InitCookie initCookie)
   {
      if (initCookie != null)
      {
         RegistrationContext registrationContext = toV2RegistrationContext(initCookie.getRegistrationContext());
         InitCookie result = WSRPTypeFactory.createInitCookie(registrationContext);

         return result;
      }
      else
      {
View Full Code Here

TOP

Related Classes of org.oasis.wsrp.v2.InitCookie

Copyright © 2018 www.massapicom. 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.