enterprises.orbital.impl.evexmlapi.crp.ApiRoleHistory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eve-xml-api Show documentation
Show all versions of eve-xml-api Show documentation
Library to interact with EVE XML API servers
package enterprises.orbital.impl.evexmlapi.crp;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import enterprises.orbital.evexmlapi.crp.IMemberSecurityLog;
import enterprises.orbital.evexmlapi.crp.ISecurityRole;
public class ApiRoleHistory implements IMemberSecurityLog {
private Date changeTime;
private long characterID;
private String characterName;
private long issuerID;
private String issuerName;
private String roleLocationType;
private final Set oldRoles = new HashSet();
private final Set newRoles = new HashSet();
@Override
public Date getChangeTime() {
return changeTime;
}
public void setChangeTime(Date changeTime) {
this.changeTime = changeTime;
}
@Override
public long getCharacterID() {
return characterID;
}
public void setCharacterID(long characterID) {
this.characterID = characterID;
}
@Override
public String getCharacterName() {
return characterName;
}
public void setCharacterName(String characterName) {
this.characterName = characterName;
}
@Override
public long getIssuerID() {
return issuerID;
}
public void setIssuerID(long issuerID) {
this.issuerID = issuerID;
}
@Override
public String getIssuerName() {
return issuerName;
}
public void setIssuerName(String issuerName) {
this.issuerName = issuerName;
}
@Override
public String getRoleLocationType() {
return roleLocationType;
}
public void setRoleLocationType(String roleLocationType) {
this.roleLocationType = roleLocationType;
}
public void addSecurityRoleBag(SecurityRoleBag securityRoleBag) {
String name = securityRoleBag.getName();
if (name.equals("oldRoles")) {
oldRoles.addAll(securityRoleBag.getSecurityRoles());
} else if (name.equals("newRoles")) {
newRoles.addAll(securityRoleBag.getSecurityRoles());
}
}
@Override
public Set getOldRoles() {
return oldRoles;
}
@Override
public Set getNewRoles() {
return newRoles;
}
}