Daniel Erez has uploaded a new change for review. Change subject: core: add OpenStackVolumeProviderProperties ......................................................................
core: add OpenStackVolumeProviderProperties Adding OpenStackVolumeProviderProperties for OpenStackVolumeProviderProxy usage. Change-Id: Ie70433f4c2e7b6157565bd10824d01689f6c62a8 Bug-Url: https://bugzilla.redhat.com/1185826 Signed-off-by: Daniel Erez <de...@redhat.com> --- A backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/OpenStackVolumeProviderProperties.java 1 file changed, 58 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/02/38902/1 diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/OpenStackVolumeProviderProperties.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/OpenStackVolumeProviderProperties.java new file mode 100644 index 0000000..b22d8ff --- /dev/null +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/OpenStackVolumeProviderProperties.java @@ -0,0 +1,58 @@ +package org.ovirt.engine.core.common.businessentities.storage; + +import org.ovirt.engine.core.common.businessentities.TenantProviderProperties; +import org.ovirt.engine.core.compat.Guid; + +public class OpenStackVolumeProviderProperties extends TenantProviderProperties { + + private static final long serialVersionUID = -3887979451360188295L; + + private Guid storagePoolId; + + public OpenStackVolumeProviderProperties() { + } + + public OpenStackVolumeProviderProperties(Guid storagePoolId) { + this.storagePoolId = storagePoolId; + } + + public Guid getStoragePoolId() { + return storagePoolId; + } + + public void setStoragePoolId(Guid storagePoolId) { + this.storagePoolId = storagePoolId; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + + OpenStackVolumeProviderProperties that = (OpenStackVolumeProviderProperties) o; + + if (storagePoolId != null ? !storagePoolId.equals(that.storagePoolId) : that.storagePoolId != null) + return false; + + return true; + } + + @Override + public int hashCode() { + int result = super.hashCode(); + result = 31 * result + (storagePoolId != null ? storagePoolId.hashCode() : 0); + return result; + } + + @Override + public String toString() { + StringBuilder builder = new StringBuilder(); + builder.append("OpenStackVolumeProviderProperties [pluginType=") + .append(", tenantName=") + .append(getTenantName()) + .append("]"); + return builder.toString(); + } + +} -- To view, visit https://gerrit.ovirt.org/38902 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie70433f4c2e7b6157565bd10824d01689f6c62a8 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Daniel Erez <de...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches