Skip navigation links
A B C D E F G H I J L M N O P Q R S T U V W 

A

accept(request) - Method in interface ai.tock.shared.security.RequestFilter
Returns true is the request is accepted, false either.
addAuth(authProvider, pathsToProtect) - Method in class ai.tock.shared.vertx.WebVerticle
 
addConstrainedTypes(types) - Static method in class ai.tock.shared.jackson.ConstrainedValueWrapperKt
Add other constrained types.
addDeserializer($this$addDeserializer, type, deser) - Static method in class ai.tock.shared.jackson.JacksonKt
Add a deserializer in the SimpleModule.
addDevCorsHandler() - Method in class ai.tock.shared.vertx.WebVerticle
 
addJacksonConverter($this$addJacksonConverter, objectMapper) - Static method in class ai.tock.shared.RetrofitsKt
Add jackson converter factory.
addSerializer($this$addSerializer, type, ser) - Static method in class ai.tock.shared.jackson.JacksonKt
Add a serializer in the SimpleModule.
ai.tock.shared - package ai.tock.shared
 
ai.tock.shared.cache - package ai.tock.shared.cache
 
ai.tock.shared.jackson - package ai.tock.shared.jackson
 
ai.tock.shared.security - package ai.tock.shared.security
 
ai.tock.shared.security.auth - package ai.tock.shared.security.auth
 
ai.tock.shared.security.mongo - package ai.tock.shared.security.mongo
 
ai.tock.shared.vertx - package ai.tock.shared.vertx
 
AnyValueWrapper - Class in ai.tock.shared.jackson
A jackson wrapper to store class name with dynamic type value. Use with care, as it stores the class name in json.
AnyValueWrapper(klass, value) - Constructor for class ai.tock.shared.jackson.AnyValueWrapper
A jackson wrapper to store class name with dynamic type value. Use with care, as it stores the class name in json.
AnyValueWrapper(klass, value) - Constructor for class ai.tock.shared.jackson.AnyValueWrapper
 
AnyValueWrapper(value) - Constructor for class ai.tock.shared.jackson.AnyValueWrapper
 
AnyValueWrapper.Companion - Class in ai.tock.shared.jackson
 
applyParamsToDocument(doc, params) - Method in class ai.tock.shared.SvgGenerator
 
authProvider() - Method in class ai.tock.shared.vertx.WebVerticle
By default there is no auth provider - ie nothing is protected.

B

badRequest(message) - Method in class ai.tock.shared.vertx.WebVerticle.Companion
 
BadRequestException - Exception in ai.tock.shared.vertx
Http 400 exception.
BadRequestException(message) - Constructor for exception ai.tock.shared.vertx.BadRequestException
Http 400 exception.
basicAuthInterceptor(login, password) - Static method in class ai.tock.shared.RetrofitsKt
Create a basic auth interceptor.
basicCredentialsHeader(login, password) - Static method in class ai.tock.shared.RetrofitsKt
Encode basic credential header.
blocking($this$blocking, blockingHandler, resultHandler) - Static method in class ai.tock.shared.vertx.VertXsKt
Execute a blocking task (with ordered false).
blocking($this$blocking, handler) - Static method in class ai.tock.shared.vertx.VertXsKt
Execute a blocking handler on route (with ordered false).
blocking(method, path, role, basePath, handler) - Method in class ai.tock.shared.vertx.WebVerticle
 
blockingDelete(path, role, logger, handler) - Method in class ai.tock.shared.vertx.WebVerticle
 
blockingGet(path, role, basePath, handler) - Method in class ai.tock.shared.vertx.WebVerticle
 
blockingJsonDelete(path, role, logger, handler) - Method in class ai.tock.shared.vertx.WebVerticle
 
blockingJsonGet(path, role, handler) - Method in class ai.tock.shared.vertx.WebVerticle
 
blockingPost(path, role, logger, handler) - Method in class ai.tock.shared.vertx.WebVerticle
 
blockingUploadBinaryPost(path, role, handler) - Method in class ai.tock.shared.vertx.WebVerticle
 
blockingUploadPost(path, role, logger, handler) - Method in class ai.tock.shared.vertx.WebVerticle
 
bodyHandler() - Method in class ai.tock.shared.vertx.WebVerticle
 
booleanProperty(name, defaultValue) - Static method in class ai.tock.shared.PropertiesKt
Return an env or system Boolean property.

C

CachesKt - Class in ai.tock.shared.cache
 
CachesKt() - Constructor for class ai.tock.shared.cache.CachesKt
 
changeNamespace($this$changeNamespace, newNamespace) - Static method in class ai.tock.shared.StringsKt
Replace the current namespace with the new namespace.
checkMaxLengthAllowed(text) - Static method in class ai.tock.shared.StringsKt
Checks that the text has no more than 50000 chars. Else cuts the String.
choose(list) - Method in class ai.tock.shared.Dice
Choose randomly an item in a list.
CollectionsKt - Class in ai.tock.shared
 
CollectionsKt() - Constructor for class ai.tock.shared.CollectionsKt
 
Companion - Static variable in enum ai.tock.shared.ImageFormat
 
Companion - Static variable in class ai.tock.shared.jackson.AnyValueWrapper
 
