Class BaseRestService
- java.lang.Object
-
- org.webswing.server.services.rest.resources.BaseRestService
-
- Direct Known Subclasses:
GlobalRestService,SwingAppRestService
public abstract class BaseRestService extends Object
-
-
Constructor Summary
Constructors Constructor Description BaseRestService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgenerateCsrfToken()org.webswing.server.common.model.admin.ApplicationInfogetAppInfo()protected org.webswing.server.common.model.admin.ApplicationInfogetAppInfoImpl()List<org.webswing.model.s2c.ApplicationInfoMsg>getApps()protected abstract List<org.webswing.model.s2c.ApplicationInfoMsg>getAppsImpl()org.webswing.server.common.model.meta.MetaObjectgetConfigMeta()protected abstract ConfigurationServicegetConfigService()protected abstract PrimaryUrlHandlergetHandler()org.webswing.server.common.model.meta.MetaObjectgetMeta(Map<String,Object> json)List<org.webswing.server.common.model.admin.BasicApplicationInfo>getPaths()protected abstract List<org.webswing.server.common.model.admin.BasicApplicationInfo>getPathsImpl()Map<String,Boolean>getPermissions()protected Map<String,Boolean>getPermissionsImpl()StringgetVersion()protected booleanisMasterPermited(org.webswing.server.services.security.api.WebswingAction... actions)protected booleanisPermited(org.webswing.server.services.security.api.WebswingAction... actions)voidping()Stringresolve(String type, String stringToResolve)voidsaveConfig(Map<String,Object> config)protected voidsaveConfigImpl(Map<String,Object> config)Map<String,String>searchVariables(String type, String searchSequence)
-
-
-
Method Detail
-
getHandler
protected abstract PrimaryUrlHandler getHandler()
-
getConfigService
protected abstract ConfigurationService getConfigService()
-
getApps
@GET @Path("/apps") public List<org.webswing.model.s2c.ApplicationInfoMsg> getApps() throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
getAppsImpl
protected abstract List<org.webswing.model.s2c.ApplicationInfoMsg> getAppsImpl()
-
getAppInfo
@GET @Path("/info") public org.webswing.server.common.model.admin.ApplicationInfo getAppInfo() throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
getAppInfoImpl
protected org.webswing.server.common.model.admin.ApplicationInfo getAppInfoImpl()
-
getPaths
@GET @Path("/rest/paths") public List<org.webswing.server.common.model.admin.BasicApplicationInfo> getPaths() throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
getPathsImpl
protected abstract List<org.webswing.server.common.model.admin.BasicApplicationInfo> getPathsImpl()
-
saveConfig
@POST @Path("/rest/config") public void saveConfig(Map<String,Object> config) throws Exception- Throws:
Exception
-
saveConfigImpl
protected void saveConfigImpl(Map<String,Object> config) throws Exception
- Throws:
Exception
-
getConfigMeta
@GET @Path("/rest/config") public org.webswing.server.common.model.meta.MetaObject getConfigMeta() throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
searchVariables
@GET @Path("/rest/variables/search/{type}") public Map<String,String> searchVariables(@PathParam("type") String type, @QueryParam("search") String searchSequence) throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
resolve
@GET @Path("/rest/variables/resolve/{type}") @Produces("text/plain") public String resolve(@PathParam("type") String type, @QueryParam("resolve") String stringToResolve) throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
getMeta
@POST @Path("/rest/metaConfig") public org.webswing.server.common.model.meta.MetaObject getMeta(Map<String,Object> json) throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
getPermissions
@GET @Path("/rest/permissions") public Map<String,Boolean> getPermissions() throws Exception- Throws:
Exception
-
getPermissionsImpl
protected Map<String,Boolean> getPermissionsImpl() throws Exception
- Throws:
Exception
-
getVersion
@GET @Path("/rest/version") @Produces("text/plain") public String getVersion() throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
generateCsrfToken
@GET @Path("/rest/CSRFToken") @Produces("text/plain") public String generateCsrfToken() throws org.webswing.server.model.exception.WsException- Throws:
org.webswing.server.model.exception.WsException
-
ping
@GET @Path("/rest/ping") public void ping()
-
isPermited
protected boolean isPermited(org.webswing.server.services.security.api.WebswingAction... actions)
-
isMasterPermited
protected boolean isMasterPermited(org.webswing.server.services.security.api.WebswingAction... actions)
-
-