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

Class representing user. More...

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

Public Member Functions

 User ()
 
 User (Integer id)
 
 User (String login, String name, String email, String password)
 
 User (Integer id, String login, String name, String email, String password)
 
Integer getId ()
 
void setId (Integer id)
 
List< UserGroupgetGroups ()
 
void setGroups (List< UserGroup > groups)
 
ArrayList< UserGroupgetGroupsAL ()
 
void setGroups (ArrayList< UserGroup > groups)
 
void addGroup (UserGroup group)
 
String getLogin ()
 
void setLogin (String login)
 
String getName ()
 
void setName (String name)
 
String getEmail ()
 
void setEmail (String email)
 
String getPassword ()
 
void setPassword (String password)
 
String getComeFrom ()
 
void setComeFrom (String comeFrom)
 
String getURI ()
 
String getURIV2 ()
 
String getImage ()
 
void setImage (String image)
 
int hashCode ()
 
boolean equals (Object object)
 
String toString ()
 
String toXMLString ()
 
String toXMLStringV2 ()
 
String toXMLStringWG ()
 

Public Attributes

List< UserGroupgroups
 

Private Attributes

Integer id
 
String login
 
String name
 
String email
 
String password
 
String comeFrom
 
String image
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

Class representing user.

Class representing user

Author
idytrych

Definition at line 51 of file User.java.

Constructor & Destructor Documentation

cz.vutbr.fit.knot.annotations.entity.User.User ( )

Constructor

Definition at line 91 of file User.java.

cz.vutbr.fit.knot.annotations.entity.User.User ( Integer  id)

Constructor of reference objects for searching purposes - no initialization needed

Parameters
idId of user

Definition at line 100 of file User.java.

cz.vutbr.fit.knot.annotations.entity.User.User ( String  login,
String  name,
String  email,
String  password 
)

Constructor

Parameters
loginUser's login
nameUser's full name
emailUser's e-mail
passwordUser's password

Definition at line 112 of file User.java.

cz.vutbr.fit.knot.annotations.entity.User.User ( Integer  id,
String  login,
String  name,
String  email,
String  password 
)

Constructor

Parameters
idUser id
loginUser's login
nameUser's full name
emailUser's e-mail
passwordUser's password

Definition at line 128 of file User.java.

Member Function Documentation

void cz.vutbr.fit.knot.annotations.entity.User.addGroup ( UserGroup  group)

Join user to user group

Parameters
groupUser group to join

Definition at line 195 of file User.java.

boolean cz.vutbr.fit.knot.annotations.entity.User.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 340 of file User.java.

String cz.vutbr.fit.knot.annotations.entity.User.getComeFrom ( )

Gets address of system from which user come

Returns
Returns address of system from which user come

Definition at line 276 of file User.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.User.getEmail ( )

Gets e-mail of user

Returns
Returns e-mail of user

Definition at line 240 of file User.java.

Here is the caller graph for this function:

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

Gets user groups to which user belongs

Returns
Returns user groups to which user belongs

Definition at line 159 of file User.java.

Here is the caller graph for this function:

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

Gets user groups to which user belongs as ArrayList

Returns
Returns user groups to which user belongs as ArrayList

Definition at line 177 of file User.java.

Here is the caller graph for this function:

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

Gets id of user

Returns
Returns id of user

Definition at line 141 of file User.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.User.getImage ( )

Gets URI where is user image located

Returns
URI where is user image located

Definition at line 312 of file User.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.User.getLogin ( )

Gets login of user

Returns
Returns login of user

Definition at line 204 of file User.java.

Here is the caller graph for this function:

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

Gets full name of user

Returns
Returns full name of user

Definition at line 222 of file User.java.

Here is the caller graph for this function:

String cz.vutbr.fit.knot.annotations.entity.User.getPassword ( )

Gets password of user

Returns
Returns password of user

Definition at line 258 of file User.java.

String cz.vutbr.fit.knot.annotations.entity.User.getURI ( )

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

Returns
Returns user's URI

Definition at line 294 of file User.java.

String cz.vutbr.fit.knot.annotations.entity.User.getURIV2 ( )

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

Returns
Returns user's URI

Definition at line 303 of file User.java.

Here is the caller graph for this function:

int cz.vutbr.fit.knot.annotations.entity.User.hashCode ( )

Definition at line 326 of file User.java.

void cz.vutbr.fit.knot.annotations.entity.User.setComeFrom ( String  comeFrom)

Sets address of system from which user come

Parameters
comeFromAddress of system from which user come

Definition at line 285 of file User.java.

void cz.vutbr.fit.knot.annotations.entity.User.setEmail ( String  email)

Sets e-mail of user

Parameters
emailE-mail of user

Definition at line 249 of file User.java.

void cz.vutbr.fit.knot.annotations.entity.User.setGroups ( List< UserGroup groups)

Setting user groups to which user belongs

Parameters
groupsUser groups to which user belongs

Definition at line 168 of file User.java.

void cz.vutbr.fit.knot.annotations.entity.User.setGroups ( ArrayList< UserGroup groups)

Setting user groups to which user belongs

Parameters
groupsUser groups to which user belongs

Definition at line 186 of file User.java.

void cz.vutbr.fit.knot.annotations.entity.User.setId ( Integer  id)

Sets id of user

Parameters
iduser id

Definition at line 150 of file User.java.

void cz.vutbr.fit.knot.annotations.entity.User.setImage ( String  image)

Sets URI where is user image located

Parameters
imageURI where is user image located

Definition at line 321 of file User.java.

void cz.vutbr.fit.knot.annotations.entity.User.setLogin ( String  login)

Sets login of user

Parameters
loginLogin of user

Definition at line 213 of file User.java.

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

Sets full name of user

Parameters
nameFull name of user

Definition at line 231 of file User.java.

void cz.vutbr.fit.knot.annotations.entity.User.setPassword ( String  password)

Sets password of user

Parameters
passwordPassword of user

Definition at line 267 of file User.java.

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

Definition at line 352 of file User.java.

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

Returns serialized informations about user in XML

Returns
Returns serialized informations about user in XML

Definition at line 361 of file User.java.

String cz.vutbr.fit.knot.annotations.entity.User.toXMLStringV2 ( )

Returns serialized informations about user in XML for protocol V2

Returns
Returns serialized informations about user in XML for protocol V2

Definition at line 370 of file User.java.

String cz.vutbr.fit.knot.annotations.entity.User.toXMLStringWG ( )

Returns serialized informations about user in XML with list of user groups

Returns
Returns serialized informations about user in XML with list of user groups

Definition at line 379 of file User.java.

Member Data Documentation

String cz.vutbr.fit.knot.annotations.entity.User.comeFrom
private

Address of system from which user come

Definition at line 78 of file User.java.

String cz.vutbr.fit.knot.annotations.entity.User.email
private

e-mail

Definition at line 70 of file User.java.

List<UserGroup> cz.vutbr.fit.knot.annotations.entity.User.groups

Groups to which user belongs

Definition at line 86 of file User.java.

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

User id

Definition at line 58 of file User.java.

String cz.vutbr.fit.knot.annotations.entity.User.image
private

URI where is user image located

Definition at line 82 of file User.java.

String cz.vutbr.fit.knot.annotations.entity.User.login
private

Login of user

Definition at line 62 of file User.java.

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

Full name

Definition at line 66 of file User.java.

String cz.vutbr.fit.knot.annotations.entity.User.password
private

Password

Definition at line 74 of file User.java.

final long cz.vutbr.fit.knot.annotations.entity.User.serialVersionUID = 1L
staticprivate

Definition at line 52 of file User.java.


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