Companion - Static variable in class ai.tock.shared.jackson.ConstrainedValueWrapper
 
Companion - Static variable in class ai.tock.shared.jackson.JacksonDeserializer
 
Companion - Static variable in enum ai.tock.shared.security.TockUserRole
 
Companion - Static variable in class ai.tock.shared.vertx.WebVerticle
 
component1() - Method in class ai.tock.shared.jackson.AnyValueWrapper
 
component1() - Method in class ai.tock.shared.jackson.ConstrainedValueWrapper
 
component1() - Method in class ai.tock.shared.security.SimpleObfuscator
The search regexp.
component1() - Method in class ai.tock.shared.security.TockUser
 
component1() - Method in class ai.tock.shared.vertx.DetailedHealthcheckResults
list of task results
component1() - Method in class ai.tock.shared.vertx.TaskResult
task identifier
component2() - Method in class ai.tock.shared.jackson.AnyValueWrapper
 
component2() - Method in class ai.tock.shared.jackson.ConstrainedValueWrapper
 
component2() - Method in class ai.tock.shared.security.SimpleObfuscator
The replacement string
component2() - Method in class ai.tock.shared.security.TockUser
 
component2() - Method in class ai.tock.shared.vertx.TaskResult
indicate the task status
component3() - Method in class ai.tock.shared.security.TockUser
 
component4() - Method in class ai.tock.shared.security.TockUser
 
concat(s1, s2) - Static method in class ai.tock.shared.StringsKt
Concat two strings and manage intermediate punctuation.
configure() - Method in class ai.tock.shared.vertx.WebVerticle
 
ConstrainedValueWrapper<T> - Class in ai.tock.shared.jackson
A jackson wrapper to store class name with dynamic type value. Only allowed types can be deserialized.
ConstrainedValueWrapper(klass, value) - Constructor for class ai.tock.shared.jackson.ConstrainedValueWrapper
A jackson wrapper to store class name with dynamic type value. Only allowed types can be deserialized.
ConstrainedValueWrapper(klass, value) - Constructor for class ai.tock.shared.jackson.ConstrainedValueWrapper
 
ConstrainedValueWrapper(value) - Constructor for class ai.tock.shared.jackson.ConstrainedValueWrapper
 
ConstrainedValueWrapper.Companion - Class in ai.tock.shared.jackson
 
ConstrainedValueWrapperKt - Class in ai.tock.shared.jackson
 
ConstrainedValueWrapperKt() - Constructor for class ai.tock.shared.jackson.ConstrainedValueWrapperKt
 
copy(klass, value) - Method in class ai.tock.shared.jackson.AnyValueWrapper
A jackson wrapper to store class name with dynamic type value. Use with care, as it stores the class name in json.
copy(klass, value) - Method in class ai.tock.shared.jackson.ConstrainedValueWrapper
A jackson wrapper to store class name with dynamic type value. Only allowed types can be deserialized.
copy(regex, replacement) - Method in class ai.tock.shared.security.SimpleObfuscator
Simple implementation for interface StringObfuscator.
copy(user, namespace, roles, registered) - Method in class ai.tock.shared.security.TockUser
Tock implementation of vertx User.
copy(results) - Method in class ai.tock.shared.vertx.DetailedHealthcheckResults
Used to construct JSON
copy(id, status) - Method in class ai.tock.shared.vertx.TaskResult
Used to construct JSON
corsHandler(origin, allowCredentials, allowedMethods, allowedHeaders) - Method in class ai.tock.shared.vertx.WebVerticle
 
createRequestFilter(allowedIps, xAuthToken) - Static method in class ai.tock.shared.security.RequestFilterKt
 

D

DatabasesKt - Class in ai.tock.shared
 
DatabasesKt() - Constructor for class ai.tock.shared.DatabasesKt
 
DatesKt - Class in ai.tock.shared
 
DatesKt() - Constructor for class ai.tock.shared.DatesKt
 
debug($this$debug, throwable) - Static method in class ai.tock.shared.LoggersKt
Logs a Throwable.
decrypt(s) - Static method in class ai.tock.shared.security.EncryptorsKt
Decrypt a string and return the result.
DEFAULT_APP_NAMESPACE - Static variable in class ai.tock.shared.NamespacesKt
The default app namespace.
defaultAuthProvider() - Method in class ai.tock.shared.vertx.WebVerticle
The auth provider provided by default.
defaultErrorHandler(statusCode) - Method in class ai.tock.shared.vertx.WebVerticle
The error handler for match failures. See https://vertx.io/docs/vertx-web/java/#_route_match_failures
defaultHealthcheck() - Method in class ai.tock.shared.vertx.WebVerticle
Provide basic health information: mainly through HTTP status code
DefaultImpls() - Constructor for class ai.tock.shared.Executor.DefaultImpls
 
DefaultImpls() - Constructor for class ai.tock.shared.security.auth.TockAuthProvider.DefaultImpls
 
DefaultImpls() - Constructor for class ai.tock.shared.security.StringObfuscator.DefaultImpls
 
