addBan

public abstract BanEntry addBan(String target, String reason, Date expires, String source)

Adds ban to the this list. If previous ban exists, this will update the previous entry.

Return

the entry for the newly created ban, or the entry for the (updated) previous ban

Parameters

target

the target of the ban

reason

reason for the ban, null indicates implementation default

expires

date for the ban's expiration (unban), or null to imply forever

source

source of the ban, null indicates implementation default