4A Server -
2.0
|
Class representing user group. More...
Public Member Functions | |
UserGroup () | |
UserGroup (Integer id) | |
UserGroup (Integer id, String name) | |
UserGroup (String name) | |
Integer | getId () |
void | setId (Integer id) |
String | getName () |
void | setName (String name) |
List< User > | getUsers () |
ArrayList< User > | getUsersAL () |
void | setUsers (List< User > users) |
void | setUsers (ArrayList< User > users) |
void | addUser (User user) |
String | getUri () |
int | hashCode () |
boolean | equals (Object object) |
String | toString () |
String | toXMLString () |
String | toXMLStringWP () |
Public Attributes | |
List< User > | users |
Private Attributes | |
Integer | id |
String | name |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
Class representing user group.
Class representing user group
Definition at line 47 of file UserGroup.java.
cz.vutbr.fit.knot.annotations.entity.UserGroup.UserGroup | ( | ) |
Constructor
Definition at line 72 of file UserGroup.java.
cz.vutbr.fit.knot.annotations.entity.UserGroup.UserGroup | ( | Integer | id | ) |
Constructor of reference objects for searching purposes - no initialization needed
id | Id of group |
Definition at line 81 of file UserGroup.java.
cz.vutbr.fit.knot.annotations.entity.UserGroup.UserGroup | ( | Integer | id, |
String | name | ||
) |
Constructor
id | Id of group |
name | Name of group |
Definition at line 91 of file UserGroup.java.
cz.vutbr.fit.knot.annotations.entity.UserGroup.UserGroup | ( | String | name | ) |
void cz.vutbr.fit.knot.annotations.entity.UserGroup.addUser | ( | User | user | ) |
Adds user to the group
user | User to be added |
Definition at line 184 of file UserGroup.java.
boolean cz.vutbr.fit.knot.annotations.entity.UserGroup.equals | ( | Object | object | ) |
Compares this with other object and returns, whether objects are same type and have same id.
object | Object to compare with |
Definition at line 212 of file UserGroup.java.
Integer cz.vutbr.fit.knot.annotations.entity.UserGroup.getId | ( | ) |
Gets id of user group
Definition at line 112 of file UserGroup.java.
String cz.vutbr.fit.knot.annotations.entity.UserGroup.getName | ( | ) |
Gets name of group
Definition at line 130 of file UserGroup.java.
String cz.vutbr.fit.knot.annotations.entity.UserGroup.getUri | ( | ) |
Gets user group's URI (base URI + user group id)
Definition at line 193 of file UserGroup.java.
List<User> cz.vutbr.fit.knot.annotations.entity.UserGroup.getUsers | ( | ) |
Gets users in this group
Definition at line 148 of file UserGroup.java.
ArrayList<User> cz.vutbr.fit.knot.annotations.entity.UserGroup.getUsersAL | ( | ) |
Gets users in this group as ArrayList
Definition at line 157 of file UserGroup.java.
int cz.vutbr.fit.knot.annotations.entity.UserGroup.hashCode | ( | ) |
Definition at line 198 of file UserGroup.java.
void cz.vutbr.fit.knot.annotations.entity.UserGroup.setId | ( | Integer | id | ) |
void cz.vutbr.fit.knot.annotations.entity.UserGroup.setName | ( | String | name | ) |
void cz.vutbr.fit.knot.annotations.entity.UserGroup.setUsers | ( | List< User > | users | ) |
Sets users in this group
users | Users in this group |
Definition at line 166 of file UserGroup.java.
void cz.vutbr.fit.knot.annotations.entity.UserGroup.setUsers | ( | ArrayList< User > | users | ) |
Sets users in this group (setting from ArrayList)
users | Users in this group |
Definition at line 175 of file UserGroup.java.
String cz.vutbr.fit.knot.annotations.entity.UserGroup.toString | ( | ) |
String cz.vutbr.fit.knot.annotations.entity.UserGroup.toXMLString | ( | ) |
Returns serialized informations about user group in XML
Definition at line 233 of file UserGroup.java.
String cz.vutbr.fit.knot.annotations.entity.UserGroup.toXMLStringWP | ( | ) |
Returns serialized informations about user group in XML with list of users
Definition at line 242 of file UserGroup.java.
|
private |
Group id
Definition at line 54 of file UserGroup.java.
|
private |
Group name
Definition at line 58 of file UserGroup.java.
|
staticprivate |
Definition at line 48 of file UserGroup.java.
List<User> cz.vutbr.fit.knot.annotations.entity.UserGroup.users |
List of users in this group
Definition at line 67 of file UserGroup.java.