defaultRole() - Method in class ai.tock.shared.vertx.WebVerticle
The default role of a service.
deregisterObfuscators() - Method in class ai.tock.shared.security.TockObfuscatorService
Removes all current stringObfuscators.
detailedHealthcheck(tasks, selfCheck) - Static method in class ai.tock.shared.vertx.DetailedHealthcheckKt
Return an HTTP handler which calls lambdas and construct the HTTP response
detailedHealthcheck() - Method in class ai.tock.shared.vertx.WebVerticle
Provide enhanced information: HTTP response has JSON body with health status of resources
DetailedHealthcheckKt - Class in ai.tock.shared.vertx
 
DetailedHealthcheckKt() - Constructor for class ai.tock.shared.vertx.DetailedHealthcheckKt
 
DetailedHealthcheckResults - Class in ai.tock.shared.vertx
Used to construct JSON
DetailedHealthcheckResults(results) - Constructor for class ai.tock.shared.vertx.DetailedHealthcheckResults
Used to construct JSON
Dice - Class in ai.tock.shared
Manage random things.
documentToPngByteArray(doc) - Method in class ai.tock.shared.SvgToPngConverter
 
doIsPermitted(permissionOrRole, handler) - Method in class ai.tock.shared.security.TockUser
 

E

encrypt(s) - Static method in class ai.tock.shared.security.EncryptorsKt
Encrypt a string and return the result.
EncryptorsKt - Class in ai.tock.shared.security
 
EncryptorsKt() - Constructor for class ai.tock.shared.security.EncryptorsKt
 
endJson($this$endJson, success) - Method in class ai.tock.shared.vertx.WebVerticle
 
endJson($this$endJson, result) - Method in class ai.tock.shared.vertx.WebVerticle
 
endJson($this$endJson, result) - Method in class ai.tock.shared.vertx.WebVerticle
 
equals(p) - Method in class ai.tock.shared.jackson.AnyValueWrapper
A jackson wrapper to store class name with dynamic type value. Use with care, as it stores the class name in json.
equals(p) - Method in class ai.tock.shared.jackson.ConstrainedValueWrapper
A jackson wrapper to store class name with dynamic type value. Only allowed types can be deserialized.
equals(p) - Method in class ai.tock.shared.security.SimpleObfuscator
Simple implementation for interface StringObfuscator.
equals(p) - Method in class ai.tock.shared.security.TockUser
Tock implementation of vertx User.
equals(p) - Method in class ai.tock.shared.vertx.DetailedHealthcheckResults
Used to construct JSON
equals(p) - Method in class ai.tock.shared.vertx.TaskResult
Used to construct JSON
error($this$error, throwable) - Static method in class ai.tock.shared.LoggersKt
Logs a Throwable.
excludedPaths($this, verticle) - Static method in class ai.tock.shared.security.auth.TockAuthProvider.DefaultImpls
Paths to exclude from the AuthProvider.
excludedPaths(verticle) - Method in interface ai.tock.shared.security.auth.TockAuthProvider
Paths to exclude from the AuthProvider.
executeBlocking(delay, runnable) - Method in interface ai.tock.shared.Executor
Execute a task to another thread.
executeBlocking(runnable) - Method in interface ai.tock.shared.Executor
Execute a task to another thread.
executeBlocking(blocking, result) - Method in interface ai.tock.shared.Executor
Execute a task to another thread. If an exception is thrown by the blocking function, null is passed to the result function.
executeBlocking($this$executeBlocking, handler) - Method in class ai.tock.shared.vertx.WebVerticle
Execute blocking code using Vertx.executeBlocking.
Executor - Interface in ai.tock.shared
Manage async tasks.
Executor() - Constructor for interface ai.tock.shared.Executor
 
Executor.DefaultImpls - Class in ai.tock.shared
Manage async tasks.
extract(params) - Method in interface ai.tock.shared.ImageParametersExtractor
Returns the parameters data instance. If null is returned, it means the parameters can not be extracted (class ImageGeneratorHandler returns 404).

F

fieldNameWithValueReady($this$fieldNameWithValueReady) - Static method in class ai.tock.shared.jackson.JacksonKt
Return the current field name, with the value ready to read.
findByCode(code) - Method in class ai.tock.shared.ImageFormat.Companion
 
firstQueryParam($this$firstQueryParam, name) - Method in class ai.tock.shared.vertx.WebVerticle
 
FontLoader - Class in ai.tock.shared
Load and register fonts.

G

generate(params, format) - Method in class ai.tock.shared.ImageGenerator
 
generate(params) - Method in class ai.tock.shared.SvgGenerator
 
getAsyncDatabase(databaseNameProperty) - Static method in class ai.tock.shared.MongosKt
Return the async database specified in the databaseNameProperty. if the env or system property is not found, use the databaseNameProperty as database name (remove "_mongo_db" string is present).
getAuthenticatePath() - Method in class ai.tock.shared.vertx.WebVerticle
 
getBasePath() - Method in class ai.tock.shared.vertx.WebVerticle
 
getCachedValuesForType(type) - Static method in class ai.tock.shared.cache.CachesKt
Returns all cached value for specified type.
getCode() - Method in exception ai.tock.shared.vertx.RestException
 
getContentType() - Method in enum ai.tock.shared.ImageFormat
 
getCredentials() - Method in interface ai.tock.shared.security.mongo.MongoCredentialsProvider
 
