org.bonitasoft.engine.identity.xml.ExportedRole Maven / Gradle / Ivy
/**
* Copyright (C) 2019 Bonitasoft S.A.
* Bonitasoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This library is free software; you can redistribute it and/or modify it under the terms
* of the GNU Lesser General Public License as published by the Free Software Foundation
* version 2.1 of the License.
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301, USA.
**/
package org.bonitasoft.engine.identity.xml;
import java.io.Serializable;
import java.util.Objects;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
@XmlAccessorType(XmlAccessType.FIELD)
public class ExportedRole implements Serializable {
@XmlAttribute
private String name;
@XmlElement
private String displayName;
@XmlElement
private String description;
@XmlElement
private String iconName;
@XmlElement
private String iconPath;
public ExportedRole() {
}
public ExportedRole(String name, String displayName, String description, String iconName, String iconPath) {
this.name = name;
this.displayName = displayName;
this.description = description;
this.iconName = iconName;
this.iconPath = iconPath;
}
public ExportedRole(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDisplayName() {
return displayName;
}
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getIconName() {
return iconName;
}
public void setIconName(String iconName) {
this.iconName = iconName;
}
public String getIconPath() {
return iconPath;
}
public void setIconPath(String iconPath) {
this.iconPath = iconPath;
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
ExportedRole that = (ExportedRole) o;
return Objects.equals(name, that.name) &&
Objects.equals(displayName, that.displayName) &&
Objects.equals(description, that.description) &&
Objects.equals(iconName, that.iconName) &&
Objects.equals(iconPath, that.iconPath);
}
@Override
public int hashCode() {
return Objects.hash(name, displayName, description, iconName, iconPath);
}
@Override
public String toString() {
return "ExportedRole{" +
"name='" + name + '\'' +
", displayName='" + displayName + '\'' +
", description='" + description + '\'' +
", iconName='" + iconName + '\'' +
", iconPath='" + iconPath + '\'' +
'}';
}
}