Class OpenSearchUtils
java.lang.Object
org.apache.syncope.ext.opensearch.client.OpenSearchUtils
Utility methods for usage with OpenSearch.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AnyObjectDAOprotected final GroupDAOprotected final UserDAO -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchUtils(UserDAO userDAO, GroupDAO groupDAO, AnyObjectDAO anyObjectDAO) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcustomizeDocument(Map<String, Object> builder, AnyObject anyObject) protected voidcustomizeDocument(Map<String, Object> builder, AuditEvent auditEvent) protected voidcustomizeDocument(Map<String, Object> builder, Group group) protected voidcustomizeDocument(Map<String, Object> builder, Realm realm) protected voidcustomizeDocument(Map<String, Object> builder, User user) Returns the document specialized with content from the provided any.document(AuditEvent auditEvent) static StringgetAnyIndex(String domain, AnyTypeKind kind) static StringgetAuditIndex(String domain) static StringgetRealmIndex(String domain) protected voidrelationships(List<? extends Relationship<?, ?>> input, Map<String, Object> builder)
-
Field Details
-
userDAO
-
groupDAO
-
anyObjectDAO
-
-
Constructor Details
-
OpenSearchUtils
-
-
Method Details
-
getAnyIndex
-
getRealmIndex
-
getAuditIndex
-
relationships
-
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
-