com.emc.storageos.model.auth.ACLAssignmentChanges Maven / Gradle / Ivy
/*
* Copyright (c) 2013 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.model.auth;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "acl_assignment_changes")
public class ACLAssignmentChanges {
/**
* List of acl entries to add in this ACL change.
*
* @valid There needs to be at least an add or a remove element.
*/
private List add;
/**
* List of acl entries to remove in this ACL change.
*
* @valid There needs to be at least an add or a remove element.
*/
private List remove;
public ACLAssignmentChanges() {
}
public ACLAssignmentChanges(List add, List remove) {
this.add = add;
this.remove = remove;
}
@XmlElement(name = "add")
public List getAdd() {
if (add == null) {
add = new ArrayList();
}
return add;
}
public void setAdd(List add) {
this.add = add;
}
@XmlElement(name = "remove")
public List getRemove() {
if (remove == null) {
remove = new ArrayList();
}
return remove;
}
public void setRemove(List remove) {
this.remove = remove;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("ADD=");
builder.append(getAdd());
builder.append(", REMOVE=");
builder.append(getRemove());
return builder.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy