fr.paris.lutece.portal.business.rbac
Class AdminRoleDAO

java.lang.Object
  extended by fr.paris.lutece.portal.business.rbac.AdminRoleDAO
All Implemented Interfaces:
IAdminRoleDAO

public final class AdminRoleDAO
extends Object
implements IAdminRoleDAO

This class provides Data Access methods for AdminRole objects


Constructor Summary
AdminRoleDAO()
           
 
Method Summary
 boolean checkExistRole(String strRoleKey)
          Check that the given key points to an existing role
 void delete(String strRoleKey)
          Delete a record from the table
 void insert(AdminRole role)
          Insert a new record in the table.
 AdminRole load(String strRoleKey)
          Load the data of AdminRole from the table
 Collection<AdminRole> selectRoleList()
          Load the list of roles
 void store(String strRoleKey, AdminRole role)
          Update the record identified by the given role key with the given role in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminRoleDAO

public AdminRoleDAO()
Method Detail

insert

public void insert(AdminRole role)
Insert a new record in the table.

Specified by:
insert in interface IAdminRoleDAO
Parameters:
role - The role object

load

public AdminRole load(String strRoleKey)
Load the data of AdminRole from the table

Specified by:
load in interface IAdminRoleDAO
Parameters:
strRoleKey - The identifier of AdminRole
Returns:
the instance of the AdminRole

delete

public void delete(String strRoleKey)
Delete a record from the table

Specified by:
delete in interface IAdminRoleDAO
Parameters:
strRoleKey - The role key

store

public void store(String strRoleKey,
                  AdminRole role)
Update the record identified by the given role key with the given role in the table

Specified by:
store in interface IAdminRoleDAO
Parameters:
strRoleKey - the key of the role to modify
role - The reference of role to be the new one

selectRoleList

public Collection<AdminRole> selectRoleList()
Load the list of roles

Specified by:
selectRoleList in interface IAdminRoleDAO
Returns:
The Collection of the Roles

checkExistRole

public boolean checkExistRole(String strRoleKey)
Check that the given key points to an existing role

Specified by:
checkExistRole in interface IAdminRoleDAO
Parameters:
strRoleKey - the role key
Returns:
true if the role exists, false otherwise


Copyright © 2014 Mairie de Paris. All Rights Reserved.