fr.paris.lutece.portal.business.right
Class RightHome

java.lang.Object
  extended by fr.paris.lutece.portal.business.right.RightHome

public final class RightHome
extends java.lang.Object

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


Method Summary
static Right create(Right right)
          Creation of an instance of an admin right
static Right findByPrimaryKey(java.lang.String strKey)
          Returns an instance of an admin right whose identifier is specified in parameter
static java.util.Collection<Right> getRightsList()
          Loads the data of all the rights and returns them in form of a collection
static java.util.Collection<Right> getRightsList(int nLevel)
          Loads the data of all the rights with level greater or equal than nLevel and returns them in form of a collection
static java.util.Collection<Right> getRightsList(java.lang.String strFeatureGroup)
          Loads the data of all the rights with the specified feature group and returns them in form of a collection
static void remove(java.lang.String strId)
          Remove the admin right whose identifier is specified in parameter
static Right update(Right right)
          Update of the admin right which is specified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Right create(Right right)
Creation of an instance of an admin right

Parameters:
right - An instance of an admin right which contains the informations to store
Returns:
The instance of an admin right which has been created with its primary key.

update

public static Right update(Right right)
Update of the admin right which is specified

Parameters:
right - The instance of the admin right which contains the data to store
Returns:
The instance of the admin right which has been updated

remove

public static void remove(java.lang.String strId)
Remove the admin right whose identifier is specified in parameter

Parameters:
strId - The identifier of the admin right to remove

findByPrimaryKey

public static Right findByPrimaryKey(java.lang.String strKey)
Returns an instance of an admin right whose identifier is specified in parameter

Parameters:
strKey - The admin right primary key
Returns:
an instance of an admin right

getRightsList

public static java.util.Collection<Right> getRightsList()
Loads the data of all the rights and returns them in form of a collection

Returns:
the collection which contains the data of all the rights

getRightsList

public static java.util.Collection<Right> getRightsList(int nLevel)
Loads the data of all the rights with level greater or equal than nLevel and returns them in form of a collection

Returns:
the collection which contains the data of all the rights

getRightsList

public static java.util.Collection<Right> getRightsList(java.lang.String strFeatureGroup)
Loads the data of all the rights with the specified feature group and returns them in form of a collection

Parameters:
strFeatureGroup - the name of the feature group
Returns:
the collection which contains the data of all the rights


Copyright © 2007 Mairie de Paris. All Rights Reserved.