use of org.ovirt.engine.api.v3.types.V3Group in project ovirt-engine by oVirt.
the class V3GroupInAdapter method adapt.
@Override
public Group adapt(V3Group from) {
Group to = new Group();
if (from.isSetLinks()) {
to.getLinks().addAll(adaptIn(from.getLinks()));
}
if (from.isSetActions()) {
to.setActions(adaptIn(from.getActions()));
}
if (from.isSetComment()) {
to.setComment(from.getComment());
}
if (from.isSetDescription()) {
to.setDescription(from.getDescription());
}
if (from.isSetDomain()) {
to.setDomain(adaptIn(from.getDomain()));
}
if (from.isSetDomainEntryId()) {
to.setDomainEntryId(from.getDomainEntryId());
}
if (from.isSetId()) {
to.setId(from.getId());
}
if (from.isSetHref()) {
to.setHref(from.getHref());
}
if (from.isSetName()) {
to.setName(from.getName());
}
if (from.isSetNamespace()) {
to.setNamespace(from.getNamespace());
}
if (from.isSetRoles()) {
to.setRoles(new Roles());
to.getRoles().getRoles().addAll(adaptIn(from.getRoles().getRoles()));
}
return to;
}