Class MyLuteceUserRoleHome
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.users.business.MyLuteceUserRoleHome
This class provides instances management methods (create, find, ...) for MyLuteceUserRole objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic MyLuteceUserRolecreate(MyLuteceUserRole myLuteceUserRole) Create an instance of the myLuteceUserRole classstatic voidcreateMyLuteceUserRoles(List<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 parameterLoad the id of all the myLuteceUserRole objects and returns them as a liststatic List<MyLuteceUserRole>Load the data of all the myLuteceUserRole objects and returns them as a liststatic List<MyLuteceUserRole>getMyLuteceUserRolesListByUserId(int nIdSearchUser) Load the data of all the myLuteceUserRole objects and returns them as a referenceListstatic fr.paris.lutece.util.ReferenceListLoad 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(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 Details
-
create
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
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
Returns an instance of a myLuteceUserRole whose identifier is specified in parameter- Parameters:
nKey- The myLuteceUserRole primary key- Returns:
- an instance of 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
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
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
Remove each myLuteceUserRole whose identifier is specified in the list- Parameters:
myLuteceUserRoleToDeleteList- The MyLuteceUserRole List to delete
-
createMyLuteceUserRoles
public static void createMyLuteceUserRoles(List<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
-