Package org.cyclos.security.system
Class SystemMonitorServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.system.SystemMonitorServiceSecurity
-
- All Implemented Interfaces:
Service,SystemMonitorService
@Security public class SystemMonitorServiceSecurity extends BaseServiceSecurity implements SystemMonitorService
Security layer forSystemMonitorService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description SystemMonitorServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SystemMonitorExportResultexport()Generates a PDF report containing the whole system information: general information, recurring tasks, background tasks, database upgrades, etc.SystemInformationDatagetSystemInformation(List<String> members)Returns general information about Cyclos.List<BackgroundTaskData>listBackgroundTasks(BackgroundTaskQuery query)Lists all background tasks applying the given filterList<PollingTaskData>listPollingTasks(PollingTaskQuery query)Lists all polling tasks but applying the given filtervoidrebuildClosedAccountBalances()Schedules a rebuild of the all closed account balances.protected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if nonevoidscheduleExecution(String taskType)Schedules a new execution to run as soon as possible for the given taskPage<DatabaseUpgradeData>searchDatabaseHistoryLogs(DatabaseUpgradeQuery query)Searches for the the database upgrades that were applied.voidvacuumDatabase()Executes a vacuum and an analyze of the database.-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
export
public SystemMonitorExportResult export() throws FrameworkException
Description copied from interface:SystemMonitorServiceGenerates a PDF report containing the whole system information: general information, recurring tasks, background tasks, database upgrades, etc.- Specified by:
exportin interfaceSystemMonitorService- Throws:
FrameworkException
-
getSystemInformation
public SystemInformationData getSystemInformation(List<String> members)
Description copied from interface:SystemMonitorServiceReturns general information about Cyclos.- Specified by:
getSystemInformationin interfaceSystemMonitorService- Parameters:
members- the members whose information was already received by the client. Null for the first time the client request for information.
-
listBackgroundTasks
public List<BackgroundTaskData> listBackgroundTasks(BackgroundTaskQuery query)
Description copied from interface:SystemMonitorServiceLists all background tasks applying the given filter- Specified by:
listBackgroundTasksin interfaceSystemMonitorService
-
listPollingTasks
public List<PollingTaskData> listPollingTasks(PollingTaskQuery query)
Description copied from interface:SystemMonitorServiceLists all polling tasks but applying the given filter- Specified by:
listPollingTasksin interfaceSystemMonitorService
-
rebuildClosedAccountBalances
public void rebuildClosedAccountBalances() throws FrameworkExceptionDescription copied from interface:SystemMonitorServiceSchedules a rebuild of the all closed account balances.- Specified by:
rebuildClosedAccountBalancesin interfaceSystemMonitorService- Throws:
FrameworkException
-
scheduleExecution
public void scheduleExecution(String taskType)
Description copied from interface:SystemMonitorServiceSchedules a new execution to run as soon as possible for the given task- Specified by:
scheduleExecutionin interfaceSystemMonitorService- Parameters:
taskType- the qualified class name of the polling task
-
searchDatabaseHistoryLogs
public Page<DatabaseUpgradeData> searchDatabaseHistoryLogs(DatabaseUpgradeQuery query) throws FrameworkException
Description copied from interface:SystemMonitorServiceSearches for the the database upgrades that were applied.- Specified by:
searchDatabaseHistoryLogsin interfaceSystemMonitorService- Throws:
FrameworkException
-
vacuumDatabase
public void vacuumDatabase() throws FrameworkExceptionDescription copied from interface:SystemMonitorServiceExecutes a vacuum and an analyze of the database.- Specified by:
vacuumDatabasein interfaceSystemMonitorService- Throws:
FrameworkException
-
resolveEntityCheck
protected EntityCheck<?> resolveEntityCheck()
Description copied from class:BaseServiceSecurityMust be implemented in order to return theEntityCheckmanaged by this security component, or null if none- Specified by:
resolveEntityCheckin classBaseServiceSecurity
-
-