Class GlobalRestService
- java.lang.Object
-
- org.webswing.server.services.rest.resources.GlobalRestService
-
- All Implemented Interfaces:
BasicApi,ManageApplicationsApi,ManageConfigurationApi,ViewLogsApi
public class GlobalRestService extends Object implements BasicApi, ManageApplicationsApi, ManageConfigurationApi, ViewLogsApi
-
-
Constructor Summary
Constructors Constructor Description GlobalRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegeractiveSessionsCount()Get Number of Active SessionsvoidcreateApp(String path)Create ApplicationFiledownloadLog(String type)Download LogsStringgetAdminConsoleUrl()URL of admin consoleList<ApplicationInfoMsg>getApps()Get ApplicationsList<BasicApplicationInfo>getAppsForSessionLogView()Get Session-Logging ApplicationsMetaObjectgetConfig()Get ConfigFilegetIcon()Get Application IconApplicationInfogetInfo()Get Path InfoLogResponsegetLogs(String type, LogRequest request)Request Log ContentManifestgetManifest()PWA manifestMetaObjectgetMeta(Map<String,Object> requestBody)Describe ConfigurationList<BasicApplicationInfo>getPaths()Get Available ApplicationsPermissionsgetPermissions()Get User PermissionsSessionsgetSessions()Get All SessionsMap<String,Map<String,BigDecimal>>getStats()Get Aggregated StatsStringgetVersion()Webswing Server Versionvoidping()PingvoidremoveApp(String path)Remove ApplicationStringresolve(String type, String resolve)Resolve Variables.voidsaveConfig(Map<String,Object> config)Set ConfigMap<String,String>searchVariables(String type, String search)Find VariablesvoidstartApp(String path)Enable ApplicationvoidstopApp(String path)Disable Application
-
-
-
Method Detail
-
getInfo
public ApplicationInfo getInfo() throws RestException
Description copied from interface:BasicApiGet Path Info- Specified by:
getInfoin interfaceBasicApi- Throws:
RestException
-
getPaths
public List<BasicApplicationInfo> getPaths() throws RestException
Description copied from interface:BasicApiGet Available Applications- Specified by:
getPathsin interfaceBasicApi- Throws:
RestException
-
getSessions
public Sessions getSessions() throws RestException
Description copied from interface:BasicApiGet All Sessions- Specified by:
getSessionsin interfaceBasicApi- Throws:
RestException
-
activeSessionsCount
public Integer activeSessionsCount() throws RestException
Description copied from interface:BasicApiGet Number of Active Sessions- Specified by:
activeSessionsCountin interfaceBasicApi- Throws:
RestException
-
getPermissions
public Permissions getPermissions() throws RestException
Description copied from interface:BasicApiGet User Permissions- Specified by:
getPermissionsin interfaceBasicApi- Throws:
RestException
-
getApps
public List<ApplicationInfoMsg> getApps() throws RestException
Description copied from interface:BasicApiGet Applications- Specified by:
getAppsin interfaceBasicApi- Throws:
RestException
-
getAdminConsoleUrl
public String getAdminConsoleUrl() throws RestException
Description copied from interface:BasicApiURL of admin console- Specified by:
getAdminConsoleUrlin interfaceBasicApi- Throws:
RestException
-
getVersion
public String getVersion() throws RestException
Description copied from interface:BasicApiWebswing Server Version- Specified by:
getVersionin interfaceBasicApi- Throws:
RestException
-
ping
public void ping() throws RestExceptionDescription copied from interface:BasicApiPing- Specified by:
pingin interfaceBasicApi- Throws:
RestException
-
getStats
public Map<String,Map<String,BigDecimal>> getStats() throws RestException
Description copied from interface:BasicApiGet Aggregated Stats- Specified by:
getStatsin interfaceBasicApi- Throws:
RestException
-
getIcon
public File getIcon() throws RestException
Description copied from interface:BasicApiGet Application Icon- Specified by:
getIconin interfaceBasicApi- Throws:
RestException
-
getManifest
public Manifest getManifest() throws RestException
Description copied from interface:BasicApiPWA manifest- Specified by:
getManifestin interfaceBasicApi- Throws:
RestException
-
createApp
public void createApp(String path) throws RestException
Description copied from interface:ManageApplicationsApiCreate Application- Specified by:
createAppin interfaceManageApplicationsApi- Throws:
RestException
-
removeApp
public void removeApp(String path) throws RestException
Description copied from interface:ManageApplicationsApiRemove Application- Specified by:
removeAppin interfaceManageApplicationsApi- Throws:
RestException
-
startApp
public void startApp(String path) throws RestException
Description copied from interface:ManageApplicationsApiEnable Application- Specified by:
startAppin interfaceManageApplicationsApi- Throws:
RestException
-
stopApp
public void stopApp(String path) throws RestException
Description copied from interface:ManageApplicationsApiDisable Application- Specified by:
stopAppin interfaceManageApplicationsApi- Throws:
RestException
-
getConfig
public MetaObject getConfig() throws RestException
Description copied from interface:ManageConfigurationApiGet Config- Specified by:
getConfigin interfaceManageConfigurationApi- Throws:
RestException
-
saveConfig
public void saveConfig(Map<String,Object> config) throws RestException
Description copied from interface:ManageConfigurationApiSet Config- Specified by:
saveConfigin interfaceManageConfigurationApi- Throws:
RestException
-
getMeta
public MetaObject getMeta(Map<String,Object> requestBody) throws RestException
Description copied from interface:ManageConfigurationApiDescribe Configuration- Specified by:
getMetain interfaceManageConfigurationApi- Throws:
RestException
-
resolve
public String resolve(String type, String resolve) throws RestException
Description copied from interface:ManageConfigurationApiResolve Variables.- Specified by:
resolvein interfaceManageConfigurationApi- Throws:
RestException
-
searchVariables
public Map<String,String> searchVariables(String type, String search) throws RestException
Description copied from interface:ManageConfigurationApiFind Variables- Specified by:
searchVariablesin interfaceManageConfigurationApi- Throws:
RestException
-
getLogs
public LogResponse getLogs(String type, LogRequest request) throws RestException
Description copied from interface:ViewLogsApiRequest Log Content- Specified by:
getLogsin interfaceViewLogsApi- Throws:
RestException
-
downloadLog
public File downloadLog(String type) throws RestException
Description copied from interface:ViewLogsApiDownload Logs- Specified by:
downloadLogin interfaceViewLogsApi- Throws:
RestException
-
getAppsForSessionLogView
public List<BasicApplicationInfo> getAppsForSessionLogView() throws RestException
Description copied from interface:ViewLogsApiGet Session-Logging Applications- Specified by:
getAppsForSessionLogViewin interfaceViewLogsApi- Throws:
RestException
-
-