Exemplo 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);
   }
 }