use of org.ovirt.engine.core.common.scheduling.ClusterPolicy in project ovirt-engine by oVirt.
the class BackendFilterResource method remove.
@Override
public Response remove() {
ClusterPolicy entity = parent.getClusterPolicy();
updateEntityForRemove(entity, guid);
return performAction(ActionType.EditClusterPolicy, new ClusterPolicyCRUDParameters(entity.getId(), entity));
}
use of org.ovirt.engine.core.common.scheduling.ClusterPolicy in project ovirt-engine by oVirt.
the class BackendPolicyUnitsResource method performAdd.
// need to revisit: update should be in a separate hierarchy
protected Response performAdd(N incoming) {
ClusterPolicy entity = getClusterPolicy();
performAction(ActionType.EditClusterPolicy, getAddParametersProvider().getParameters(incoming, entity));
entity = getClusterPolicy();
updateIncomingId(incoming);
N model = map(entity, incoming);
model = addLinks(doPopulate(model, entity));
return Response.ok(model).build();
}
Aggregations