Search in sources :

Example 1 with Returnable

use of com.wso2telco.core.pcrservice.Returnable in project core-util by WSO2Telco.

the class UUIDPCRGenarator method getExistingPCR.

@Override
public Returnable getExistingPCR(RequestDTO dto) throws PCRException {
    try {
        UUIDPCRService uuidpcrService = new UUIDPCRService();
        uuid = uuidpcrService.getExistingPCR(dto);
    } catch (Exception e) {
        log.error(ERROR_IN_RECEIVING_A_PCR, e);
        throw new PCRException(ERROR_IN_RECEIVING_A_PCR);
    }
    return new Returnable() {

        @Override
        public String getID() {
            return uuid;
        }
    };
}
Also used : Returnable(com.wso2telco.core.pcrservice.Returnable) PCRException(com.wso2telco.core.pcrservice.exception.PCRException) PCRException(com.wso2telco.core.pcrservice.exception.PCRException)

Example 2 with Returnable

use of com.wso2telco.core.pcrservice.Returnable in project core-util by WSO2Telco.

the class UUIDPCRGenarator method getPCR.

/* (non-Javadoc)
     * @see com.wso2telco.core.pcrservice.PCRGeneratable#getPCR(com.wso2telco.core.pcrservice.model.RequestDTO)
     */
@Override
public Returnable getPCR(RequestDTO requestDTO) throws PCRException {
    try {
        UUIDPCRService uuidpcrService = new UUIDPCRService();
        uuid = uuidpcrService.getPcr(requestDTO);
    } catch (Exception e) {
        log.error(ERROR_IN_RECEIVING_A_PCR, e);
        throw new PCRException(ERROR_IN_RECEIVING_A_PCR);
    }
    return new Returnable() {

        @Override
        public String getID() {
            // TODO Auto-generated method stub
            return uuid;
        }
    };
}
Also used : Returnable(com.wso2telco.core.pcrservice.Returnable) PCRException(com.wso2telco.core.pcrservice.exception.PCRException) PCRException(com.wso2telco.core.pcrservice.exception.PCRException)

Example 3 with Returnable

use of com.wso2telco.core.pcrservice.Returnable in project core-util by WSO2Telco.

the class UUIDPCRGenarator method getMsisdnByPcr.

@Override
public Returnable getMsisdnByPcr(String sectorId, String pcr) throws PCRException {
    try {
        UUIDPCRService uuidpcrService = new UUIDPCRService();
        uuid = uuidpcrService.getMsisdnByPcr(sectorId, pcr);
    } catch (Exception e) {
        log.error(ERROR_IN_RECIEVING_MSISDN, e);
        throw new PCRException(ERROR_IN_RECIEVING_MSISDN);
    }
    return new Returnable() {

        @Override
        public String getID() {
            return uuid;
        }
    };
}
Also used : Returnable(com.wso2telco.core.pcrservice.Returnable) PCRException(com.wso2telco.core.pcrservice.exception.PCRException) PCRException(com.wso2telco.core.pcrservice.exception.PCRException)

Aggregations

Returnable (com.wso2telco.core.pcrservice.Returnable)3 PCRException (com.wso2telco.core.pcrservice.exception.PCRException)3