Class WardenController

java.lang.Object
eu.getmangos.controllers.WardenController

@RequestScoped
public class WardenController
extends Object
  • Constructor Details

  • Method Details

    • getAllLogs

      public List<WardenLog> getAllLogs()
      Retrieves all warden logs from the database.
      Returns:
      A list of records containing the warden logs for all servers.
    • cleanupDeadLinks

      public int cleanupDeadLinks()
      Delete all warden logs from the database which have dead links.
      Returns:
      A list of records containing the warden logs for all servers.
    • findDeadLinks

      public List<WardenLog> findDeadLinks()
      Retrieves all warden logs from the database which have dead links.
      Returns:
      A list of records containing the warden logs for all servers.
    • search

      public WardenLog search​(Integer entry)
      Retrieves a log entry by its id.
      Parameters:
      entry - The log entry id.
      Returns:
      The log entry.
    • delete

      public void delete​(Integer entry)
      Delete warden logs for the given id.
      Parameters:
      entry - The Id of the log to be deleted.
    • deleteLogsForAccount

      public void deleteLogsForAccount​(Integer accountId)
      Delete warden logs for the given account id.
      Parameters:
      accountId - The Id of the account for which the logs needs to be deleted.
    • getWardenLogForAccount

      public List<WardenLog> getWardenLogForAccount​(Integer accountId)
      Retrieves all warden logs from the database for a given account.
      Parameters:
      accountId - The Id of the account for which the warden logs needs to be retrieved.
      Returns:
      A list of records containing the logs for a single account.