Class MyLuteceUserRoleHome
- java.lang.Object
-
- fr.paris.lutece.plugins.mylutece.modules.users.business.MyLuteceUserRoleHome
-
public final class MyLuteceUserRoleHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for MyLuteceUserRole objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MyLuteceUserRolecreate(MyLuteceUserRole myLuteceUserRole)Create an instance of the myLuteceUserRole classstatic voidcreateMyLuteceUserRoles(java.util.List<java.lang.String> myLuteceRoleKeyToAssignList, int nIdSearchUser)Create each myLuteceUserRole whose identifier is specified in the liststatic MyLuteceUserRolefindByPrimaryKey(int nKey)Returns an instance of a myLuteceUserRole whose identifier is specified in parameterstatic java.util.List<java.lang.Integer>getIdMyLuteceUserRolesList()Load the id of all the myLuteceUserRole objects and returns them as a liststatic java.util.List<MyLuteceUserRole>getMyLuteceUserRolesList()Load the data of all the myLuteceUserRole objects and returns them as a liststatic java.util.List<MyLuteceUserRole>getMyLuteceUserRolesListByUserId(int nIdSearchUser)Load the data of all the myLuteceUserRole objects and returns them as a referenceListstatic fr.paris.lutece.util.ReferenceListgetMyLuteceUserRolesReferenceList()Load the data of all the myLuteceUserRole objects and returns them as a referenceListstatic voidremove(int nKey)Remove the myLuteceUserRole whose identifier is specified in parameterstatic voidremoveMyLuteceUserRoles(java.util.List<MyLuteceUserRole> myLuteceUserRoleToDeleteList)Remove each myLuteceUserRole whose identifier is specified in the liststatic MyLuteceUserRoleupdate(MyLuteceUserRole myLuteceUserRole)Update of the myLuteceUserRole which is specified in parameter
-
-
-
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 assignnIdSearchUser- The searchUser primary key
-
-