@Entity public class OrganizationImpl extends Object
| Constructor and Description |
|---|
OrganizationImpl()
Default constructor.
|
OrganizationImpl(String id,
String name,
Set<UserInfoImpl> users) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addUser(UserInfoImpl e) |
boolean |
equals(Object obj) |
String |
getId() |
String |
getName() |
Long |
getPk() |
Set<UserInfoImpl> |
getUsers() |
int |
hashCode() |
boolean |
removeUser(UserInfoImpl ui) |
void |
setId(String id) |
void |
setName(String name) |
void |
setUsers(Set<UserInfoImpl> users) |
Organization |
toOrganization() |
String |
toString() |
public OrganizationImpl()
public OrganizationImpl(String id, String name, Set<UserInfoImpl> users)
id - the id of the organization.name - the name of the organization.users - the users in the organization.public boolean addUser(UserInfoImpl e)
e - the UserInfoImpl to add.Set.add(java.lang.Object)public String getId()
public String getName()
public Long getPk()
public Set<UserInfoImpl> getUsers()
public boolean removeUser(UserInfoImpl ui)
ui - the UserInfoImpl to remove from the Organization.Set.remove(java.lang.Object)public void setId(String id)
id - the id to setpublic void setName(String name)
name - the name to setpublic void setUsers(Set<UserInfoImpl> users)
users - the users to setpublic Organization toOrganization()
Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.