Class UserAcceptedHome

java.lang.Object
fr.paris.lutece.plugins.termofservice.business.UserAcceptedHome

public final class UserAcceptedHome extends Object
This class provides instances management methods (create, find, ...) for UserAccepted objects
  • Method Details

    • create

      public static UserAccepted create(UserAccepted userAccepted, boolean bUpdateRemote)
      Create an instance of the userAccepted class
      Parameters:
      userAccepted - The instance of the UserAccepted which contains the informations to store
      bUpdateRemote - true if the user must be updated
      Returns:
      The instance of userAccepted which has been created with its primary key.
    • create

      public static UserAccepted create(UserAccepted userAccepted)
      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

      public static UserAccepted update(UserAccepted userAccepted)
      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

      public static Optional<UserAccepted> findByPrimaryKey(int nKey)
      Returns an instance of a userAccepted whose identifier is specified in parameter
      Parameters:
      nKey - The userAccepted primary key
      Returns:
      an instance of UserAccepted
    • findByGuid

      public static Optional<UserAccepted> findByGuid(String strGuid, boolean bUseRemote)
      Returns an instance of a userAccepted whose identifier is specified in parameter
      Parameters:
      strGuid - The user GUID
      bUseRemote -
      Returns:
      an instance of UserAccepted
    • findByGuid

      public static Optional<UserAccepted> findByGuid(String strGuid)
      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 GUID
      nIdEntry - The id entry
      nVersion - The version
      Returns:
      an instance of UserAccepted
    • getUserAcceptedsList

      public static List<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

      public static List<Integer> 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

      public static List<UserAccepted> getUserAcceptedsListByIds(List<Integer> listIds)
      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:
      true if the version entry has already been accepted at least once, false otherwise