Esempio n. 1
0
 public V1DestroyPortletsResponse destroyPortlets(V1DestroyPortlets destroyPortlets)
     throws V1InconsistentParameters, V1MissingParameters, V1InvalidRegistration,
         V1OperationFailed {
   try {
     DestroyPortletsResponse destroyportletResponse =
         producer.destroyPortlets(V1ToV2Converter.toV2DestroyPortlets(destroyPortlets));
     return V2ToV1Converter.toV1DestroyPortlesResponse(destroyportletResponse);
   } catch (InconsistentParameters inconsistentParameters) {
     throw V2ToV1Converter.toV1Exception(V1InconsistentParameters.class, inconsistentParameters);
   } catch (MissingParameters missingParameters) {
     throw V2ToV1Converter.toV1Exception(V1MissingParameters.class, missingParameters);
   } catch (InvalidRegistration invalidRegistration) {
     throw V2ToV1Converter.toV1Exception(V1InvalidRegistration.class, invalidRegistration);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (ModifyRegistrationRequired modifyRegistrationRequired) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Need to call modifyRegistration", modifyRegistrationRequired);
   } catch (ResourceSuspended resourceSuspended) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Resource suspended", resourceSuspended);
   } catch (OperationNotSupported operationNotSupported) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Not supported", operationNotSupported);
   }
 }
Esempio n. 2
0
 public V1PortletPropertyDescriptionResponse getPortletPropertyDescription(
     V1GetPortletPropertyDescription getPortletPropertyDescription)
     throws V1MissingParameters, V1InconsistentParameters, V1InvalidUserCategory,
         V1InvalidRegistration, V1AccessDenied, V1InvalidHandle, V1OperationFailed {
   try {
     PortletPropertyDescriptionResponse portletPropertyDescriptionResponse =
         producer.getPortletPropertyDescription(
             V1ToV2Converter.toV2GetPortletPropertyDescription(getPortletPropertyDescription));
     return V2ToV1Converter.toV1PortletPropertyDescriptionResponse(
         portletPropertyDescriptionResponse);
   } catch (MissingParameters missingParameters) {
     throw V2ToV1Converter.toV1Exception(V1MissingParameters.class, missingParameters);
   } catch (InconsistentParameters inconsistentParameters) {
     throw V2ToV1Converter.toV1Exception(V1InconsistentParameters.class, inconsistentParameters);
   } catch (InvalidUserCategory invalidUserCategory) {
     throw V2ToV1Converter.toV1Exception(V1InvalidUserCategory.class, invalidUserCategory);
   } catch (InvalidRegistration invalidRegistration) {
     throw V2ToV1Converter.toV1Exception(V1InvalidRegistration.class, invalidRegistration);
   } catch (AccessDenied accessDenied) {
     throw V2ToV1Converter.toV1Exception(V1AccessDenied.class, accessDenied);
   } catch (InvalidHandle invalidHandle) {
     throw V2ToV1Converter.toV1Exception(V1InvalidHandle.class, invalidHandle);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (ModifyRegistrationRequired modifyRegistrationRequired) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Need to call modifyRegistration", modifyRegistrationRequired);
   } catch (ResourceSuspended resourceSuspended) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Resource suspended", resourceSuspended);
   } catch (OperationNotSupported operationNotSupported) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Not supported", operationNotSupported);
   }
 }
Esempio n. 3
0
 public V1RegistrationContext register(V1RegistrationData register)
     throws V1MissingParameters, V1OperationFailed {
   try {
     final RegistrationData registrationData = V1ToV2Converter.toV2RegistrationData(register);
     RegistrationContext registrationContext =
         producer.register(WSRPTypeFactory.createRegister(registrationData, null, null));
     return V2ToV1Converter.toV1RegistrationContext(registrationContext);
   } catch (MissingParameters missingParameters) {
     throw V2ToV1Converter.toV1Exception(V1MissingParameters.class, missingParameters);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (OperationNotSupported operationNotSupported) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Not supported", operationNotSupported);
   }
 }
Esempio n. 4
0
 public V1ServiceDescription getServiceDescription(V1GetServiceDescription gs)
     throws V1InvalidRegistration, V1OperationFailed {
   try {
     ServiceDescription description =
         producer.getServiceDescription(V1ToV2Converter.toV2GetServiceDescription(gs));
     return V2ToV1Converter.toV1ServiceDescription(description);
   } catch (InvalidRegistration invalidRegistration) {
     throw V2ToV1Converter.toV1Exception(V1InvalidRegistration.class, invalidRegistration);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (ModifyRegistrationRequired modifyRegistrationRequired) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Need to call modifyRegistration", modifyRegistrationRequired);
   } catch (ResourceSuspended resourceSuspended) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Resource suspended", resourceSuspended);
   }
 }
