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;
}
};
}
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;
}
};
}
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;
}
};
}
Aggregations