@Entity public class MailGroup extends AuditableModel
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(Group item)
Add the given
Group item to the groups. |
void |
addUser(User item)
Add the given
User item to the users. |
void |
clearGroups()
Clear the
groups collection. |
void |
clearUsers()
Clear the
users collection. |
boolean |
equals(Object obj) |
String |
getDescription() |
Set<Group> |
getGroups() |
Long |
getId() |
byte[] |
getImage() |
String |
getName() |
Set<User> |
getUsers() |
int |
hashCode() |
void |
removeGroup(Group item)
Remove the given
Group item from the groups. |
void |
removeUser(User item)
Remove the given
User item from the users. |
void |
setDescription(String description) |
void |
setGroups(Set<Group> groups) |
void |
setId(Long id) |
void |
setImage(byte[] image) |
void |
setName(String name) |
void |
setUsers(Set<User> users) |
String |
toString() |
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOngetArchived, getVersion, isSelected, setArchived, setSelected, setVersionpublic MailGroup()
public MailGroup(String name)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public byte[] getImage()
public void setImage(byte[] image)
public void addGroup(Group item)
Group item to the groups.item - the item to addpublic void removeGroup(Group item)
Group item from the groups.item - the item to removepublic void clearGroups()
groups collection.public void addUser(User item)
User item to the users.item - the item to addpublic void removeUser(User item)
User item from the users.item - the item to removepublic void clearUsers()
users collection.