Class MyLuteceUserRoleHome


  • public final class MyLuteceUserRoleHome
    extends java.lang.Object
    This class provides instances management methods (create, find, ...) for MyLuteceUserRole objects
    • Method Detail

      • create

        public static MyLuteceUserRole create​(MyLuteceUserRole myLuteceUserRole)
        Create an instance of the myLuteceUserRole class
        Parameters:
        myLuteceUserRole - The instance of the MyLuteceUserRole which contains the informations to store
        Returns:
        The instance of myLuteceUserRole which has been created with its primary key.
      • update

        public static MyLuteceUserRole update​(MyLuteceUserRole myLuteceUserRole)
        Update of the myLuteceUserRole which is specified in parameter
        Parameters:
        myLuteceUserRole - The instance of the MyLuteceUserRole which contains the data to store
        Returns:
        The instance of the myLuteceUserRole which has been updated
      • remove

        public static void remove​(int nKey)
        Remove the myLuteceUserRole whose identifier is specified in parameter
        Parameters:
        nKey - The myLuteceUserRole Id
      • findByPrimaryKey

        public static MyLuteceUserRole findByPrimaryKey​(int nKey)
        Returns an instance of a myLuteceUserRole whose identifier is specified in parameter
        Parameters:
        nKey - The myLuteceUserRole primary key
        Returns:
        an instance of MyLuteceUserRole
      • getMyLuteceUserRolesList

        public static java.util.List<MyLuteceUserRole> getMyLuteceUserRolesList()
        Load the data of all the myLuteceUserRole objects and returns them as a list
        Returns:
        the list which contains the data of all the myLuteceUserRole objects
      • getIdMyLuteceUserRolesList

        public static java.util.List<java.lang.Integer> getIdMyLuteceUserRolesList()
        Load the id of all the myLuteceUserRole objects and returns them as a list
        Returns:
        the list which contains the id of all the myLuteceUserRole objects
      • getMyLuteceUserRolesReferenceList

        public static fr.paris.lutece.util.ReferenceList getMyLuteceUserRolesReferenceList()
        Load the data of all the myLuteceUserRole objects and returns them as a referenceList
        Returns:
        the referenceList which contains the data of all the myLuteceUserRole objects
      • getMyLuteceUserRolesListByUserId

        public static java.util.List<MyLuteceUserRole> getMyLuteceUserRolesListByUserId​(int nIdSearchUser)
        Load the data of all the myLuteceUserRole objects and returns them as a referenceList
        Returns:
        the referenceList which contains the data of all the myLuteceUserRole objects
      • removeMyLuteceUserRoles

        public static void removeMyLuteceUserRoles​(java.util.List<MyLuteceUserRole> myLuteceUserRoleToDeleteList)
        Remove each myLuteceUserRole whose identifier is specified in the list
        Parameters:
        myLuteceUserRoleToDeleteList - The MyLuteceUserRole List to delete
      • createMyLuteceUserRoles

        public static void createMyLuteceUserRoles​(java.util.List<java.lang.String> myLuteceRoleKeyToAssignList,
                                                   int nIdSearchUser)
        Create each myLuteceUserRole whose identifier is specified in the list
        Parameters:
        myLuteceRoleKeyToAssignList - The MyLutece role keys List to assign
        nIdSearchUser - The searchUser primary key