|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BanList
A ban list, containing bans of some BanList.Type.
| Nested Class Summary | |
|---|---|
static class |
BanList.Type
Represents a ban-type that a BanList may track. |
| Method Summary | |
|---|---|
BanEntry |
addBan(String target,
String reason,
Date expires,
String source)
Adds a ban to the this list. |
Set<BanEntry> |
getBanEntries()
Gets a set containing every BanEntry in this list. |
BanEntry |
getBanEntry(String target)
Gets a BanEntry by target. |
boolean |
isBanned(String target)
Gets if a BanEntry exists for the target, indicating an active
ban status. |
void |
pardon(String target)
Removes the specified target from this list, therefore indicating a "not banned" status. |
| Method Detail |
|---|
BanEntry getBanEntry(String target)
BanEntry by target.
target - entry parameter to search for
BanEntry addBan(String target,
String reason,
Date expires,
String source)
target - the target of the banreason - reason for the ban, null indicates implementation defaultexpires - date for the ban's expiration (unban), or null to imply
foreversource - source of the ban, null indicates implementation default
Set<BanEntry> getBanEntries()
BanEntry in this list.
boolean isBanned(String target)
BanEntry exists for the target, indicating an active
ban status.
target - the target to find
BanEntry exists for the name, indicating an
active ban status, false otherwisevoid pardon(String target)
target - the target to remove from this list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||