public class MessageConsoleService
extends org.wso2.carbon.core.AbstractAdmin
| Constructor and Description |
|---|
MessageConsoleService() |
| Modifier and Type | Method and Description |
|---|---|
PermissionBean |
getAvailablePermissions()
This method will return PermissionBean that contains permissions regarding message console operations for
logged in user.
|
ScheduleTaskInfo |
getDataPurgingDetails(String table)
Get already schedule information for given table
|
protected String |
getUsername()
This method is use to get logged in username with tenant domain
|
void |
scheduleDataPurging(String table,
String cronString,
int retentionPeriod)
Scheduling data purging task for given table
|
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamppublic PermissionBean getAvailablePermissions() throws MessageConsoleException
MessageConsoleExceptionprotected String getUsername()
getUsername in class org.wso2.carbon.core.AbstractAdminpublic void scheduleDataPurging(String table, String cronString, int retentionPeriod) throws MessageConsoleException
table - Table name that need to purgecronString - Task cron schedule informationretentionPeriod - Data retention periodMessageConsoleExceptionpublic ScheduleTaskInfo getDataPurgingDetails(String table) throws MessageConsoleException
table - Table name that need to get task informationMessageConsoleExceptionCopyright © 2016 WSO2. All rights reserved.