4A Server -  2.0
 All Classes Namespaces Files Functions Variables Enumerator
cz.vutbr.fit.knot.annotations.entity.UserGroup Class Reference

Class representing user group. More...

Inheritance diagram for cz.vutbr.fit.knot.annotations.entity.UserGroup:
Inheritance graph
Collaboration diagram for cz.vutbr.fit.knot.annotations.entity.UserGroup:
Collaboration graph

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< UsergetUsers ()
 
ArrayList< UsergetUsersAL ()
 
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< Userusers
 

Private Attributes

Integer id
 
String name
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

Class representing user group.

Class representing user group

Author
idytrych

Definition at line 47 of file UserGroup.java.

Constructor & Destructor Documentation

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

Parameters
idId of group

Definition at line 81 of file UserGroup.java.

cz.vutbr.fit.knot.annotations.entity.UserGroup.UserGroup ( Integer  id,
String  name 
)

Constructor

Parameters
idId of group
nameName of group

Definition at line 91 of file UserGroup.java.

cz.vutbr.fit.knot.annotations.entity.UserGroup.UserGroup ( String  name)

Constructor

Parameters
nameName of group

Definition at line 102 of file UserGroup.java.

Member Function Documentation

void cz.vutbr.fit.knot.annotations.entity.UserGroup.addUser ( User  user)

Adds user to the group

Parameters
userUser 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.

Parameters
objectObject to compare with
Returns
If object is same type and have same id, returns true, false otherwise

Definition at line 212 of file UserGroup.java.

Integer cz.vutbr.fit.knot.annotations.entity.UserGroup.getId ( )

Gets id of user group

Returns
Id of user group

Definition at line 112 of file UserGroup.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.UserGroup.getName ( )

Gets name of group

Returns
Returns name of group

Definition at line 130 of file UserGroup.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.UserGroup.getUri ( )

Gets user group's URI (base URI + user group id)

Returns
Returns user group's URI

Definition at line 193 of file UserGroup.java.

Here is the caller graph for this function:

List<User> cz.vutbr.fit.knot.annotations.entity.UserGroup.getUsers ( )

Gets users in this group

Returns
Returns users in this group

Definition at line 148 of file UserGroup.java.

Here is the caller graph for this function:

ArrayList<User> cz.vutbr.fit.knot.annotations.entity.UserGroup.getUsersAL ( )

Gets users in this group as ArrayList

Returns
Returns 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)

Sets id of user group

Parameters
idId of user group

Definition at line 121 of file UserGroup.java.

void cz.vutbr.fit.knot.annotations.entity.UserGroup.setName ( String  name)

Sets name of group

Parameters
nameName of group

Definition at line 139 of file UserGroup.java.

void cz.vutbr.fit.knot.annotations.entity.UserGroup.setUsers ( List< User users)

Sets users in this group

Parameters
usersUsers 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)

Parameters
usersUsers in this group

Definition at line 175 of file UserGroup.java.

String cz.vutbr.fit.knot.annotations.entity.UserGroup.toString ( )

Definition at line 224 of file UserGroup.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.UserGroup.toXMLString ( )

Returns serialized informations about user group in XML

Returns
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

Returns
Returns serialized informations about user group in XML with list of users

Definition at line 242 of file UserGroup.java.

Member Data Documentation

Integer cz.vutbr.fit.knot.annotations.entity.UserGroup.id
private

Group id

Definition at line 54 of file UserGroup.java.

String cz.vutbr.fit.knot.annotations.entity.UserGroup.name
private

Group name

Definition at line 58 of file UserGroup.java.

final long cz.vutbr.fit.knot.annotations.entity.UserGroup.serialVersionUID = 1L
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.


The documentation for this class was generated from the following file: