use of org.ovirt.engine.core.common.businessentities.pm.FenceAgent in project ovirt-engine by oVirt.
the class BackendFenceAgentResource method update.
@Override
public Agent update(Agent agent) {
QueryIdResolver<Guid> agentResolver = new QueryIdResolver<>(QueryType.GetFenceAgentById, IdQueryParameters.class);
FenceAgent entity = getEntity(agentResolver, true);
return performUpdate(agent, entity, map(entity), agentResolver, ActionType.UpdateFenceAgent, new UpdateParametersProvider());
}
use of org.ovirt.engine.core.common.businessentities.pm.FenceAgent in project ovirt-engine by oVirt.
the class BackendFenceAgentsResource method mapCollection.
private Agents mapCollection(List<FenceAgent> fenceAgents) {
Agents agents = new Agents();
for (FenceAgent fenceAgent : fenceAgents) {
Agent agent = map(fenceAgent, null);
agents.getAgents().add(addLinks(populate(agent, fenceAgent)));
}
return agents;
}
Aggregations