getDatabase(databaseNameProperty) - Static method in class ai.tock.shared.MongosKt
Return the sync database specified in the databaseNameProperty. if the env or system property is not found, use the databaseNameProperty as database name (remove "_mongo_db" string is present).
getDefaultCorsOrigin() - Method in class ai.tock.shared.vertx.WebVerticle
Default cors origin (if tock_web_use_default_cors_handler property is set to true).
getDefaultCorsWithCredentials() - Method in class ai.tock.shared.vertx.WebVerticle
By default, allow credentials for cors origin (if tock_web_use_default_cors_handler property is set to true).
getDefaultLocale() - Static method in class ai.tock.shared.LocalesKt
The default Tock Locale. Use property "tock_default_locale" and default value "en".
getDefaultNamespace() - Static method in class ai.tock.shared.NamespacesKt
The Tock app namespace.
getDefaultPort() - Method in class ai.tock.shared.vertx.WebVerticle
The default port of the verticle
getDefaultRequestLogger() - Method in class ai.tock.shared.vertx.WebVerticle.Companion
Default request logger does nothing.
getDefaultVertxOptions() - Static method in class ai.tock.shared.vertx.VertXsKt
default vert.x options in Tock.
getDefaultZoneId() - Static method in class ai.tock.shared.DatesKt
The default ZoneId used by Tock.
getDevEnvironment() - Static method in class ai.tock.shared.PropertiesKt
Return true is the current environment is a dev environment. Use "tock_env" property to know the environment - if not set or if the value is "dev", this is a dev environment.
getEncryptionEnabled() - Static method in class ai.tock.shared.security.EncryptorsKt
Is encryption enabled?
getFromCache(id, type) - Static method in class ai.tock.shared.cache.CachesKt
Returns the value for specified id and type. If no value exists, null is returned.
getHealthcheckPath() - Method in class ai.tock.shared.vertx.WebVerticle
If not null, add a healthcheck for this verticle.
getId() - Method in class ai.tock.shared.vertx.TaskResult
task identifier
getInjector() - Static method in class ai.tock.shared.IOCsKt
Main Tock injector.
getInternalDefaultZoneId() - Static method in class ai.tock.shared.DatesKt
The internal defaultZoneId for Tock - var only for tests. property "tock_default_zone" with default value UTC is used.
getKlass() - Method in class ai.tock.shared.jackson.AnyValueWrapper
 
getKlass() - Method in class ai.tock.shared.jackson.ConstrainedValueWrapper
 
getLogger() - Method in class ai.tock.shared.vertx.WebVerticle
 
getLogoutPath() - Method in class ai.tock.shared.vertx.WebVerticle
 
getMapper() - Static method in class ai.tock.shared.jackson.JacksonKt
The Tock jackson mapper.
getNamespace() - Method in class ai.tock.shared.security.TockUser
 
getOrCache(id, type, valueProvider) - Static method in class ai.tock.shared.cache.CachesKt
Returns the value for specified id and type. If no value exists, valueProvider provides the value to cache. If valueProvider throws exception or returns null, no value is cached and null is returned.
getOrganization($this$organization) - Method in class ai.tock.shared.vertx.WebVerticle
 
getRegex() - Method in class ai.tock.shared.security.SimpleObfuscator
The search regexp.
getRegex() - Method in interface ai.tock.shared.security.StringObfuscator
The search regexp.
getRegistered() - Method in class ai.tock.shared.security.TockUser
 
getReplacement() - Method in class ai.tock.shared.security.SimpleObfuscator
The replacement string
getReplacement() - Method in interface ai.tock.shared.security.StringObfuscator
The replacement string - should have the same size than the replaced string.
getResults() - Method in class ai.tock.shared.vertx.DetailedHealthcheckResults
list of task results
getRoles() - Method in class ai.tock.shared.security.TockUser
 
getRootPath() - Method in class ai.tock.shared.vertx.WebVerticle
 
getRouter() - Method in class ai.tock.shared.vertx.WebVerticle
 
getServer() - Method in class ai.tock.shared.vertx.WebVerticle
 
getSessionCookieName($this) - Static method in class ai.tock.shared.security.auth.TockAuthProvider.DefaultImpls
The tock session cookie name.
getSessionCookieName() - Method in interface ai.tock.shared.security.auth.TockAuthProvider
The tock session cookie name.
getSharedModule() - Static method in class ai.tock.shared.IOCsKt
IOC of shared module.
getStatus() - Method in class ai.tock.shared.vertx.TaskResult
indicate the task status
getSupportedLanguages() - Static method in class ai.tock.shared.LocalesKt
The languages supported by Tock.
getTockAppDefaultNamespace() - Static method in class ai.tock.shared.NamespacesKt
The internal app namespace - var only for tests. Use property "tock_default_namespace" and as default value DEFAULT_APP_NAMESPACE.
getTockInternalInjector() - Static method in class ai.tock.shared.IOCsKt
Internal injector - reset only for tests.
getUser() - Method in class ai.tock.shared.security.TockUser
 
getUser($this$user) - Method in class ai.tock.shared.vertx.WebVerticle
 
getUserLogin($this$userLogin) - Method in class ai.tock.shared.vertx.WebVerticle
 
getValue() - Method in class ai.tock.shared.jackson.AnyValueWrapper
 
getValue() - Method in class ai.tock.shared.jackson.ConstrainedValueWrapper
 
