fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business
Interface IWssoRoleDAO

All Known Implementing Classes:
WssoRoleDAO

public interface IWssoRoleDAO

Author:
Etienne

Method Summary
 void createRoleForUser(int nIdUser, int nRoleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Assign a role to user
 void delete(WssoRole wssoRole, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteRolesForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete roles for a user
 void insert(WssoRole wssoRole, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 WssoRole load(int nWssoRoleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of WssoRole from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.Collection selectWssoRoleList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of wssoRoles
 java.util.Collection selectWssoRoleListForKey(java.lang.String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of wssoRoles for roleKey
 java.util.Collection selectWssoRoleListForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of wssoRoles for a user
 void store(WssoRole wssoRole, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin using this data access service
Returns:
The new primary key

insert

void insert(WssoRole wssoRole,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
wssoRole - The wssoRole object
plugin - The Plugin using this data access service

load

WssoRole load(int nWssoRoleId,
              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of WssoRole from the table

Parameters:
nWssoRoleId - The identifier of WssoRole
plugin - The Plugin using this data access service
Returns:
the instance of the WssoRole

delete

void delete(WssoRole wssoRole,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
wssoRole - The WssoRole object
plugin - The Plugin using this data access service

store

void store(WssoRole wssoRole,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
wssoRole - The reference of wssoRole
plugin - The Plugin using this data access service

selectWssoRoleList

java.util.Collection selectWssoRoleList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of wssoRoles

Parameters:
plugin - The Plugin using this data access service
Returns:
The Collection of the WssoRoles

selectWssoRoleListForUser

java.util.Collection selectWssoRoleListForUser(int nIdUser,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of wssoRoles for a user

Parameters:
plugin - The Plugin using this data access service
Returns:
The Collection of the WssoRoles

deleteRolesForUser

void deleteRolesForUser(int nIdUser,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete roles for a user

Parameters:
nIdUser - The id of the user
plugin - The Plugin using this data access service

createRoleForUser

void createRoleForUser(int nIdUser,
                       int nRoleId,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Assign a role to user

Parameters:
nIdUser - The id of the user
nRoleId - The id of the role
plugin - The Plugin using this data access service

selectWssoRoleListForKey

java.util.Collection selectWssoRoleListForKey(java.lang.String strKey,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of wssoRoles for roleKey

Parameters:
strKey - The Role key
plugin - The Plugin using this data access service
Returns:
The Collection of the WssoRoles


Copyright © 2007 Mairie de Paris. All Rights Reserved.