BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.user.manager.impl.UserManager Class Reference
Inheritance diagram for eu.baltrad.dex.user.manager.impl.UserManager:
eu.baltrad.dex.user.manager.IUserManager

Public Member Functions

 UserManager ()
 
void setJdbcTemplate (JdbcOperations jdbcTemplate)
 
void setRoleManager (IRoleManager roleManager)
 
List< Userload ()
 
User load (int id)
 
User load (String name)
 
List< String > loadPeerNames ()
 
List< UserloadPeers ()
 
List< UserloadAdmins ()
 
List< UserloadOperators ()
 
List< UserloadUsers ()
 
int store (User user) throws Exception
 
void update (User user) throws Exception
 
int updatePassword (int id, String password) throws Exception
 
int delete (int id)
 

Detailed Description

User manager.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.2.1
Since
1.2.1

Constructor & Destructor Documentation

◆ UserManager()

eu.baltrad.dex.user.manager.impl.UserManager.UserManager ( )
inline

Constructor.

Member Function Documentation

◆ delete()

int eu.baltrad.dex.user.manager.impl.UserManager.delete ( int id)
inline

Delete user with a given id.

Parameters
idUser id
Returns
Number of deleted records.

Implements eu.baltrad.dex.user.manager.IUserManager.

◆ load() [1/3]

List< User > eu.baltrad.dex.user.manager.impl.UserManager.load ( )
inline

Load all user accounts.

Returns
List of all registered user accounts.

Implements eu.baltrad.dex.user.manager.IUserManager.

◆ load() [2/3]

User eu.baltrad.dex.user.manager.impl.UserManager.load ( int id)
inline

Load user account by id.

Parameters
idAccount id
Returns
Account with a given id.

Implements eu.baltrad.dex.user.manager.IUserManager.

◆ load() [3/3]

User eu.baltrad.dex.user.manager.impl.UserManager.load ( String name)
inline

Load user account by name.

Parameters
nameAccount name
Returns
Account with a given user name

Implements eu.baltrad.dex.user.manager.IUserManager.

◆ loadAdmins()

List< User > eu.baltrad.dex.user.manager.impl.UserManager.loadAdmins ( )
inline

Load distinct administrators

Implements eu.baltrad.dex.user.manager.IUserManager.

◆ loadOperators()

List< User > eu.baltrad.dex.user.manager.impl.UserManager.loadOperators ( )
inline

Returns distinct operators.

Returns
List containing distinct operators.

Implements eu.baltrad.dex.user.manager.IUserManager.

◆ loadPeerNames()

List< String > eu.baltrad.dex.user.manager.impl.UserManager.loadPeerNames ( )
inline

Returns distinct user names.

Returns
List containing distinct user names

Implements eu.baltrad.dex.user.manager.IUserManager.

◆ loadPeers()

List< User > eu.baltrad.dex.user.manager.impl.UserManager.loadPeers ( )
inline

Returns distinct users.

Returns
List containing distinct users

Implements eu.baltrad.dex.user.manager.IUserManager.

◆ loadUsers()

List< User > eu.baltrad.dex.user.manager.impl.UserManager.loadUsers ( )
inline

Returns distinct users.

Returns
List containing distinct users.

Implements eu.baltrad.dex.user.manager.IUserManager.

◆ setJdbcTemplate()

void eu.baltrad.dex.user.manager.impl.UserManager.setJdbcTemplate ( JdbcOperations jdbcTemplate)
inline
Parameters
jdbcTemplatethe jdbcTemplate to set

◆ setRoleManager()

void eu.baltrad.dex.user.manager.impl.UserManager.setRoleManager ( IRoleManager roleManager)
inline
Parameters
roleManagerthe roleManager to set

◆ store()

int eu.baltrad.dex.user.manager.impl.UserManager.store ( User user) throws Exception
inline

Store user account object in the db.

Parameters
userUser account to store
Returns
Auto-generated record id
Exceptions
Exception

Implements eu.baltrad.dex.user.manager.IUserManager.

◆ update()

void eu.baltrad.dex.user.manager.impl.UserManager.update ( User user) throws Exception
inline

Update user account object in the db.

Parameters
userUser account to store
Exceptions
Exception

Implements eu.baltrad.dex.user.manager.IUserManager.

◆ updatePassword()

int eu.baltrad.dex.user.manager.impl.UserManager.updatePassword ( int id,
String password ) throws Exception
inline

Update user's password.

Parameters
idUser id
passwordPassword to set
Returns
Number of records updated.
Exceptions
Exception

Implements eu.baltrad.dex.user.manager.IUserManager.


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