getVertx() - Static method in class ai.tock.shared.vertx.VertXsKt
The Tock Vertx entry point instance.

H

handle(context) - Method in class ai.tock.shared.vertx.ImageGeneratorHandler
 
hashCode() - Method in class ai.tock.shared.jackson.AnyValueWrapper
A jackson wrapper to store class name with dynamic type value. Use with care, as it stores the class name in json.
hashCode() - Method in class ai.tock.shared.jackson.ConstrainedValueWrapper
A jackson wrapper to store class name with dynamic type value. Only allowed types can be deserialized.
hashCode() - Method in class ai.tock.shared.security.SimpleObfuscator
Simple implementation for interface StringObfuscator.
hashCode() - Method in class ai.tock.shared.security.TockUser
Tock implementation of vertx User.
hashCode() - Method in class ai.tock.shared.vertx.DetailedHealthcheckResults
Used to construct JSON
hashCode() - Method in class ai.tock.shared.vertx.TaskResult
Used to construct JSON
healthcheck() - Method in class ai.tock.shared.vertx.WebVerticle
 

I

ImageFormat - Enum in ai.tock.shared
Supported generation format.
ImageFormat.Companion - Class in ai.tock.shared
 
ImageGenerator<T> - Class in ai.tock.shared
Generates an image from a svg template.
ImageGenerator(svgToPngConverter, svgGenerator) - Constructor for class ai.tock.shared.ImageGenerator
Generates an image from a svg template.
ImageGeneratorHandler<T> - Class in ai.tock.shared.vertx
Provides a service that generates image using imageGenerator specified by paramExtractor.
ImageGeneratorHandler(imageGenerator, paramExtractor, executor) - Constructor for class ai.tock.shared.vertx.ImageGeneratorHandler
Provides a service that generates image using imageGenerator specified by paramExtractor.
ImageParametersExtractor<T> - Interface in ai.tock.shared
Provides a data instance from specified parameters.
ImageParametersExtractor() - Constructor for interface ai.tock.shared.ImageParametersExtractor
 
index(col) - Method in class ai.tock.shared.Dice
Return a random index in a Collection.
info($this$info, throwable) - Static method in class ai.tock.shared.LoggersKt
Logs a Throwable.
initEncryptor() - Static method in class ai.tock.shared.security.EncryptorsKt
Init encryption utilities.
INSTANCE - Static variable in class ai.tock.shared.Dice
Manage random things.
INSTANCE - Static variable in class ai.tock.shared.FontLoader
Load and register fonts.
INSTANCE - Static variable in class ai.tock.shared.jackson.JacksonDeserializer.EmptyJson
 
INSTANCE - Static variable in class ai.tock.shared.Loader
Helper methods to deal with ServiceLoader.
INSTANCE - Static variable in class ai.tock.shared.security.TockObfuscatorService
To manage obfuscations.
intProperty(name, defaultValue) - Static method in class ai.tock.shared.PropertiesKt
Return an env or system Int property.
IOCsKt - Class in ai.tock.shared
 
IOCsKt() - Constructor for class ai.tock.shared.IOCsKt
 
IOsKt - Class in ai.tock.shared
 
IOsKt() - Constructor for class ai.tock.shared.IOsKt
 
isAuthorized($this$isAuthorized, role, resultHandler) - Method in class ai.tock.shared.vertx.WebVerticle
 

J

JacksonDeserializer<T> - Class in ai.tock.shared.jackson
Convenient base class for jackson JsonDeserializer.
JacksonDeserializer() - Constructor for class ai.tock.shared.jackson.JacksonDeserializer
Convenient base class for jackson JsonDeserializer.
JacksonDeserializer.Companion - Class in ai.tock.shared.jackson
 
JacksonDeserializer.EmptyJson - Class in ai.tock.shared.jackson
 
JacksonKt - Class in ai.tock.shared.jackson
 
JacksonKt() - Constructor for class ai.tock.shared.jackson.JacksonKt
 

L

Level - Enum in ai.tock.shared
Http requests/response log level.
listProperty(name, defaultValue, separator) - Static method in class ai.tock.shared.PropertiesKt
Return an env or system List property.
Loader - Class in ai.tock.shared
Helper methods to deal with ServiceLoader.
loadProperties(fileInClasspath) - Static method in class ai.tock.shared.PropertiesKt
Load a Properties for classpath.
LocalesKt - Class in ai.tock.shared
 
LocalesKt() - Constructor for class ai.tock.shared.LocalesKt
 
log(context, data, error) - Method in interface ai.tock.shared.vertx.RequestLogger
Log a request.
LoggersKt - Class in ai.tock.shared
 
LoggersKt() - Constructor for class ai.tock.shared.LoggersKt
 
longProperty(name, defaultValue) - Static method in class ai.tock.shared.PropertiesKt
Return an env or system Long property.

M

mapListProperty(name, defaultValue, entrySeparator, keyValueSeparator, listSeparator) - Static method in class ai.tock.shared.PropertiesKt
Return an env or system Map of List property.
mapNotNullValues(pairs) - Static method in class ai.tock.shared.CollectionsKt
Return a map with only not null values.
mapNotNullValues($this$mapNotNullValues, transform) - Static method in class ai.tock.shared.CollectionsKt
Map not null values of the Pair results of the specified transformation.
MapObfuscator - Interface in ai.tock.shared.security
Obfuscate a map.
MapObfuscator() - Constructor for interface ai.tock.shared.security.MapObfuscator
 
