use of com.emc.vipr.model.catalog.ApprovalUpdateParam in project coprhd-controller by CoprHD.
the class Approvals method action.
private static void action(URI approvalId, String status, String message) {
ApprovalUpdateParam updateParam = new ApprovalUpdateParam();
updateParam.setApprovalStatus(status);
updateParam.setMessage(message);
getCatalogClient().approvals().update(approvalId, updateParam);
}
use of com.emc.vipr.model.catalog.ApprovalUpdateParam in project coprhd-controller by CoprHD.
the class ApprovalsApi method action.
private static void action(URI approvalId, String status, String message) {
ApprovalUpdateParam updateParam = new ApprovalUpdateParam();
updateParam.setApprovalStatus(status);
updateParam.setMessage(message);
getCatalogClient().approvals().update(approvalId, updateParam);
ApprovalRestRep approval = getCatalogClient().approvals().get(approvalId);
renderApi(newApprovalInfo(approval));
}
Aggregations