Class JoinLoggerProvider

java.lang.Object
de.murmelmeister.murmelapi.time.JoinLoggerProvider
All Implemented Interfaces:
JoinLogger

public final class JoinLoggerProvider extends Object implements JoinLogger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    createJoinDate(int userId)
    Logs the join date for a user identified by the given userId.
    void
    deleteUser(int userId)
    Deletes the user identified by the given userId from the system.
    getJoinDate(int timeId, int userId)
    Retrieves the join date for a user identified by the given userId and timeId.
    long
    getJoinTime(int timeId, int userId)
    Retrieves the join time for a user identified by the given userId and timeId.
    getTimeIds(int userId)
    Retrieves a list of time IDs associated with a specific user.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JoinLoggerProvider

      public JoinLoggerProvider()
  • Method Details

    • createJoinDate

      public int createJoinDate(int userId)
      Description copied from interface: JoinLogger
      Logs the join date for a user identified by the given userId.
      Specified by:
      createJoinDate in interface JoinLogger
      Parameters:
      userId - The ID of the user whose join date is to be recorded
    • deleteUser

      public void deleteUser(int userId)
      Description copied from interface: JoinLogger
      Deletes the user identified by the given userId from the system.
      Specified by:
      deleteUser in interface JoinLogger
      Parameters:
      userId - The ID of the user to be deleted.
    • getTimeIds

      public List<Integer> getTimeIds(int userId)
      Description copied from interface: JoinLogger
      Retrieves a list of time IDs associated with a specific user.
      Specified by:
      getTimeIds in interface JoinLogger
      Parameters:
      userId - The ID of the user whose time IDs are to be retrieved.
      Returns:
      A list of time IDs associated with the given user ID.
    • getJoinTime

      public long getJoinTime(int timeId, int userId)
      Description copied from interface: JoinLogger
      Retrieves the join time for a user identified by the given userId and timeId.
      Specified by:
      getJoinTime in interface JoinLogger
      Parameters:
      timeId - The ID of the time record.
      userId - The ID of the user whose join time is being retrieved.
      Returns:
      The join time in milliseconds since epoch for the specified user and timeId.
    • getJoinDate

      public String getJoinDate(int timeId, int userId)
      Description copied from interface: JoinLogger
      Retrieves the join date for a user identified by the given userId and timeId.
      Specified by:
      getJoinDate in interface JoinLogger
      Parameters:
      timeId - The ID of the time record.
      userId - The ID of the user whose join date is being retrieved.
      Returns:
      The formatted join date string for the specified user and timeId.