mapProperty(name, defaultValue, entrySeparator, keyValueSeparator) - Static method in class ai.tock.shared.PropertiesKt
Return an env or system Map property.
MongoCredentialsProvider - Interface in ai.tock.shared.security.mongo
Mongo credential provider
MongoCredentialsProvider() - Constructor for interface ai.tock.shared.security.mongo.MongoCredentialsProvider
 
MongosKt - Class in ai.tock.shared
 
MongosKt() - Constructor for class ai.tock.shared.MongosKt
 

N

name($this$name) - Static method in class ai.tock.shared.StringsKt
Extract a name from a qualified name (ie namespace:name).
namespace($this$namespace) - Static method in class ai.tock.shared.StringsKt
Extract a namespace from a qualified name (ie namespace:name).
namespaceAndName($this$namespaceAndName) - Static method in class ai.tock.shared.StringsKt
Extract namespace and name from a qualified name (ie namespace:name).
NamespacesKt - Class in ai.tock.shared
 
NamespacesKt() - Constructor for class ai.tock.shared.NamespacesKt
 
newId() - Method in class ai.tock.shared.Dice
Return a new random Id.
newInt(max) - Method in class ai.tock.shared.Dice
Return a random int between 0 and max (excluded).
notFound() - Method in class ai.tock.shared.vertx.WebVerticle.Companion
 
NotFoundException - Exception in ai.tock.shared.vertx
Http 404 exception.
NotFoundException() - Constructor for exception ai.tock.shared.vertx.NotFoundException
Http 404 exception.

O

obfuscate(map) - Method in interface ai.tock.shared.security.MapObfuscator
Obfuscate the map.
obfuscate($this, text) - Static method in class ai.tock.shared.security.StringObfuscator.DefaultImpls
Obfuscate the parameter.
obfuscate(text) - Method in interface ai.tock.shared.security.StringObfuscator
Obfuscate the parameter.
obfuscate(texts, obfuscatedRanges) - Method in class ai.tock.shared.security.TockObfuscatorService
Obfuscates list of texts.
obfuscate(text, obfuscatedRanges) - Method in class ai.tock.shared.security.TockObfuscatorService
Obfuscates text.
obfuscate(map) - Method in class ai.tock.shared.security.TockObfuscatorService
Obfuscates a map - usually key-based.
ObfuscatorService - Interface in ai.tock.shared.security
To load obfuscators via service loaders.
ObfuscatorService() - Constructor for interface ai.tock.shared.security.ObfuscatorService
 

P

parameterObfuscators() - Method in interface ai.tock.shared.security.ObfuscatorService
Returns the parameter obfuscators to register.
path($this$path, name) - Method in class ai.tock.shared.vertx.WebVerticle
 
pathId($this$pathId, name) - Method in class ai.tock.shared.vertx.WebVerticle
 
pathToLocale($this$pathToLocale, name) - Method in class ai.tock.shared.vertx.WebVerticle
 
pingMongoDatabase(databaseName) - Static method in class ai.tock.shared.MongosKt
 
principal() - Method in class ai.tock.shared.security.TockUser
 
PropertiesKt - Class in ai.tock.shared
 
PropertiesKt() - Constructor for class ai.tock.shared.PropertiesKt
 
property(name, defaultValue) - Static method in class ai.tock.shared.PropertiesKt
Return an env or system String property.
propertyExists(name) - Static method in class ai.tock.shared.PropertiesKt
Is this env or system property exists?
protectedPaths() - Method in class ai.tock.shared.vertx.WebVerticle
 
protectPaths(verticle, pathsToProtect, sessionHandler) - Method in interface ai.tock.shared.security.auth.TockAuthProvider
Protect paths for the specified verticle.
putInCache(id, type, value) - Static method in class ai.tock.shared.cache.CachesKt
Adds in cache the specified value.

Q

queryId($this$queryId, name) - Method in class ai.tock.shared.vertx.WebVerticle
 

R

readBytes(upload) - Method in class ai.tock.shared.vertx.WebVerticle
 
readString(upload) - Method in class ai.tock.shared.vertx.WebVerticle
 
readUnknownValue($this$readUnknownValue) - Method in class ai.tock.shared.jackson.JacksonDeserializer
 
register(fontFilesNames, fontFilesPath) - Method in class ai.tock.shared.FontLoader
 
register(method, path, role, basePath, handler) - Method in class ai.tock.shared.vertx.WebVerticle
 
registerMapObfuscator(newObfuscators) - Method in class ai.tock.shared.security.TockObfuscatorService
Registers parameters stringObfuscators.
registerStringObfuscator(newObfuscators) - Method in class ai.tock.shared.security.TockObfuscatorService
Registers string stringObfuscators.
registerUser(user, joinNamespace) - Method in interface ai.tock.shared.security.TockUserListener
Try to register a tock user, and returns the registered user.
removeFromCache(id, type) - Static method in class ai.tock.shared.cache.CachesKt
Remove the value for specified id and type from cache.
RequestFilter - Interface in ai.tock.shared.security
A request filter is used to filter an incoming request.
RequestFilter() - Constructor for interface ai.tock.shared.security.RequestFilter
 
