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

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.wssodatabase.authentication.business.WssoRoleHome

public final class WssoRoleHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for WssoRole objects


Method Summary
static WssoRole create(WssoRole wssoRole, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of wssoRole
static void createRoleForUser(int nIdUser, int nRoleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Assign a role to user
static void deleteRolesForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete roles for a user
static WssoRole findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a wssoRole whose identifier is specified in parameter
static java.util.Collection findWssoRolesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of wssoRoles objects
static java.util.Collection findWssoRolesListForRoleKey(java.lang.String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of wssoRoles for roleKey
static java.util.Collection findWssoRolesListForUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of wssoRoles objects
static void remove(WssoRole wssoRole, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the WssoRole whose identifier is specified in parameter
static WssoRole update(WssoRole wssoRole, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the wssoRole which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static WssoRole create(WssoRole wssoRole,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of wssoRole

Parameters:
wssoRole - The instance of the wssoRole which contains the informations to store
plugin - The current plugin using this method
Returns:
The instance of wssoRole which has been created with its primary key.

update

public static WssoRole update(WssoRole wssoRole,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the wssoRole which is specified in parameter

Parameters:
wssoRole - The instance of the wssoRole which contains the data to store
plugin - The current plugin using this method
Returns:
The instance of the wssoRole which has been updated

remove

public static void remove(WssoRole wssoRole,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the WssoRole whose identifier is specified in parameter

Parameters:
wssoRole - The WssoRole object to remove
plugin - The current plugin using this method

findByPrimaryKey

public static WssoRole findByPrimaryKey(int nKey,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a wssoRole whose identifier is specified in parameter

Parameters:
nKey - The Primary key of the wssoRole
plugin - The current plugin using this method
Returns:
An instance of wssoRole

findWssoRolesList

public static java.util.Collection findWssoRolesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of wssoRoles objects

Parameters:
plugin - The current plugin using this method
Returns:
A collection of wssoRoles

findWssoRolesListForUser

public static java.util.Collection findWssoRolesListForUser(int nIdUser,
                                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of wssoRoles objects

Parameters:
plugin - The current plugin using this method
Returns:
A collection of wssoRoles

deleteRolesForUser

public static 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

public static 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

findWssoRolesListForRoleKey

public static java.util.Collection findWssoRolesListForRoleKey(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.