fr.paris.lutece.portal.business.rbac
Class AdminRoleHome

java.lang.Object
  extended by fr.paris.lutece.portal.business.rbac.AdminRoleHome

public final class AdminRoleHome
extends java.lang.Object

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


Method Summary
static boolean checkExistRole(java.lang.String strRoleKey)
          Check that the given key points to an existing role
static AdminRole create(AdminRole role)
          Creation of an instance of role
static java.util.Collection<AdminRole> findAll()
          Returns a collection of roles objects
static AdminRole findByPrimaryKey(java.lang.String strRoleKey)
          Returns an instance of a role whose identifier is specified in parameter
static ReferenceList getRolesList()
          Returns a reference of roles objects
static void remove(java.lang.String strRoleKey)
          Remove the AdminRole whose identifier is specified in parameter
static AdminRole update(java.lang.String strRoleKey, AdminRole role)
          Update of the role 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 AdminRole create(AdminRole role)
Creation of an instance of role

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

update

public static AdminRole update(java.lang.String strRoleKey,
                               AdminRole role)
Update of the role which is specified in parameter

Parameters:
strRoleKey - the key of the role to update
role - The instance of the role which contains the new data to store
Returns:
The instance of the role which has been updated

remove

public static void remove(java.lang.String strRoleKey)
Remove the AdminRole whose identifier is specified in parameter

Parameters:
strRoleKey - The AdminRole object to remove

findByPrimaryKey

public static AdminRole findByPrimaryKey(java.lang.String strRoleKey)
Returns an instance of a role whose identifier is specified in parameter

Parameters:
strRoleKey - The Primary key of the role
Returns:
An instance of role

findAll

public static java.util.Collection<AdminRole> findAll()
Returns a collection of roles objects

Returns:
A collection of roles

getRolesList

public static ReferenceList getRolesList()
Returns a reference of roles objects

Returns:
A collection of roles

checkExistRole

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


Copyright © 2012 Mairie de Paris. All Rights Reserved.