Search in sources :

Example 1 with ApprovalUpdateParam

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);
}
Also used : ApprovalUpdateParam(com.emc.vipr.model.catalog.ApprovalUpdateParam)

Example 2 with ApprovalUpdateParam

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));
}
Also used : ApprovalUpdateParam(com.emc.vipr.model.catalog.ApprovalUpdateParam) ApprovalRestRep(com.emc.vipr.model.catalog.ApprovalRestRep)

Aggregations

ApprovalUpdateParam (com.emc.vipr.model.catalog.ApprovalUpdateParam)2 ApprovalRestRep (com.emc.vipr.model.catalog.ApprovalRestRep)1