|
Clearspace API (2.5.18) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BanManager
Manages the banning of User Accounts and IP Addresses. There are various ban levels, such as Ban Login, Ban Post, and Moderate Post. Bans can also be set to expire, allowing for temporary bans in addition to permanent bans.
| Field Summary | |
|---|---|
static String |
PROPERTY_BANNED_USER_ENABLE
****** Ban Setting Properties ****** |
static String |
PROPERTY_EMAIL_ADDRESS
|
static String |
PROPERTY_EMAIL_BODY
|
static String |
PROPERTY_EMAIL_NAME
|
static String |
PROPERTY_EMAIL_NOTIFY_ENABLED
|
static String |
PROPERTY_EMAIL_SUBJECT
|
static int |
TYPE_BAN_IP
Ban By IP Address |
static int |
TYPE_BAN_USER
Ban by user account |
| Method Summary | |
|---|---|
void |
createBan(Ban ban)
Creates a ban entry in the database |
void |
deleteUserBans(User user)
Removes all of a user's ban entries from the database. |
Ban |
getBan(long banID)
Gets a Ban Object from the database. |
Ban |
getBan(long userID,
BanLevel banLevel)
Deprecated. Will return null if multiple entries are found. Use getBans(BanFilter) instead. |
Ban |
getBan(String ipAddress,
BanLevel banLevel)
Deprecated. Will return null if multiple entries are found. Use getBans(BanFilter) instead. |
List<Ban> |
getBans()
Gets an unfiltered list of Ban objects from database |
List<Ban> |
getBans(BanFilter filter)
Gets a filtered list of Ban objects from the database |
int |
getBansCount(BanFilter filter)
Gets a count of the filtered list of Ban objects from the database |
boolean |
isBanningEnabled()
Checks if the ban feature is enabled |
boolean |
isEmailNotifyEnabled()
Gets the comma-delimited list of email addresses to notify when a user with with ban level notify posts a message. |
boolean |
isValidIpAddress(String ip)
Check that an IP Address is valid. |
void |
removeBan(long banID)
Removes a ban entry from the database |
void |
setBanningEnabled(boolean enabled)
Enabled/Disabled Ban feature. |
void |
setEmailNotifyEnabled(boolean emailNotifyEnabled)
Sets the list of email addresses to notify when an attachment is blocked |
void |
updateBan(Ban ban)
Updates a ban entry in the database |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy |
| Field Detail |
|---|
static final int TYPE_BAN_USER
static final int TYPE_BAN_IP
static final String PROPERTY_BANNED_USER_ENABLE
static final String PROPERTY_EMAIL_NOTIFY_ENABLED
static final String PROPERTY_EMAIL_NAME
static final String PROPERTY_EMAIL_ADDRESS
static final String PROPERTY_EMAIL_SUBJECT
static final String PROPERTY_EMAIL_BODY
| Method Detail |
|---|
void createBan(Ban ban)
ban - the ticket to createvoid updateBan(Ban ban)
ban - the ticket to updatevoid removeBan(long banID)
banID - the id of the ban to removevoid deleteUserBans(User user)
user - the user associated with the bans being deleted.Ban getBan(long banID)
banID - the ID of the ban object
@Deprecated
Ban getBan(long userID,
BanLevel banLevel)
getBans(BanFilter) instead.
userID - userID the ID of the userbanLevel - the level of the ban
@Deprecated
Ban getBan(String ipAddress,
BanLevel banLevel)
getBans(BanFilter) instead.
ipAddress - the IP Address of the banbanLevel - the level of the ban
List<Ban> getBans()
List<Ban> getBans(BanFilter filter)
filter - the BannedUserFilter object
Banint getBansCount(BanFilter filter)
filter - the BannedUserFilter object
Banboolean isValidIpAddress(String ip)
ip - the ip address to check
boolean isBanningEnabled()
void setBanningEnabled(boolean enabled)
enabled - the boolean value to enable/disable ban users feature.boolean isEmailNotifyEnabled()
void setEmailNotifyEnabled(boolean emailNotifyEnabled)
emailNotifyEnabled - the comma-delimited list of email addresses
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||