Search in sources :

Example 1 with V3Certificates

use of org.ovirt.engine.api.v3.types.V3Certificates in project ovirt-engine by oVirt.

the class V3CertificatesInAdapter method adapt.

@Override
public Certificates adapt(V3Certificates from) {
    Certificates to = new Certificates();
    if (from.isSetActions()) {
        to.setActions(adaptIn(from.getActions()));
    }
    if (from.isSetActive()) {
        to.setActive(from.getActive());
    }
    if (from.isSetSize()) {
        to.setSize(from.getSize());
    }
    if (from.isSetTotal()) {
        to.setTotal(from.getTotal());
    }
    to.getCertificates().addAll(adaptIn(from.getCertificates()));
    return to;
}
Also used : V3Certificates(org.ovirt.engine.api.v3.types.V3Certificates) Certificates(org.ovirt.engine.api.model.Certificates)

Example 2 with V3Certificates

use of org.ovirt.engine.api.v3.types.V3Certificates in project ovirt-engine by oVirt.

the class V3CertificatesOutAdapter method adapt.

@Override
public V3Certificates adapt(Certificates from) {
    V3Certificates to = new V3Certificates();
    if (from.isSetActions()) {
        to.setActions(adaptOut(from.getActions()));
    }
    if (from.isSetActive()) {
        to.setActive(from.getActive());
    }
    if (from.isSetSize()) {
        to.setSize(from.getSize());
    }
    if (from.isSetTotal()) {
        to.setTotal(from.getTotal());
    }
    to.getCertificates().addAll(adaptOut(from.getCertificates()));
    return to;
}
Also used : V3Certificates(org.ovirt.engine.api.v3.types.V3Certificates)

Aggregations

V3Certificates (org.ovirt.engine.api.v3.types.V3Certificates)2 Certificates (org.ovirt.engine.api.model.Certificates)1