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;
}
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;
}
Aggregations