@Component
public class ElasticProcessor
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
ElasticProcessor(io.polyglotted.common.util.HttpConfig config,
EsBootstrapAuth auth) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
io.polyglotted.common.model.AuthToken |
login(java.lang.String userId,
java.lang.String password) |
SimpleResponse |
logout(java.lang.String token) |
@Autowired
public ElasticProcessor(@Qualifier(value="idpEsHttpConfig")
io.polyglotted.common.util.HttpConfig config,
@Qualifier(value="idpEsUserAuth")
EsBootstrapAuth auth)
@PreDestroy
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic io.polyglotted.common.model.AuthToken login(java.lang.String userId,
java.lang.String password)
public SimpleResponse logout(java.lang.String token)