Package eu.getmangos.controllers
Class WardenController
java.lang.Object
eu.getmangos.controllers.WardenController
@RequestScoped public class WardenController extends Object
-
Constructor Summary
Constructors Constructor Description WardenController() -
Method Summary
Modifier and Type Method Description intcleanupDeadLinks()Delete all warden logs from the database which have dead links.voiddelete(Integer entry)Delete warden logs for the given id.voiddeleteLogsForAccount(Integer accountId)Delete warden logs for the given account id.List<WardenLog>findDeadLinks()Retrieves all warden logs from the database which have dead links.List<WardenLog>getAllLogs()Retrieves all warden logs from the database.List<WardenLog>getWardenLogForAccount(Integer accountId)Retrieves all warden logs from the database for a given account.WardenLogsearch(Integer entry)Retrieves a log entry by its id.
-
Constructor Details
-
WardenController
public WardenController()
-
-
Method Details
-
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
Retrieves all warden logs from the database which have dead links.- Returns:
- A list of records containing the warden logs for all servers.
-
search
Retrieves a log entry by its id.- Parameters:
entry- The log entry id.- Returns:
- The log entry.
-
delete
Delete warden logs for the given id.- Parameters:
entry- The Id of the log to be deleted.
-
deleteLogsForAccount
Delete warden logs for the given account id.- Parameters:
accountId- The Id of the account for which the logs needs to be deleted.
-
getWardenLogForAccount
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.
-