Example #1
0
 public V1PortletDescriptionResponse getPortletDescription(
     V1GetPortletDescription getPortletDescription)
     throws V1AccessDenied, V1InvalidHandle, V1InvalidUserCategory, V1InconsistentParameters,
         V1MissingParameters, V1InvalidRegistration, V1OperationFailed {
   try {
     PortletDescriptionResponse portletDescriptionResponse =
         producer.getPortletDescription(
             V1ToV2Converter.toV2GetPortletDescription(getPortletDescription));
     return V2ToV1Converter.toV1PortletDescriptionResponse(portletDescriptionResponse);
   } catch (AccessDenied accessDenied) {
     throw V2ToV1Converter.toV1Exception(V1AccessDenied.class, accessDenied);
   } catch (InvalidHandle invalidHandle) {
     throw V2ToV1Converter.toV1Exception(V1InvalidHandle.class, invalidHandle);
   } catch (InvalidUserCategory invalidUserCategory) {
     throw V2ToV1Converter.toV1Exception(V1InvalidUserCategory.class, invalidUserCategory);
   } 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);
   }
 }