Search in sources :

Example 21 with ClientId

use of io.datarouter.storage.client.ClientId in project datarouter by hotpads.

the class DatarouterClientHandler method initClient.

@Handler
public Mav initClient(String clientName) {
    ClientId clientId = datarouterClients.getClientId(clientName);
    datarouterClients.getClientManager(clientId).initClient(clientId);
    return new InContextRedirectMav(request, paths.datarouter);
}
Also used : ClientId(io.datarouter.storage.client.ClientId) InContextRedirectMav(io.datarouter.web.handler.mav.imp.InContextRedirectMav) BaseHandler(io.datarouter.web.handler.BaseHandler)

Aggregations

ClientId (io.datarouter.storage.client.ClientId)21 List (java.util.List)10 Inject (javax.inject.Inject)9 Scanner (io.datarouter.scanner.Scanner)7 BaseHandler (io.datarouter.web.handler.BaseHandler)7 TagCreator.div (j2html.TagCreator.div)6 ContainerTag (j2html.tags.ContainerTag)6 ArrayList (java.util.ArrayList)6 Optional (java.util.Optional)6 DatarouterChangelogDtoBuilder (io.datarouter.instrumentation.changelog.ChangelogRecorder.DatarouterChangelogDtoBuilder)4 DatarouterClients (io.datarouter.storage.client.DatarouterClients)4 PhysicalNode (io.datarouter.storage.node.type.physical.PhysicalNode)4 Mav (io.datarouter.web.handler.mav.Mav)4 J2HtmlTable (io.datarouter.web.html.j2html.J2HtmlTable)4 Bootstrap4PageFactory (io.datarouter.web.html.j2html.bootstrap4.Bootstrap4PageFactory)4 DatarouterWebRequireJsV2 (io.datarouter.web.requirejs.DatarouterWebRequireJsV2)4 Collections (java.util.Collections)4 Map (java.util.Map)4 Logger (org.slf4j.Logger)4 LoggerFactory (org.slf4j.LoggerFactory)4