Class ElasticsearchUtils
java.lang.Object
org.apache.syncope.ext.elasticsearch.client.ElasticsearchUtils
Utility methods for usage with Elasticsearch.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AnyObjectDAO
protected static final char[]
protected final GroupDAO
protected final UserDAO
-
Constructor Summary
ConstructorDescriptionElasticsearchUtils
(UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
customizeDocument
(Map<String, Object> builder, AnyObject anyObject) protected void
customizeDocument
(Map<String, Object> builder, AuditEvent auditEvent) protected void
customizeDocument
(Map<String, Object> builder, Group group) protected void
customizeDocument
(Map<String, Object> builder, Realm realm) protected void
customizeDocument
(Map<String, Object> builder, User user) Returns the document specialized with content from the provided any.document
(AuditEvent auditEvent) static String
escapeForLikeRegex
(char c) static String
getAnyIndex
(String domain, AnyTypeKind kind) static String
getAuditIndex
(String domain) static String
getRealmIndex
(String domain)
-
Field Details
-
ELASTICSEARCH_REGEX_CHARS
protected static final char[] ELASTICSEARCH_REGEX_CHARS -
userDAO
-
groupDAO
-
anyObjectDAO
-
-
Constructor Details
-
ElasticsearchUtils
-
-
Method Details
-
getAnyIndex
-
getRealmIndex
-
getAuditIndex
-
escapeForLikeRegex
-
document
Returns the document specialized with content from the provided any.- Parameters:
any
- user, group or any object to index- Returns:
- document specialized with content from the provided any
-
customizeDocument
-
customizeDocument
-
customizeDocument
-
document
-
customizeDocument
-
document
-
customizeDocument
-