Class CommonUtils
java.lang.Object
com.sath.idhub.util.CommonUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractIdFromPayload(org.json.JSONObject payloadObject) static StringgetConfigDBName(String instanceId) static org.bson.DocumentgetDocumentForPatch(org.bson.Document document) static Stringstatic Stringstatic org.bson.types.ObjectIdgetObjectId(Map<String, Object> document) static org.bson.types.ObjectIdgetObjectId(Map<String, Object> document, String fieldName) static StringgetPrefixedDBName(String prefix, String tenant) getPrefixedKafkaTopicName(String instanceId, String topicName) static org.bson.DocumentgetProjection(String... keys) static StringgetTenantNameWithoutPrefix(String databaseName) getTypeSenseCollectionName(String instanceId, String collection) static org.bson.DocumentmongoRegexExactMatchCaseInsensitive(String... values) static UserAccountparseUserAccountDocument(Map<String, Object> userAccount) static org.bson.DocumentremoveEmptyValuesFromDocument(org.bson.Document entity)
-
Constructor Details
-
CommonUtils
public CommonUtils()
-
-
Method Details
-
getId
-
getId
-
getObjectId
-
getObjectId
-
mongoRegexExactMatchCaseInsensitive
-
getPrefixedDBName
-
getTenantNameWithoutPrefix
-
getConfigDBName
-
getPrefixedKafkaTopicName
-
getTypeSenseCollectionName
-
extractIdFromPayload
-
getProjection
-
parseUserAccountDocument
-
getDocumentForPatch
public static org.bson.Document getDocumentForPatch(org.bson.Document document) -
removeEmptyValuesFromDocument
public static org.bson.Document removeEmptyValuesFromDocument(org.bson.Document entity)
-