Esempio n. 5
0
 public V1RegistrationState modifyRegistration(V1ModifyRegistration modifyRegistration)
     throws V1MissingParameters, V1OperationFailed, V1InvalidRegistration {
   try {
     RegistrationState registrationState =
         producer.modifyRegistration(V1ToV2Converter.toV2ModifyRegistration(modifyRegistration));
     return V2ToV1Converter.toV1RegistrationState(registrationState);
   } catch (MissingParameters missingParameters) {
     throw V2ToV1Converter.toV1Exception(V1MissingParameters.class, missingParameters);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (InvalidRegistration invalidRegistration) {
     throw V2ToV1Converter.toV1Exception(V1MissingParameters.class, invalidRegistration);
   } catch (ResourceSuspended resourceSuspended) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Resource suspended", resourceSuspended);
   } catch (OperationNotSupported operationNotSupported) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Not supported", operationNotSupported);
   }
 }
Esempio n. 6
0
 public V1ReturnAny deregister(V1RegistrationContext deregister)
     throws V1OperationFailed, V1InvalidRegistration {
   try {
     final RegistrationContext registrationContext =
         V1ToV2Converter.toV2RegistrationContext(deregister);
     producer.deregister(WSRPTypeFactory.createDeregister(registrationContext, null));
     return null;
   } catch (InvalidRegistration invalidRegistration) {
     throw V2ToV1Converter.toV1Exception(V1InvalidRegistration.class, invalidRegistration);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (ResourceSuspended resourceSuspended) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Resource suspended", resourceSuspended);
   } catch (OperationNotSupported operationNotSupported) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Not supported", operationNotSupported);
   } catch (Exception e) {
     throw WSRP1ExceptionFactory.createWSException(V1OperationFailed.class, "Operation failed", e);
   }
 }
Esempio n. 7
0
 public V1ReturnAny initCookie(V1InitCookie initCookie)
     throws V1AccessDenied, V1OperationFailed, V1InvalidRegistration {
   try {
     producer.initCookie(V1ToV2Converter.toV2InitCookie(initCookie));
     return null;
   } catch (AccessDenied accessDenied) {
     throw V2ToV1Converter.toV1Exception(V1AccessDenied.class, accessDenied);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (InvalidRegistration invalidRegistration) {
     throw V2ToV1Converter.toV1Exception(V1InvalidRegistration.class, invalidRegistration);
   } catch (ModifyRegistrationRequired modifyRegistrationRequired) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Need to call modifyRegistration", modifyRegistrationRequired);
   } catch (ResourceSuspended resourceSuspended) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Resource suspended", resourceSuspended);
   } catch (OperationNotSupported operationNotSupported) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Not supported", operationNotSupported);
   }
 }
Esempio n. 8
0
 public V1ReturnAny releaseSessions(V1ReleaseSessions releaseSessions)
     throws V1InvalidRegistration, V1OperationFailed, V1MissingParameters, V1AccessDenied {
   try {
     producer.releaseSessions(V1ToV2Converter.toV2ReleaseSessions(releaseSessions));
     return null;
   } catch (InvalidRegistration invalidRegistration) {
     throw V2ToV1Converter.toV1Exception(V1InvalidRegistration.class, invalidRegistration);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (MissingParameters missingParameters) {
     throw V2ToV1Converter.toV1Exception(V1MissingParameters.class, missingParameters);
   } catch (AccessDenied accessDenied) {
     throw V2ToV1Converter.toV1Exception(V1AccessDenied.class, accessDenied);
   } catch (ModifyRegistrationRequired modifyRegistrationRequired) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Need to call modifyRegistration", modifyRegistrationRequired);
   } catch (ResourceSuspended resourceSuspended) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Resource suspended", resourceSuspended);
   } catch (OperationNotSupported operationNotSupported) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Not supported", operationNotSupported);
   }
 }
