fr.paris.lutece.portal.business.rbac
Interface IAdminRoleDAO

All Known Implementing Classes:
AdminRoleDAO

public interface IAdminRoleDAO

AdminRoleDAO Interface


Method Summary
 boolean checkExistRole(java.lang.String strRoleKey)
          Check that the given key points to an existing role
 void delete(java.lang.String strRoleKey)
          Delete a record from the table
 void insert(AdminRole role)
          Insert a new record in the table.
 AdminRole load(java.lang.String strRoleKey)
          Load the data of AdminRole from the table
 java.util.Collection<AdminRole> selectRoleList()
          Load the list of roles
 void store(java.lang.String strRoleKey, AdminRole role)
          Update the record identified by the given role key with the given role in the table
 

Method Detail

checkExistRole

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

Parameters:
strRoleKey - The role key
Returns:
true if the role exists, false otherwise

delete

void delete(java.lang.String strRoleKey)
Delete a record from the table

Parameters:
strRoleKey - The AdminRole object

insert

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

Parameters:
role - The role object

load

AdminRole load(java.lang.String strRoleKey)
Load the data of AdminRole from the table

Parameters:
strRoleKey - The identifier of AdminRole
Returns:
the instance of the AdminRole

selectRoleList

java.util.Collection<AdminRole> selectRoleList()
Load the list of roles

Returns:
The Collection of the Roles

store

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

Parameters:
strRoleKey - the key of the role to modify
role - The reference of role to be the new one


Copyright © 2009 Mairie de Paris. All Rights Reserved.