RequestFilterKt - Class in ai.tock.shared.security
 
RequestFilterKt() - Constructor for class ai.tock.shared.security.RequestFilterKt
 
RequestLogger - Interface in ai.tock.shared.vertx
A simple request logger.
RequestLogger() - Constructor for interface ai.tock.shared.vertx.RequestLogger
 
resource(path) - Static method in class ai.tock.shared.IOsKt
Get a resource url from the classpath.
resourceAsStream(path) - Static method in class ai.tock.shared.IOsKt
Get a resource InputStream from the classpath.
resourceAsString(path) - Static method in class ai.tock.shared.IOsKt
Get a text content of a resource from the classpath.
RestException - Exception in ai.tock.shared.vertx
Base class for rest exceptions.
RestException(message, code) - Constructor for exception ai.tock.shared.vertx.RestException
Base class for rest exceptions.
retrofitBuilderWithTimeoutAndLogger(ms, logger, level, interceptors, requestGZipEncoding, circuitBreaker, proxy) - Static method in class ai.tock.shared.RetrofitsKt
Init a Retrofit.Builder with specified timeout, logger and interceptors.
RetrofitsKt - Class in ai.tock.shared
 
RetrofitsKt() - Constructor for class ai.tock.shared.RetrofitsKt
 

S

setAuthProvider(authProvider) - Method in class ai.tock.shared.security.TockUser
 
setDefaultVertxOptions(p) - Static method in class ai.tock.shared.vertx.VertXsKt
default vert.x options in Tock.
setInternalDefaultZoneId(p) - Static method in class ai.tock.shared.DatesKt
The internal defaultZoneId for Tock - var only for tests. property "tock_default_zone" with default value UTC is used.
setPeriodic($this, delay, runnable) - Static method in class ai.tock.shared.Executor.DefaultImpls
Execute a periodic task.
setPeriodic(delay, runnable) - Method in interface ai.tock.shared.Executor
Execute a periodic task.
setPeriodic(initialDelay, delay, runnable) - Method in interface ai.tock.shared.Executor
Execute a periodic task.
setTockAppDefaultNamespace(p) - Static method in class ai.tock.shared.NamespacesKt
The internal app namespace - var only for tests. Use property "tock_default_namespace" and as default value DEFAULT_APP_NAMESPACE.
setTockInternalInjector(p) - Static method in class ai.tock.shared.IOCsKt
Internal injector - reset only for tests.
shaS256(s) - Static method in class ai.tock.shared.security.EncryptorsKt
Encrypt with sha256.
SimpleObfuscator - Class in ai.tock.shared.security
Simple implementation for interface StringObfuscator.
SimpleObfuscator(regex, replacement) - Constructor for class ai.tock.shared.security.SimpleObfuscator
Simple implementation for interface StringObfuscator.
start(promise) - Method in class ai.tock.shared.vertx.WebVerticle
 
startServer(promise) - Method in class ai.tock.shared.vertx.WebVerticle
 
startServer(promise, port) - Method in class ai.tock.shared.vertx.WebVerticle
 
stop(stopFuture) - Method in class ai.tock.shared.vertx.WebVerticle
 
StringObfuscator - Interface in ai.tock.shared.security
Replaces a string by an other String.
StringObfuscator() - Constructor for interface ai.tock.shared.security.StringObfuscator
 
StringObfuscator.DefaultImpls - Class in ai.tock.shared.security
Replaces a string by an other String.
stringObfuscators() - Method in interface ai.tock.shared.security.ObfuscatorService
Returns the string obfuscators to register.
StringsKt - Class in ai.tock.shared
 
StringsKt() - Constructor for class ai.tock.shared.StringsKt
 
success($this$success) - Method in class ai.tock.shared.vertx.WebVerticle
 
sumByLong($this$sumByLong, selector) - Static method in class ai.tock.shared.CollectionsKt
Returns the sum of all values produced by selector function applied to each element in the collection.
SvgGenerator<T> - Class in ai.tock.shared
Generates an image from a svg file.
SvgGenerator(resourceName, resourcePath) - Constructor for class ai.tock.shared.SvgGenerator
Generates an image from a svg file.
SvgToPngConverter - Class in ai.tock.shared
Convert a svg image to png image.
SvgToPngConverter() - Constructor for class ai.tock.shared.SvgToPngConverter
Convert a svg image to png image.

T

TaskResult - Class in ai.tock.shared.vertx
Used to construct JSON
TaskResult(id, status) - Constructor for class ai.tock.shared.vertx.TaskResult
Used to construct JSON
ThreadSafe - Annotation Type in ai.tock.shared
A class annotated with annotationclass ThreadSafe is supposed to be thread safe (surprisingly).
ThreadSafe() - Constructor for annotation type ai.tock.shared.ThreadSafe
 