Esempio n. 9
0
 public V1BlockingInteractionResponse performBlockingInteraction(
     V1PerformBlockingInteraction performBlockingInteraction)
     throws V1InvalidSession, V1UnsupportedMode, V1UnsupportedMimeType, V1OperationFailed,
         V1UnsupportedWindowState, V1UnsupportedLocale, V1AccessDenied,
         V1PortletStateChangeRequired, V1InvalidRegistration, V1MissingParameters,
         V1InvalidUserCategory, V1InconsistentParameters, V1InvalidHandle, V1InvalidCookie {
   try {
     BlockingInteractionResponse blockingInteractionResponse =
         producer.performBlockingInteraction(
             V1ToV2Converter.toV2PerformBlockingInteraction(performBlockingInteraction));
     return V2ToV1Converter.toV1BlockingInteractionResponse(blockingInteractionResponse);
   } catch (InvalidSession invalidSession) {
     throw V2ToV1Converter.toV1Exception(V1InvalidSession.class, invalidSession);
   } catch (UnsupportedMode unsupportedMode) {
     throw V2ToV1Converter.toV1Exception(V1UnsupportedMode.class, unsupportedMode);
   } catch (UnsupportedMimeType unsupportedMimeType) {
     throw V2ToV1Converter.toV1Exception(V1UnsupportedMimeType.class, unsupportedMimeType);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (UnsupportedWindowState unsupportedWindowState) {
     throw V2ToV1Converter.toV1Exception(V1UnsupportedWindowState.class, unsupportedWindowState);
   } catch (UnsupportedLocale unsupportedLocale) {
     throw V2ToV1Converter.toV1Exception(V1UnsupportedLocale.class, unsupportedLocale);
   } catch (AccessDenied accessDenied) {
     throw V2ToV1Converter.toV1Exception(V1AccessDenied.class, accessDenied);
   } catch (PortletStateChangeRequired portletStateChangeRequired) {
     throw V2ToV1Converter.toV1Exception(
         V1PortletStateChangeRequired.class, portletStateChangeRequired);
   } catch (InvalidRegistration invalidRegistration) {
     throw V2ToV1Converter.toV1Exception(V1InvalidRegistration.class, invalidRegistration);
   } catch (MissingParameters missingParameters) {
     throw V2ToV1Converter.toV1Exception(V1MissingParameters.class, missingParameters);
   } catch (InvalidUserCategory invalidUserCategory) {
     throw V2ToV1Converter.toV1Exception(V1InvalidUserCategory.class, invalidUserCategory);
   } catch (InconsistentParameters inconsistentParameters) {
     throw V2ToV1Converter.toV1Exception(V1InconsistentParameters.class, inconsistentParameters);
   } catch (InvalidHandle invalidHandle) {
     throw V2ToV1Converter.toV1Exception(V1InvalidHandle.class, invalidHandle);
   } catch (InvalidCookie invalidCookie) {
     throw V2ToV1Converter.toV1Exception(V1InvalidCookie.class, invalidCookie);
   } catch (ModifyRegistrationRequired modifyRegistrationRequired) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Need to call modifyRegistration", modifyRegistrationRequired);
   } catch (ResourceSuspended resourceSuspended) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Resource suspended", resourceSuspended);
   }
 }
Esempio n. 10
0
 public V1MarkupResponse getMarkup(V1GetMarkup getMarkup)
     throws V1UnsupportedWindowState, V1InvalidCookie, V1InvalidSession, V1AccessDenied,
         V1InconsistentParameters, V1InvalidHandle, V1UnsupportedLocale, V1UnsupportedMode,
         V1OperationFailed, V1MissingParameters, V1InvalidUserCategory, V1InvalidRegistration,
         V1UnsupportedMimeType {
   try {
     MarkupResponse markupResponse = producer.getMarkup(V1ToV2Converter.toV2GetMarkup(getMarkup));
     return V2ToV1Converter.toV1MarkupResponse(markupResponse);
   } catch (UnsupportedMimeType unsupportedMimeType) {
     throw V2ToV1Converter.toV1Exception(V1UnsupportedMimeType.class, unsupportedMimeType);
   } catch (UnsupportedWindowState unsupportedWindowState) {
     throw V2ToV1Converter.toV1Exception(V1UnsupportedWindowState.class, unsupportedWindowState);
   } catch (InvalidCookie invalidCookie) {
     throw V2ToV1Converter.toV1Exception(V1InvalidCookie.class, invalidCookie);
   } catch (InvalidSession invalidSession) {
     throw V2ToV1Converter.toV1Exception(V1InvalidSession.class, invalidSession);
   } catch (AccessDenied accessDenied) {
     throw V2ToV1Converter.toV1Exception(V1AccessDenied.class, accessDenied);
   } catch (InconsistentParameters inconsistentParameters) {
     throw V2ToV1Converter.toV1Exception(V1InconsistentParameters.class, inconsistentParameters);
   } catch (InvalidHandle invalidHandle) {
     throw V2ToV1Converter.toV1Exception(V1InvalidHandle.class, invalidHandle);
   } catch (UnsupportedLocale unsupportedLocale) {
     throw V2ToV1Converter.toV1Exception(V1UnsupportedLocale.class, unsupportedLocale);
   } catch (UnsupportedMode unsupportedMode) {
     throw V2ToV1Converter.toV1Exception(V1UnsupportedMode.class, unsupportedMode);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (MissingParameters missingParameters) {
     throw V2ToV1Converter.toV1Exception(V1MissingParameters.class, missingParameters);
   } catch (InvalidUserCategory invalidUserCategory) {
     throw V2ToV1Converter.toV1Exception(V1InvalidUserCategory.class, invalidUserCategory);
   } catch (InvalidRegistration invalidRegistration) {
     throw V2ToV1Converter.toV1Exception(V1InvalidRegistration.class, invalidRegistration);
   } catch (ModifyRegistrationRequired modifyRegistrationRequired) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Need to call modifyRegistration", modifyRegistrationRequired);
   } catch (ResourceSuspended resourceSuspended) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Resource suspended", resourceSuspended);
   }
 }