Class RoleHome


  • public final class RoleHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for Role right objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Role create​(Role role)
      Creation of an instance of a mode
      static java.util.Collection<Role> findAll()
      Returns the roles list
      static Role findByPrimaryKey​(java.lang.String strRole)
      Returns an instance of an role whose identifier is specified in parameter
      static boolean findExistRole​(java.lang.String strRole)
      Test if the role exists
      static ReferenceList getRolesList()
      Return the list of all roles
      static ReferenceList getRolesList​(AdminUser user)
      Return the list of all roles
      static void remove​(java.lang.String strRole)
      Remove the mode whose identifier is specified in parameter
      static Role update​(Role role)
      Update of the mode which is specified
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static Role create​(Role role)
        Creation of an instance of a mode
        Parameters:
        role - An instance of a role which contains the informations to create
        Returns:
        The instance of a mode which has been created with its primary key.
      • update

        public static Role update​(Role role)
        Update of the mode which is specified
        Parameters:
        role - The instance of the role which contains the data to store
        Returns:
        The instance of the mode which has been updated
      • remove

        public static void remove​(java.lang.String strRole)
        Remove the mode whose identifier is specified in parameter
        Parameters:
        strRole - The identifier of the role to remove
      • findByPrimaryKey

        public static Role findByPrimaryKey​(java.lang.String strRole)
        Returns an instance of an role whose identifier is specified in parameter
        Parameters:
        strRole - The mode primary key
        Returns:
        an instance of a role
      • getRolesList

        public static ReferenceList getRolesList()
        Return the list of all roles
        Returns:
        A ReferenceList of roles
      • findAll

        public static java.util.Collection<Role> findAll()
        Returns the roles list
        Returns:
        Collection of Role
      • findExistRole

        public static boolean findExistRole​(java.lang.String strRole)
        Test if the role exists
        Parameters:
        strRole - The role name
        Returns:
        true if the role exists, otherwise false
      • getRolesList

        public static ReferenceList getRolesList​(AdminUser user)
        Return the list of all roles
        Parameters:
        user - The Admin User
        Returns:
        A ReferenceList of roles