Class BaseRestService

    • Constructor Detail

      • BaseRestService

        public BaseRestService()
    • Method Detail

      • 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()
      • 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
      • 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)