Package io.datarouter.auth.web
Class DatarouterAccountManagerHandler
java.lang.Object
io.datarouter.web.handler.BaseHandler
io.datarouter.auth.web.DatarouterAccountManagerHandler
public class DatarouterAccountManagerHandler
extends io.datarouter.web.handler.BaseHandler
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatarouterAccountManagerHandler.AccountCredentialDtostatic classDatarouterAccountManagerHandler.AccountDtostatic classDatarouterAccountManagerHandler.AvailableRouteSetstatic classDatarouterAccountManagerHandler.DatarouterAccountDetailsstatic classDatarouterAccountManagerHandler.DatarouterAccountDetailsAndKeypairstatic classDatarouterAccountManagerHandler.SetCredentialActivationDtostatic classDatarouterAccountManagerHandler.TextPermissionNested classes/interfaces inherited from class io.datarouter.web.handler.BaseHandler
io.datarouter.web.handler.BaseHandler.Handler, io.datarouter.web.handler.BaseHandler.NullHandlerDecoder -
Field Summary
Fields inherited from class io.datarouter.web.handler.BaseHandler
accountName, HANDLER_CLASS, HANDLER_ENCODER_ATTRIBUTE, HANDLER_METHOD, params, paramValidators, request, REQUEST_DURATION_STRING, REQUEST_RECEIVED_AT, response, servletContext, SUBMIT_ACTION, TRACE_CONTEXT, TRACE_URL_REQUEST_ATTRIBUTE -
Constructor Summary
Constructors Modifier Constructor Description DatarouterAccountManagerHandler(BaseDatarouterAccountDao datarouterAccountDao, BaseDatarouterAccountPermissionDao datarouterAccountPermissionDao, DatarouterAccountCredentialService acccountCredentialService, io.datarouter.storage.config.properties.DatarouterServerTypeSupplier serverType, DatarouterAuthFiles files, DatarouterAuthPaths paths, DefaultDatarouterAccountAvailableEndpointsProvider defaultDatarouterAccountAvailableEndpointsProvider, io.datarouter.web.html.react.bootstrap4.Bootstrap4ReactPageFactory reactPageFactory, io.datarouter.instrumentation.changelog.ChangelogRecorder changelogRecorder, io.datarouter.instrumentation.metric.MetricLinkBuilder metricLinkBuilder, io.datarouter.web.user.session.CurrentUserSessionInfoService currentSessionInfoService, DatarouterAccountDeleteAction datarouterAccountDeleteAction)protectedDatarouterAccountManagerHandler(BaseDatarouterAccountDao datarouterAccountDao, BaseDatarouterAccountPermissionDao datarouterAccountPermissionDao, DatarouterAccountCredentialService acccountCredentialService, io.datarouter.storage.config.properties.DatarouterServerTypeSupplier serverType, DatarouterAuthFiles files, DatarouterAccountAvailableEndpointsProvider datarouterAccountAvailableEndpointsProvider, io.datarouter.web.html.react.bootstrap4.Bootstrap4ReactPageFactory reactPageFactory, io.datarouter.instrumentation.changelog.ChangelogRecorder changelogRecorder, io.datarouter.instrumentation.metric.MetricLinkBuilder metricLinkBuilder, io.datarouter.web.user.session.CurrentUserSessionInfoService currentSessionInfoService, DatarouterAccountDeleteAction datarouterAccountDeleteAction, String path) -
Method Summary
Methods inherited from class io.datarouter.web.handler.BaseHandler
getDefaultMultipartCharset, getLastPathSegment, getParamValidator, getParamValidator, getRequest, getSessionInfo, getUserZoneId, handleMissingParameters, handleWrapper, invokeHandlerMethod, postProcess, setAccountName, setDefaultHandlerDecoder, setDefaultHandlerEncoder, setParams, setRequest, setResponse, setServletContext
-
Constructor Details
-
DatarouterAccountManagerHandler
@Inject public DatarouterAccountManagerHandler(BaseDatarouterAccountDao datarouterAccountDao, BaseDatarouterAccountPermissionDao datarouterAccountPermissionDao, DatarouterAccountCredentialService acccountCredentialService, io.datarouter.storage.config.properties.DatarouterServerTypeSupplier serverType, DatarouterAuthFiles files, DatarouterAuthPaths paths, DefaultDatarouterAccountAvailableEndpointsProvider defaultDatarouterAccountAvailableEndpointsProvider, io.datarouter.web.html.react.bootstrap4.Bootstrap4ReactPageFactory reactPageFactory, io.datarouter.instrumentation.changelog.ChangelogRecorder changelogRecorder, io.datarouter.instrumentation.metric.MetricLinkBuilder metricLinkBuilder, io.datarouter.web.user.session.CurrentUserSessionInfoService currentSessionInfoService, DatarouterAccountDeleteAction datarouterAccountDeleteAction) -
DatarouterAccountManagerHandler
protected DatarouterAccountManagerHandler(BaseDatarouterAccountDao datarouterAccountDao, BaseDatarouterAccountPermissionDao datarouterAccountPermissionDao, DatarouterAccountCredentialService acccountCredentialService, io.datarouter.storage.config.properties.DatarouterServerTypeSupplier serverType, DatarouterAuthFiles files, DatarouterAccountAvailableEndpointsProvider datarouterAccountAvailableEndpointsProvider, io.datarouter.web.html.react.bootstrap4.Bootstrap4ReactPageFactory reactPageFactory, io.datarouter.instrumentation.changelog.ChangelogRecorder changelogRecorder, io.datarouter.instrumentation.metric.MetricLinkBuilder metricLinkBuilder, io.datarouter.web.user.session.CurrentUserSessionInfoService currentSessionInfoService, DatarouterAccountDeleteAction datarouterAccountDeleteAction, String path)
-
-
Method Details
-
index
public io.datarouter.web.handler.mav.Mav index() -
list
-
getDetails
-
add
-
toggleUserMappings
public DatarouterAccountManagerHandler.DatarouterAccountDetails toggleUserMappings(String accountName) -
delete
-
lookupAccount
-
addCredential
-
deleteCredential
public DatarouterAccountManagerHandler.DatarouterAccountDetails deleteCredential(String apiKey, String accountName) -
addSecretCredential
public DatarouterAccountManagerHandler.DatarouterAccountDetailsAndKeypair addSecretCredential(String accountName) -
deleteSecretCredential
public DatarouterAccountManagerHandler.DatarouterAccountDetails deleteSecretCredential(String secretName, String accountName) -
setCredentialActivation
public DatarouterAccountManagerHandler.DatarouterAccountDetails setCredentialActivation(DatarouterAccountManagerHandler.SetCredentialActivationDto dto) -
getAvailableEndpoints
-
addPermission
public DatarouterAccountManagerHandler.DatarouterAccountDetails addPermission(String accountName, String endpoint) -
deletePermission
public DatarouterAccountManagerHandler.DatarouterAccountDetails deletePermission(String accountName, String endpoint) -
isServerTypeDev
public boolean isServerTypeDev() -
getDetailsForAccountName
public DatarouterAccountManagerHandler.DatarouterAccountDetails getDetailsForAccountName(String accountName)
-