Class UserAcceptedHome
java.lang.Object
fr.paris.lutece.plugins.termofservice.business.UserAcceptedHome
This class provides instances management methods (create, find, ...) for UserAccepted objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserAcceptedcreate(UserAccepted userAccepted) Create an instance of the userAccepted classstatic UserAcceptedcreate(UserAccepted userAccepted, boolean bUpdateRemote) Create an instance of the userAccepted classstatic booleanexistsAcceptedEntry(int nVersion) Checks whether the specified version entry has been accepted at least once.static Optional<UserAccepted>findByGuid(String strGuid) Returns an instance of a userAccepted whose identifier is specified in parameterstatic Optional<UserAccepted>findByGuid(String strGuid, boolean bUseRemote) Returns an instance of a userAccepted whose identifier is specified in parameterstatic Optional<UserAccepted>findByGuidAndEntryAndVersion(String strGuid, int nIdEntry, int nVersion) Returns an instance of a userAccepted whose identifier is specified in parameterstatic Optional<UserAccepted>findByPrimaryKey(int nKey) Returns an instance of a userAccepted whose identifier is specified in parameterLoad the id of all the userAccepted objects and returns them as a liststatic List<UserAccepted>Load the data of all the userAccepted objects and returns them as a liststatic List<UserAccepted>getUserAcceptedsListByIds(List<Integer> listIds) Load the data of all the avant objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the userAccepted objects and returns them as a referenceListstatic voidremove(int nKey) Remove the userAccepted whose identifier is specified in parameterstatic UserAcceptedupdate(UserAccepted userAccepted) Update of the userAccepted which is specified in parameter
-
Method Details
-
create
Create an instance of the userAccepted class- Parameters:
userAccepted- The instance of the UserAccepted which contains the informations to storebUpdateRemote- true if the user must be updated- Returns:
- The instance of userAccepted which has been created with its primary key.
-
create
Create an instance of the userAccepted class- Parameters:
userAccepted- The instance of the UserAccepted which contains the informations to store- Returns:
- The instance of userAccepted which has been created with its primary key.
-
update
Update of the userAccepted which is specified in parameter- Parameters:
userAccepted- The instance of the UserAccepted which contains the data to store- Returns:
- The instance of the userAccepted which has been updated
-
remove
public static void remove(int nKey) Remove the userAccepted whose identifier is specified in parameter- Parameters:
nKey- The userAccepted Id
-
findByPrimaryKey
Returns an instance of a userAccepted whose identifier is specified in parameter- Parameters:
nKey- The userAccepted primary key- Returns:
- an instance of UserAccepted
-
findByGuid
Returns an instance of a userAccepted whose identifier is specified in parameter- Parameters:
strGuid- The user GUIDbUseRemote-- Returns:
- an instance of UserAccepted
-
findByGuid
Returns an instance of a userAccepted whose identifier is specified in parameter- Parameters:
strGuid- The user GUID- Returns:
- an instance of UserAccepted
-
findByGuidAndEntryAndVersion
public static Optional<UserAccepted> findByGuidAndEntryAndVersion(String strGuid, int nIdEntry, int nVersion) Returns an instance of a userAccepted whose identifier is specified in parameter- Parameters:
strGuid- The user GUIDnIdEntry- The id entrynVersion- The version- Returns:
- an instance of UserAccepted
-
getUserAcceptedsList
Load the data of all the userAccepted objects and returns them as a list- Returns:
- the list which contains the data of all the userAccepted objects
-
getIdUserAcceptedsList
Load the id of all the userAccepted objects and returns them as a list- Returns:
- the list which contains the id of all the userAccepted objects
-
getUserAcceptedsReferenceList
public static fr.paris.lutece.util.ReferenceList getUserAcceptedsReferenceList()Load the data of all the userAccepted objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the userAccepted objects
-
getUserAcceptedsListByIds
Load the data of all the avant objects and returns them as a list- Parameters:
listIds- liste of ids- Returns:
- the list which contains the data of all the avant objects
-
existsAcceptedEntry
public static boolean existsAcceptedEntry(int nVersion) Checks whether the specified version entry has been accepted at least once.- Parameters:
nVersion-- Returns:
trueif the version entry has already been accepted at least once,falseotherwise
-