Package eu.getmangos.controllers
Class IpBannedController
java.lang.Object
eu.getmangos.controllers.IpBannedController
@RequestScoped public class IpBannedController extends Object
-
Constructor Summary
Constructors Constructor Description IpBannedController() -
Method Summary
Modifier and Type Method Description voidcreate(IpBanned ipBanned)voiddelete(IpBannedId id)IpBannedfind(IpBannedId id)Retrieves a ban by its ID.List<IpBanned>findAll()Retrieves all ban ip from the database.IpBannedsearch(Integer ip)Search all bans for an ip.voidupdate(IpBanned ipBanned)
-
Constructor Details
-
IpBannedController
public IpBannedController()
-
-
Method Details
-
create
- Throws:
DAOException
-
update
- Throws:
DAOException
-
delete
- Throws:
DAOException
-
find
Retrieves a ban by its ID.- Parameters:
id- The ID of the ban- Returns:
- The ban if found, null otherwise.
-
search
Search all bans for an ip.- Parameters:
ip- The ip.- Returns:
- The matching bans for the given ip.
-
findAll
Retrieves all ban ip from the database.- Returns:
- A list of Bans.
-