TOCK_BOT_DATABASE - Static variable in class ai.tock.shared.DatabasesKt
Tock bot database name property
TOCK_CACHE_DATABASE - Static variable in class ai.tock.shared.DatabasesKt
Tock cache database name property
TOCK_FRONT_DATABASE - Static variable in class ai.tock.shared.DatabasesKt
Tock front database name property
TOCK_MODEL_DATABASE - Static variable in class ai.tock.shared.DatabasesKt
Tock model database name property
TOCK_NAMESPACE - Static variable in class ai.tock.shared.NamespacesKt
The Tock namespace.
TockAuthProvider - Interface in ai.tock.shared.security.auth
Base interface for AuthProvider in Tock framework.
TockAuthProvider() - Constructor for interface ai.tock.shared.security.auth.TockAuthProvider
 
TockAuthProvider.DefaultImpls - Class in ai.tock.shared.security.auth
Base interface for AuthProvider in Tock framework.
TockObfuscatorService - Class in ai.tock.shared.security
To manage obfuscations.
TockUser - Class in ai.tock.shared.security
Tock implementation of vertx User.
TockUser(user, namespace, roles, registered) - Constructor for class ai.tock.shared.security.TockUser
Tock implementation of vertx User.
TockUserListener - Interface in ai.tock.shared.security
Tock user admin listener.
TockUserListener() - Constructor for interface ai.tock.shared.security.TockUserListener
 
TockUserRole - Enum in ai.tock.shared.security
The user roles for class TockUser.
TockUserRole.Companion - Class in ai.tock.shared.security
 
tokenAuthenticationInterceptor(token) - Static method in class ai.tock.shared.RetrofitsKt
Create a token authentication interceptor.
toList($this$toList) - Static method in class ai.tock.shared.CollectionsKt
Extract a List from an Iterator.
toRole(role) - Method in class ai.tock.shared.security.TockUserRole.Companion
 
toSafeList($this$toSafeList) - Static method in class ai.tock.shared.CollectionsKt
Extract safely a List from an Iterator - if an [Iterator.next()) call throws an error, ignore this call.
toSet($this$toSet) - Static method in class ai.tock.shared.CollectionsKt
Extract a Set from an Enumeration.
toString() - Method in class ai.tock.shared.jackson.AnyValueWrapper
A jackson wrapper to store class name with dynamic type value. Use with care, as it stores the class name in json.
toString() - Method in class ai.tock.shared.jackson.ConstrainedValueWrapper
A jackson wrapper to store class name with dynamic type value. Only allowed types can be deserialized.
toString() - Method in class ai.tock.shared.security.SimpleObfuscator
Simple implementation for interface StringObfuscator.
toString() - Method in class ai.tock.shared.security.TockUser
Tock implementation of vertx User.
toString() - Method in class ai.tock.shared.vertx.DetailedHealthcheckResults
Used to construct JSON
toString() - Method in class ai.tock.shared.vertx.TaskResult
Used to construct JSON
toTockUser($this, context) - Static method in class ai.tock.shared.security.auth.TockAuthProvider.DefaultImpls
Gets a class TockUser from current vert.x state.
toTockUser(context) - Method in interface ai.tock.shared.security.auth.TockAuthProvider
Gets a class TockUser from current vert.x state.
trace($this$trace, throwable) - Static method in class ai.tock.shared.LoggersKt
Logs a Throwable.
tryToFindLocalIp() - Static method in class ai.tock.shared.RetrofitsKt
Best attempt to guess local ip.

U

unauthorized() - Method in class ai.tock.shared.vertx.WebVerticle.Companion
 
UnauthorizedException - Exception in ai.tock.shared.vertx
Http 401 exception.
UnauthorizedException() - Constructor for exception ai.tock.shared.vertx.UnauthorizedException
Http 401 exception.
UNKNOWN_USER_LOGIN - Static variable in class ai.tock.shared.security.UserLoginKt
 
UserLoginKt - Class in ai.tock.shared.security
 
UserLoginKt() - Constructor for class ai.tock.shared.security.UserLoginKt
 

V

verticleBooleanProperty(propertyName, defaultValue) - Method in class ai.tock.shared.vertx.WebVerticle
 
verticleIntProperty(propertyName, defaultValue) - Method in class ai.tock.shared.vertx.WebVerticle
 
verticleLongProperty(propertyName, defaultValue) - Method in class ai.tock.shared.vertx.WebVerticle
 
verticleProperty(propertyName, defaultValue) - Method in class ai.tock.shared.vertx.WebVerticle
 
VertXsKt - Class in ai.tock.shared.vertx
 
VertXsKt() - Constructor for class ai.tock.shared.vertx.VertXsKt
 

W

warn($this$warn, throwable) - Static method in class ai.tock.shared.LoggersKt
Logs a Throwable.
WebVerticle - Class in ai.tock.shared.vertx
Base class for web Tock io.vertx.core.Verticles. Provides utility methods.
WebVerticle() - Constructor for class ai.tock.shared.vertx.WebVerticle
Base class for web Tock io.vertx.core.Verticles. Provides utility methods.
WebVerticle.Companion - Class in ai.tock.shared.vertx
 
withNamespace($this$withNamespace, namespace) - Static method in class ai.tock.shared.StringsKt
Add the specified namespace to a name if the name does not contains yet a namespace, and return the result.
withoutNamespace($this$withoutNamespace, namespace) - Static method in class ai.tock.shared.StringsKt
Remove the specified namespace from a qualified name if this qualified name contains the namespace, and return the result.
A B C D E F G H I J L M N O P Q R S T U V W 
Skip navigation links