org.epos.eposdatamodel.UserGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of db-api Show documentation
Show all versions of db-api Show documentation
EPOS Database APIs useful to interact with EPOS Metadata Catalogue
package org.epos.eposdatamodel;
import model.RoleType;
import java.util.List;
import java.util.Objects;
public class UserGroup {
private RoleType role;
private String groupId;
public UserGroup(RoleType role, String groupId) {
this.role = role;
this.groupId = groupId;
}
public RoleType getRole() {
return role;
}
public void setRole(RoleType role) {
this.role = role;
}
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UserGroup userGroup = (UserGroup) o;
return role == userGroup.role && Objects.equals(groupId, userGroup.groupId);
}
@Override
public int hashCode() {
return Objects.hash(role, groupId);
}
@Override
public String toString() {
return "UserGroup{" +
"role=" + role +
", groupId=" + groupId +
'}';
}
}