public class Organization extends Object
Modifier and Type | Field and Description |
---|---|
static Organization |
ADMIN_GROUP
The admin user group.
|
static String |
ADMIN_GROUP_NAME
The name of the admin group.
|
protected String |
id
Unique id that is also a slug usable in URLs.
|
protected String |
name
The name of the group.
|
static Organization |
PUBLIC_GROUP
The public user group.
|
protected Set<String> |
users
The ids of the users in this group.
|
Constructor and Description |
---|
Organization()
The default constructor.
|
Organization(String name) |
Organization(String name,
Set<String> users) |
Organization(String slug,
String name,
Set<String> users) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(String userId) |
boolean |
contains(Object o) |
boolean |
equals(Object obj) |
String |
getId() |
String |
getName() |
Set<String> |
getUsers() |
int |
hashCode() |
boolean |
remove(Object o) |
void |
setId(String id) |
void |
setName(String name) |
void |
setUsers(Set<String> users) |
String |
toString() |
public static final String ADMIN_GROUP_NAME
public static final Organization ADMIN_GROUP
public static final Organization PUBLIC_GROUP
protected String id
protected String name
public Organization()
public Organization(String name)
name
- The name of the Organization.public Organization(String name, Set<String> users)
name
- The name of the organization.users
- The Users in the organization.public boolean add(String userId)
userId
- The id of the User to add.List.add(java.lang.Object)
public boolean contains(Object o)
o
- The user to test.List.contains(java.lang.Object)
public String getId()
public String getName()
public boolean remove(Object o)
o
- The User to remove.List.remove(java.lang.Object)
public void setId(String id)
id
- the id to setpublic void setName(String name)
name
- the name to setCopyright © 2015 Collaborative Software Development Laboratory. All rights reserved.