60 lines
1000 B
Java
60 lines
1000 B
Java
package org.gcube.portlets.user.workspace.shared;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
*
|
|
* @author francesco
|
|
*
|
|
*/
|
|
public class WorkspaceACL implements Serializable{
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private static final long serialVersionUID = -1682851324671600049L;
|
|
|
|
private String id;
|
|
private String label;
|
|
public enum USER_TYPE{ADMINISTRATOR, GROUP, OWNER, OTHER};
|
|
|
|
public WorkspaceACL(String id, String label) {
|
|
super();
|
|
this.id = id;
|
|
this.label = label;
|
|
}
|
|
|
|
|
|
|
|
public WorkspaceACL() {
|
|
// TODO Auto-generated constructor stub
|
|
}
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
|
|
public void setLabel(String label) {
|
|
this.label = label;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("WorkspaceACL [id=");
|
|
builder.append(id);
|
|
builder.append(", label=");
|
|
builder.append(label);
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
}
|