Examples of RegistrationContext


Examples of org.oasis.wsrp.v2.RegistrationContext

      @WebParam(name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types", mode = WebParam.Mode.INOUT) Holder<List<V1Extension>> extensions
   ) throws V1InvalidRegistration, V1OperationFailed
   {
      try
      {
         RegistrationContext rc = WSRPTypeFactory.createRegistrationContext(registrationHandle);
         rc.setRegistrationState(registrationState);
         producer.deregister(WSRPTypeFactory.createDeregister(rc, null));
      }
      catch (InvalidRegistration invalidRegistration)
      {
         throw V2ToV1Converter.toV1Exception(V1InvalidRegistration.class, invalidRegistration);
View Full Code Here

Examples of org.oasis.wsrp.v2.RegistrationContext

         if (ParameterValidation.existsAndIsNotEmpty(extensions.value))
         {
            registrationData.getExtensions().addAll(WSRPUtils.transform(extensions.value, V1ToV2Converter.EXTENSION));
         }

         RegistrationContext registrationContext = producer.register(registrationData);
         registrationHandle.value = registrationContext.getRegistrationHandle();
         registrationState.value = registrationContext.getRegistrationState();
         extensions.value = WSRPUtils.transform(registrationContext.getExtensions(), V2ToV1Converter.EXTENSION);
      }
      catch (MissingParameters missingParameters)
      {
         throw V2ToV1Converter.toV1Exception(V1MissingParameters.class, missingParameters);
      }
View Full Code Here

Examples of org.oasis.wsrp.v2.RegistrationContext

      @WebParam(name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v1:types", mode = WebParam.Mode.INOUT) Holder<List<V1Extension>> extensions
   ) throws V1InvalidRegistration, V1OperationFailed
   {
      try
      {
         RegistrationContext rc = WSRPTypeFactory.createRegistrationContext(registrationHandle);
         rc.setRegistrationState(registrationState);
         producer.deregister(rc);
      }
      catch (InvalidRegistration invalidRegistration)
      {
         throw V2ToV1Converter.toV1Exception(V1InvalidRegistration.class, invalidRegistration);
View Full Code Here

Examples of org.oasis.wsrp.v2.RegistrationContext

      @WebParam(name = "scheduledDestruction", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", mode = WebParam.Mode.OUT) Holder<Lifetime> scheduledDestruction,
      @WebParam(name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", mode = WebParam.Mode.OUT) Holder<List<Extension>> extensions,
      @WebParam(name = "registrationHandle", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", mode = WebParam.Mode.OUT) Holder<String> registrationHandle)
      throws MissingParameters, OperationFailed, OperationNotSupported
   {
      RegistrationContext registrationContext = producer.register(registrationData);

      registrationHandle.value = registrationContext.getRegistrationHandle();
      registrationState.value = registrationContext.getRegistrationState();
      extensions.value = registrationContext.getExtensions();
   }
View Full Code Here

Examples of org.oasis.wsrp.v2.RegistrationContext

      PortletContext portletContext = decode(portletHandle);

      String resourceId = path.substring(portletHandleEnd);

      String registrationHandle = req.getParameter(REG_HANDLE);
      RegistrationContext registrationContext = null;
      if (!ParameterValidation.isNullOrEmpty(registrationHandle))
      {
         registrationContext = WSRPTypeFactory.createRegistrationContext(registrationHandle);
      }
View Full Code Here

Examples of org.oasis.wsrp.v2.RegistrationContext

   public static RegistrationContext toV2RegistrationContext(V1RegistrationContext registrationContext)
   {
      if (registrationContext != null)
      {
         RegistrationContext result = WSRPTypeFactory.createRegistrationContext(registrationContext.getRegistrationHandle());
         result.setRegistrationState(registrationContext.getRegistrationState());
         List<Extension> extensions = WSRPUtils.transform(registrationContext.getExtensions(), EXTENSION);
         if (extensions != null)
         {
            result.getExtensions().addAll(extensions);
         }

         return result;
      }
      else
View Full Code Here

Examples of org.oasis.wsrp.v2.RegistrationContext

      if (getMarkup != null)
      {
         PortletContext portletContext = toV2PortletContext(getMarkup.getPortletContext());
         RuntimeContext runtimeContext = toV2RuntimeContext(getMarkup.getRuntimeContext(), portletContext.getPortletHandle());
         MarkupParams markupParams = toV2MarkupParams(getMarkup.getMarkupParams());
         RegistrationContext registrationContext = toV2RegistrationContext(getMarkup.getRegistrationContext());
         UserContext userContext = toV2UserContext(getMarkup.getUserContext());

         return WSRPTypeFactory.createGetMarkup(registrationContext, portletContext, runtimeContext, userContext, markupParams);
      }
      else
View Full Code Here

Examples of org.oasis.wsrp.v2.RegistrationContext

   public static ModifyRegistration toV2ModifyRegistration(V1ModifyRegistration modifyRegistration)
   {
      if (modifyRegistration != null)
      {
         RegistrationContext registrationContext = toV2RegistrationContext(modifyRegistration.getRegistrationContext());
         RegistrationData registrationData = toV2RegistrationData(modifyRegistration.getRegistrationData());
         ModifyRegistration result = WSRPTypeFactory.createModifyRegistration(registrationContext, registrationData);

         return result;
      }
View Full Code Here

Examples of org.oasis.wsrp.v2.RegistrationContext

   public static ClonePortlet toV2ClonePortlet(V1ClonePortlet clonePortlet)
   {
      if (clonePortlet != null)
      {
         RegistrationContext registrationContext = toV2RegistrationContext(clonePortlet.getRegistrationContext());
         PortletContext portletContext = toV2PortletContext(clonePortlet.getPortletContext());
         UserContext userContext = toV2UserContext(clonePortlet.getUserContext());
         ClonePortlet result = WSRPTypeFactory.createClonePortlet(registrationContext, portletContext, userContext);

         return result;
View Full Code Here

Examples of org.oasis.wsrp.v2.RegistrationContext

   public static DestroyPortlets toV2DestroyPortlets(V1DestroyPortlets destroyPortlets)
   {
      if (destroyPortlets != null)
      {
         RegistrationContext registrationContext = toV2RegistrationContext(destroyPortlets.getRegistrationContext());
         DestroyPortlets result = WSRPTypeFactory.createDestroyPortlets(registrationContext, destroyPortlets.getPortletHandles());
         return result;
      }
      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.