fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business
Class WssoRoleDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoRoleDAO
All Implemented Interfaces:
IWssoRoleDAO

public final class WssoRoleDAO
extends java.lang.Object
implements IWssoRoleDAO

This class provides Data Access methods for WssoRole objects


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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newPrimaryKey

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

Specified by:
newPrimaryKey in interface IWssoRoleDAO
Parameters:
plugin - The Plugin using this data access service
Returns:
The new primary key

insert

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

Specified by:
insert in interface IWssoRoleDAO
Parameters:
wssoRole - The wssoRole object
plugin - The Plugin using this data access service

load

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

Specified by:
load in interface IWssoRoleDAO
Parameters:
nWssoRoleId - The identifier of WssoRole
plugin - The Plugin using this data access service
Returns:
the instance of the WssoRole

delete

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

Specified by:
delete in interface IWssoRoleDAO
Parameters:
wssoRole - The WssoRole object
plugin - The Plugin using this data access service

store

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

Specified by:
store in interface IWssoRoleDAO
Parameters:
wssoRole - The reference of wssoRole
plugin - The Plugin using this data access service

selectWssoRoleList

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

Specified by:
selectWssoRoleList in interface IWssoRoleDAO
Parameters:
plugin - The Plugin using this data access service
Returns:
The Collection of the WssoRoles

selectWssoRoleListForUser

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

Specified by:
selectWssoRoleListForUser in interface IWssoRoleDAO
Parameters:
plugin - The Plugin using this data access service
Returns:
The Collection of the WssoRoles

deleteRolesForUser

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

Specified by:
deleteRolesForUser in interface IWssoRoleDAO
Parameters:
nIdUser - The id of the user
plugin - The Plugin using this data access service

createRoleForUser

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

Specified by:
createRoleForUser in interface IWssoRoleDAO
Parameters:
nIdUser - The id of the user
nRoleId - The id of the role
plugin - The Plugin using this data access service

selectWssoRoleListForKey

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

Specified by:
selectWssoRoleListForKey in interface IWssoRoleDAO
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.