@@ -697,7 +697,6 @@ private PKCS12 importCertAndKeyAndCA(EntityStore entityStore, String cert, Strin
697697 importPublicCertificate (x509Certificate , entityStore );
698698 Trace .info ("Imported root / intermediate certificate" );
699699 }
700- //handle CA Certificate chain
701700 }
702701 pkcs12 .setAlias (alias );
703702 pkcs12 .setPrivateKey (privateKey );
@@ -715,20 +714,14 @@ private void updateCassandraConsistencyLevel(EntityStore entityStore, String rea
715714 // Update KPS table consistency level
716715 updateCassandraConsistencyLevel (shorthandKeyFinder , "/[KPSRoot]name=Key Property Stores/[KPSPackage]**/[KPSDataSourceGroup]**/[KPSCassandraDataSource]name=Cassandra Storage" ,
717716 "readConsistencyLevel" , readConsistencyLevel , "writeConsistencyLevel" , writeConsistencyLevel );
718- // Update OAUTH table consistency level
719- // updateCassandraConsistencyLevel(shorthandKeyFinder, "/[KPSRoot]name=Key Property Stores/[KPSPackage]**/[KPSDataSourceGroup]name=DataSources/[KPSCassandraDataSource]name=Cassandra Storage",
720- // "readConsistencyLevel", readConsistencyLevel, "writeConsistencyLevel", writeConsistencyLevel);
721- // Update Quota table consistency level
722717 updateCassandraConsistencyLevel (shorthandKeyFinder , "/[PortalConfiguration]name=Portal Config" ,
723718 "quotaReadConsistency" , readConsistencyLevel , "quotaWriteConsistency" , writeConsistencyLevel );
724719 //Update throttling consistency level
725720 updateCassandraConsistencyLevel (shorthandKeyFinder , "/[CassandraSettings]name=Cassandra Settings" ,
726721 "throttlingReadConsistencyLevel" , readConsistencyLevel , "throttlingWriteConsistencyLevel" , writeConsistencyLevel );
727-
728722 //Update access token consistency level
729723 updateCassandraConsistencyLevel (shorthandKeyFinder , "/[OAuth2StoresGroup]name=OAuth2 Stores/[AccessTokenStoreGroup]name=Access Token Stores/[AccessTokenPersist]**" ,
730724 "readConsistencyLevel" , readConsistencyLevel , "writeConsistencyLevel" , writeConsistencyLevel );
731-
732725 //Update auth code consistency level
733726 updateCassandraConsistencyLevel (shorthandKeyFinder , "/[OAuth2StoresGroup]name=OAuth2 Stores/[AuthzCodeStoreGroup]name=Authorization Code Stores/[AuthzCodePersist]**" ,
734727 "readConsistencyLevel" , readConsistencyLevel , "writeConsistencyLevel" , writeConsistencyLevel );
@@ -744,15 +737,9 @@ private void updateCassandraConsistencyLevel(ShorthandKeyFinder shorthandKeyFind
744737 Trace .info ("Total number of KPS Store: " + kpsEntities .size () + " in entity : " + shorthandKey );
745738 EntityStore entityStore = shorthandKeyFinder .getEntityStore ();
746739 for (Entity entity : kpsEntities ) {
747- // Trace.info(entity.toString());
748- // Trace.info("Read "+ entity.getStringValue(readConsistencyLevelFieldName));
749- // Trace.info("Write "+ entity.getStringValue(readConsistencyLevelFieldName));
750740 entity .setStringField (readConsistencyLevelFieldName , readConsistencyLevel );
751741 entity .setStringField (writeConsistencyLevelFieldName , writeConsistencyLevel );
752742 entityStore .updateEntity (entity );
753- // Trace.info("Update Read "+ entity.getStringValue(readConsistencyLevelFieldName));
754- // Trace.info("Update Write "+ entity.getStringValue(readConsistencyLevelFieldName));
755-
756743 }
757744 }
758745 }
0 commit comments