Daniel Erez has uploaded a new change for review.

Change subject: core: introduce LibvirtSecret business entity
......................................................................

core: introduce LibvirtSecret business entity

Added LibvirtSecret business entity.

Change-Id: Ifd26c1c1ac8328f6c5a82d9531afa3ff3d0ff837
Bug-Url: https://bugzilla.redhat.com/1185826
Signed-off-by: Daniel Erez <[email protected]>
---
A 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/LibvirtSecret.java
1 file changed, 99 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/49/41549/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/LibvirtSecret.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/LibvirtSecret.java
new file mode 100644
index 0000000..d2526b9
--- /dev/null
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/LibvirtSecret.java
@@ -0,0 +1,99 @@
+package org.ovirt.engine.core.common.businessentities.storage;
+
+import org.ovirt.engine.core.common.businessentities.BusinessEntity;
+import org.ovirt.engine.core.common.businessentities.IVdcQueryable;
+import org.ovirt.engine.core.compat.Guid;
+
+import java.util.Date;
+
+public class LibvirtSecret extends IVdcQueryable implements 
BusinessEntity<Guid> {
+
+    private Guid id;
+    private String value;
+    private LibvirtSecretUsageType usageType;
+    private String description;
+    private Guid providerId;
+    private Date creationDate;
+
+    public LibvirtSecret() {
+    }
+
+    public Guid getId() {
+        return id;
+    }
+
+    public void setId(Guid id) {
+        this.id = id;
+    }
+
+    public String getValue() {
+        return value;
+    }
+
+    public void setValue(String value) {
+        this.value = value;
+    }
+
+    public LibvirtSecretUsageType getUsageType() {
+        return usageType;
+    }
+
+    public void setUsageType(LibvirtSecretUsageType usageType) {
+        this.usageType = usageType;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public Guid getProviderId() {
+        return providerId;
+    }
+
+    public Date getCreationDate() {
+        return creationDate;
+    }
+
+    public void setCreationDate(Date creationDate) {
+        this.creationDate = creationDate;
+    }
+
+    public void setProviderId(Guid providerId) {
+        this.providerId = providerId;
+    }
+
+    public Object getQueryableId() {
+        return getId();
+    }
+
+    @Override
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (o == null || getClass() != o.getClass()) return false;
+
+        LibvirtSecret that = (LibvirtSecret) o;
+
+        if (id != null ? !id.equals(that.id) : that.id != null) return false;
+        if (value != null ? !value.equals(that.value) : that.value != null) 
return false;
+        if (usageType != that.usageType) return false;
+        if (description != null ? !description.equals(that.description) : 
that.description != null) return false;
+        if (providerId != null ? !providerId.equals(that.providerId) : 
that.providerId != null) return false;
+        return !(creationDate != null ? 
!creationDate.equals(that.creationDate) : that.creationDate != null);
+
+    }
+
+    @Override
+    public int hashCode() {
+        int result = id != null ? id.hashCode() : 0;
+        result = 31 * result + (value != null ? value.hashCode() : 0);
+        result = 31 * result + (usageType != null ? usageType.hashCode() : 0);
+        result = 31 * result + (description != null ? description.hashCode() : 
0);
+        result = 31 * result + (providerId != null ? providerId.hashCode() : 
0);
+        result = 31 * result + (creationDate != null ? creationDate.hashCode() 
: 0);
+        return result;
+    }
+}


-- 
To view, visit https://gerrit.ovirt.org/41549
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd26c1c1ac8328f6c5a82d9531afa3ff3d0ff837
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to