All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cognifide.aet.vs.mongodb.MongoDBClient.class Maven / Gradle / Ivy

There is a newer version: 3.2.2
Show newest version
????3Q
K?	?
?
??
?	????
&??
?
??????????
?????
??
?????
????]??b
??	?f
??
??	???
'?
&?
??
+??
+?
+???
&?
?
?
????
&??
?
&?????
&???


?

?
	
?

?

LOGGERLorg/slf4j/Logger;	MONGO_URILjava/lang/String;
ConstantValueDEFAULT_MONGODB_URIMAX_DB_NAME_LENGTHI@DEFAULT_AUTOCREATE_VALUEZDB_NAME_SEPARATORmongoUriRuntimeInvisibleAnnotations+Lorg/apache/felix/scr/annotations/Property;nameMongoURIlabeldescriptionfmongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]valuemongodb://localhostALLOW_AUTO_CREATEallowAutoCreateLjava/lang/Boolean;AllowAutoCreateAllow automatic creation of DB.Allows automatic creation of DB if set to true	boolValuemongoClientLcom/mongodb/MongoClient;()VCodeLineNumberTableLocalVariableTablethis,Lcom/cognifide/aet/vs/mongodb/MongoDBClient;getMongoClient()Lcom/mongodb/MongoClient;activate(Ljava/util/Map;)VeLjava/lang/Exception;
propertiesLjava/util/Map;
StackMapTable?+Lorg/apache/felix/scr/annotations/Activate;
deactivate-Lorg/apache/felix/scr/annotations/Deactivate;getCompanies()Ljava/util/Collection;companyNamedbName	companiesLjava/util/Collection;LocalVariableTypeTable*Ljava/util/Collection;?	Signature,()Ljava/util/Collection;setupPropertiessetupMongoDBConnection
ExceptionstestConnectiongetDB$(Ljava/lang/String;)Lcom/mongodb/DB;
DeprecatedRuntimeVisibleAnnotationsLjava/lang/Deprecated;7(Ljava/lang/String;Ljava/lang/Boolean;)Lcom/mongodb/DB;
autoCreatedbLcom/mongodb/DB;lowerCaseDbNamegetDatabase6(Ljava/lang/String;)Lcom/mongodb/client/MongoDatabase;I(Ljava/lang/String;Ljava/lang/Boolean;)Lcom/mongodb/client/MongoDatabase;database"Lcom/mongodb/client/MongoDatabase;getAetsDBNames
databaseNames
hasCollection'(Ljava/lang/String;Ljava/lang/String;)ZcollectionNamegetCollectionsList#(Ljava/lang/String;)Ljava/util/Set;resultLjava/util/Set;#Ljava/util/Set;7(Ljava/lang/String;)Ljava/util/Set;	getDbName8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;projectNamegetCompanyNameFromDbName&(Ljava/lang/String;)Ljava/lang/String;getProjectNameFromDbName
SourceFileMongoDBClient.java*Lorg/apache/felix/scr/annotations/Service;,Lorg/apache/felix/scr/annotations/Component;	immediatemetatypeAET MongoDB Clientlmjk?v?mjava/lang/Exception~mLM#Unable to connect to Mongo instancemjava/util/ArrayList??java/lang/String*com/cognifide/aet/vs/mongodb/MongoDBClient_ !?Database name format is incorrect. It must contain at least one underscore character. Couldn't fetch company name from database name. Skip."#?$%KComapny name is blank. It couldn't've been fetched from database name [{}] &'%()*+,-./YO01234decom/mongodb/MongoClientcom/mongodb/MongoClientURIl"l5?mjava/lang/StringBuilderMongo client connected at: 67.89":;??<8=>)??>Database {} does not exists and was not created automatically!????4com/cognifide/aet/vs/metadata/MetadataDAOMongoDBImplmetadata?"@ABCDElocalF)admin??GHIJIKLM?NOPjava/lang/Objectjava/util/Collectionjava/util/Iteratorjava/net/UnknownHostExceptioncom/mongodb/DB com/mongodb/client/MongoDatabase
java/util/Setorg/slf4j/Loggererror*(Ljava/lang/String;Ljava/lang/Throwable;)Vcloseiterator()Ljava/util/Iterator;hasNext()Znext()Ljava/lang/Object;$org/apache/commons/lang3/StringUtilscontainsAny3(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z(Ljava/lang/String;)VsubstringBeforeisBlank(Ljava/lang/CharSequence;)Z'(Ljava/lang/String;Ljava/lang/Object;)V
isNotBlankadd(Ljava/lang/Object;)Z
java/util/Mapget&(Ljava/lang/Object;)Ljava/lang/Object;,org/apache/sling/commons/osgi/PropertiesUtiltoString8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;	toBoolean(Ljava/lang/Object;Z)Zjava/lang/BooleanvalueOf(Z)Ljava/lang/Boolean;(Lcom/mongodb/MongoClientURI;)Vappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;()Ljava/lang/String;infogetDatabaseNames()Ljava/util/List;toLowerCasebooleanValuecontainscreateCollectionlistDatabaseNames$()Lcom/mongodb/client/MongoIterable; com/mongodb/client/MongoIterable"()Lcom/mongodb/client/MongoCursor;charAt(I)Cequalsjava/util/CollectionsemptySet()Ljava/util/Set;getCollectionNames	substring((Ljava/lang/String;II)Ljava/lang/String;substringAfterorg/slf4j/LoggerFactory	getLogger%(Ljava/lang/Class;)Lorg/slf4j/Logger;!K
LMNOPQOPRSPTUVPWXOPYOZ[\s]^s]_s`a[sbcOP"deZ[\sf^sg_shi[ZWjklmn/*??o-pqrstn/*??oGpqruvn?*+?*??M*??,?	?	oLN	RO
PQSp 
wxqryz{L|Z}~mnJ*??
*??
?oWXZpqr{Z??nl?Y?L*?
?M,??R,??N-??
??-?:???-????+?W???+?o.ce%f.g8i@jHkVm^ngqjsp*@'?O%B?Olqrd???d??{????%????????vna%*+?? ?!*+"??#?$?%?owx$zp%qr%yz?mno9*?&Y?'Y*?!?(?)?*?*??+Y?,-?.*?!?.?/?0?o}~8?p9qr???mn7	*??1W?o
??p	qr??n>
*+?$?2?o?p
qr
?O?????n?AN+?3:*?%?4?
,?4?*?
?5?*??6N??7+?-?o???'?4???p4AqrA?OA?e???9?O{???

?????n>
*+?$?8?o?p
qr
?O??n?HN+?3:*?
?5?*??9N?&*?%?4?,?4?*??9N-;?<-?o"????#?4?>?F?p4HqrH?OH?eF??@?O{?#??"??n?Q?Y?L*??=?>M,??4,??N-??_?@-?A?B-?A?+-?W???+?o??(?D?L?O?p ($?OQqrI???I??{???6?????nJ*+?C,?D?o?p qr?O?O??n??EM*+?FN-?-?GM,?o??
???p*qr?O??
?????{?????	??nb ?+Y?,*?.?.+?.?/M,@?H?o
??p  ?O ?O?O	??n1*??op?O	??n1*?I?op?O?mn!	?J??o/??Z&?a[cr??Z??Z?^s?_s?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy