Search in sources :

Example 1 with V3Group

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;
}
Also used : Group(org.ovirt.engine.api.model.Group) V3Group(org.ovirt.engine.api.v3.types.V3Group) Roles(org.ovirt.engine.api.model.Roles)

Aggregations

Group (org.ovirt.engine.api.model.Group)1 Roles (org.ovirt.engine.api.model.Roles)1 V3Group (org.ovirt.engine.api.v3.types.V3Group)1