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

Public Member Functions

 RoleManager ()
 
void setJdbcTemplate (JdbcOperations jdbcTemplate)
 
List< Roleload ()
 
Role load (String name)
 
int store (int userId, int roleId)
 
int update (int roleId, int userId)
 

Detailed Description

Role manager.

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

Constructor & Destructor Documentation

◆ RoleManager()

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

Constructor.

Member Function Documentation

◆ load() [1/2]

List< Role > eu.baltrad.dex.user.manager.impl.RoleManager.load ( )
inline

Load all roles.

Returns
All existing roles

Implements eu.baltrad.dex.user.manager.IRoleManager.

◆ load() [2/2]

Role eu.baltrad.dex.user.manager.impl.RoleManager.load ( String name)
inline

Load role by name.

Parameters
nameRole name
Returns
Role by name

Implements eu.baltrad.dex.user.manager.IRoleManager.

◆ setJdbcTemplate()

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

◆ store()

int eu.baltrad.dex.user.manager.impl.RoleManager.store ( int userId,
int roleId )
inline

Store record in dex_users_roles table.

Parameters
userIdUser id
roleIdRole id
Returns
Number of records stored

Implements eu.baltrad.dex.user.manager.IRoleManager.

◆ update()

int eu.baltrad.dex.user.manager.impl.RoleManager.update ( int roleId,
int userId )
inline

Update record in dex_users_roles table.

Parameters
roleIdRole id
userIdUser id
Returns
Number of records updated

Implements eu.baltrad.dex.user.manager.IRoleManager.


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