Skip to content

Commit 032bc64

Browse files
committed
- solr client
1 parent f9b5723 commit 032bc64

File tree

16 files changed

+32
-33
lines changed

16 files changed

+32
-33
lines changed

build.gradle.kts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,6 @@ dependencies {
220220
implementation(libs.jsoup)
221221
implementation(libs.dtdparser)
222222
implementation(libs.maven.model)
223-
implementation(libs.solr.solrj) {
224-
exclude("org.slf4j", "slf4j-api")
225-
exclude("org.apache.httpcomponents", "httpclient")
226-
exclude("org.apache.httpcomponents", "httpcore")
227-
exclude("org.apache.httpcomponents", "httpmime")
228-
}
229223
testImplementation(kotlin("test"))
230224
testRuntimeOnly("junit:junit:4.13.2")
231225

modules/ant/src/sap/commerce/toolset/ant/ui/AntUpdateMavenDependenciesNotificationProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class AntUpdateMavenDependenciesNotificationProvider : EditorNotificationProvide
6464
EditorNotifications.getInstance(project).removeNotificationsForProvider(this)
6565
file.removeUserData(HybrisConstants.KEY_ANT_UPDATE_MAVEN_DEPENDENCIES)
6666
}
67-
ToolWindowManager.Companion.getInstance(project).activateEditorComponent()
67+
ToolWindowManager.getInstance(project).activateEditorComponent()
6868
}
6969
}
7070
panel

modules/groovy/remote/src/sap/commerce/toolset/groovy/remote/execution/GroovyExecutionClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class GroovyExecutionClient(project: Project, coroutineScope: CoroutineScope) :
7070
try {
7171
val document = Jsoup.parse(response.entity.content, StandardCharsets.UTF_8.name(), "")
7272
val jsonAsString = document.getElementsByTag("body").text()
73-
val json = Json.Default.parseToJsonElement(jsonAsString)
73+
val json = Json.parseToJsonElement(jsonAsString)
7474

7575
json.jsonObject["stacktraceText"]
7676

modules/impex/remote/src/sap/commerce/toolset/impex/remote/execution/ImpExExecutionClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import java.nio.charset.StandardCharsets
4141
class ImpExExecutionClient(project: Project, coroutineScope: CoroutineScope) : DefaultExecutionClient<ImpExExecutionContext>(project, coroutineScope) {
4242

4343
override suspend fun execute(context: ImpExExecutionContext): DefaultExecutionResult {
44-
val settings = RemoteConnectionService.Companion.getInstance(project).getActiveRemoteConnectionSettings(RemoteConnectionType.Hybris)
44+
val settings = RemoteConnectionService.getInstance(project).getActiveRemoteConnectionSettings(RemoteConnectionType.Hybris)
4545
val actionUrl = when (context.executionMode) {
4646
ImpExExecutionContext.ExecutionMode.IMPORT -> settings.generatedURL + "/console/impex/import"
4747
ImpExExecutionContext.ExecutionMode.VALIDATE -> settings.generatedURL + "/console/impex/import/validate"

modules/logging/remote/src/sap/commerce/toolset/logging/CxLoggerModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ data class CxLoggerModel(
3131
val parentName: String?,
3232
val inherited: Boolean,
3333
val icon: Icon,
34-
val level: LogLevel = LogLevel.Companion.of(effectiveLevel),
34+
val level: LogLevel = LogLevel.of(effectiveLevel),
3535
val psiElementPointer: SmartPsiElementPointer<PsiElement>? = null
3636
) {
3737
val resolved: Boolean

modules/project/core/src/sap/commerce/toolset/project/PropertyService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,11 @@ class PropertyService(private val project: Project) {
306306
return envPropertiesScope.or(advancedPropertiesScope).or(localPropertiesScope).or(projectPropertiesScope)
307307
}
308308

309-
private fun obtainConfigModule() = ModuleManager.Companion.getInstance(project)
309+
private fun obtainConfigModule() = ModuleManager.getInstance(project)
310310
.modules
311311
.firstOrNull { it.yExtensionName() == HybrisConstants.EXTENSION_NAME_CONFIG }
312312

313-
private fun obtainPlatformModule() = ModuleManager.Companion.getInstance(project)
313+
private fun obtainPlatformModule() = ModuleManager.getInstance(project)
314314
.modules
315315
.firstOrNull { it.yExtensionName() == HybrisConstants.EXTENSION_NAME_PLATFORM }
316316

modules/project/core/src/sap/commerce/toolset/project/Util.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import sap.commerce.toolset.project.facet.YFacet
3030
import sap.commerce.toolset.project.facet.YFacetConstants
3131
import java.nio.file.Path
3232

33-
fun Module.yExtensionName(): String = YFacet.Companion.get(this)
33+
fun Module.yExtensionName(): String = YFacet.get(this)
3434
?.configuration
3535
?.state
3636
?.name
@@ -41,7 +41,7 @@ fun Module.root(): Path? = this
4141
.firstOrNull()
4242
?.toNioPathOrNull()
4343

44-
fun findPlatformRootDirectory(project: Project): VirtualFile? = ModuleManager.Companion.getInstance(project)
44+
fun findPlatformRootDirectory(project: Project): VirtualFile? = ModuleManager.getInstance(project)
4545
.modules
4646
.firstOrNull { YFacetConstants.getModuleSettings(it).type == ModuleDescriptorType.PLATFORM }
4747
?.let { ModuleRootManager.getInstance(it) }

modules/project/core/src/sap/commerce/toolset/project/facet/YFacet.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class YFacet(
2929
name: String,
3030
configuration: YFacetConfiguration,
3131
underlyingFacet: Facet<*>?
32-
) : com.intellij.facet.Facet<YFacetConfiguration>(facetType, module, name, configuration, underlyingFacet) {
32+
) : Facet<YFacetConfiguration>(facetType, module, name, configuration, underlyingFacet) {
3333

3434
companion object {
3535
@Serial

modules/project/core/src/sap/commerce/toolset/project/facet/YFacetEditorTab.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class YFacetEditorTab(
6767

6868
if (state.subModuleType == SubModuleDescriptorType.ADDON && state.installedIntoExtensions.isNotEmpty()) {
6969
group("Installed Into Extensions") {
70-
ModuleManager.Companion.getInstance(editorContext.project)
70+
ModuleManager.getInstance(editorContext.project)
7171
.modules
7272
.mapNotNull { YFacet.getState(it) }
7373
.filter { state.installedIntoExtensions.contains(it.name) }

modules/remote/core/src/sap/commerce/toolset/remote/RemoteConnectionService.kt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class RemoteConnectionService(private val project: Project) {
4646
?: instances.first()
4747
}
4848

49-
fun getActiveRemoteConnectionId(type: RemoteConnectionType) = RemoteDeveloperSettings.Companion.getInstance(project)
49+
fun getActiveRemoteConnectionId(type: RemoteConnectionType) = RemoteDeveloperSettings.getInstance(project)
5050
.let {
5151
when (type) {
5252
RemoteConnectionType.Hybris -> it.activeRemoteConnectionID
@@ -93,14 +93,14 @@ class RemoteConnectionService(private val project: Project) {
9393

9494
when (settings.scope) {
9595
RemoteConnectionScope.PROJECT_PERSONAL -> {
96-
val developerSettings = RemoteDeveloperSettings.Companion.getInstance(project)
96+
val developerSettings = RemoteDeveloperSettings.getInstance(project)
9797
val mutableList = developerSettings.remoteConnectionSettingsList.toMutableList()
9898
mutableList.add(settings)
9999
developerSettings.remoteConnectionSettingsList = mutableList.toImmutableList()
100100
}
101101

102102
RemoteConnectionScope.PROJECT -> {
103-
with(RemoteProjectSettings.Companion.getInstance(project)) {
103+
with(RemoteProjectSettings.getInstance(project)) {
104104
remoteConnectionSettingsList = remoteConnectionSettingsList.toMutableList()
105105
.apply { add(settings) }
106106
}
@@ -109,12 +109,12 @@ class RemoteConnectionService(private val project: Project) {
109109
}
110110

111111
fun saveRemoteConnections(type: RemoteConnectionType, settings: Collection<RemoteConnectionSettingsState>) {
112-
with(RemoteProjectSettings.Companion.getInstance(project)) {
112+
with(RemoteProjectSettings.getInstance(project)) {
113113
remoteConnectionSettingsList = remoteConnectionSettingsList.toMutableList()
114114
.apply { removeIf { it.type == type } }
115115
}
116116

117-
val developerSettings = RemoteDeveloperSettings.Companion.getInstance(project)
117+
val developerSettings = RemoteDeveloperSettings.getInstance(project)
118118
val mutableList = developerSettings.remoteConnectionSettingsList.toMutableList()
119119
mutableList.removeIf { it.type == type }
120120
developerSettings.remoteConnectionSettingsList = mutableList.toImmutableList()
@@ -124,32 +124,32 @@ class RemoteConnectionService(private val project: Project) {
124124
}
125125

126126
fun setActiveRemoteConnectionSettings(settings: RemoteConnectionSettingsState) {
127-
val developerSettings = RemoteDeveloperSettings.Companion.getInstance(project)
127+
val developerSettings = RemoteDeveloperSettings.getInstance(project)
128128

129129
when (settings.type) {
130130
RemoteConnectionType.Hybris -> {
131131
developerSettings.activeRemoteConnectionID = settings.uuid
132-
project.messageBus.syncPublisher(RemoteConnectionListener.Companion.TOPIC).onActiveHybrisConnectionChanged(settings)
132+
project.messageBus.syncPublisher(RemoteConnectionListener.TOPIC).onActiveHybrisConnectionChanged(settings)
133133
}
134134

135135
RemoteConnectionType.SOLR -> {
136136
developerSettings.activeSolrConnectionID = settings.uuid
137-
project.messageBus.syncPublisher(RemoteConnectionListener.Companion.TOPIC).onActiveHybrisConnectionChanged(settings)
137+
project.messageBus.syncPublisher(RemoteConnectionListener.TOPIC).onActiveHybrisConnectionChanged(settings)
138138
}
139139
}
140140
}
141141

142142
fun changeRemoteConnectionScope(settings: RemoteConnectionSettingsState, originalScope: RemoteConnectionScope) {
143143
when (originalScope) {
144144
RemoteConnectionScope.PROJECT_PERSONAL -> {
145-
val developerSettings = RemoteDeveloperSettings.Companion.getInstance(project)
145+
val developerSettings = RemoteDeveloperSettings.getInstance(project)
146146
val mutableList = developerSettings.remoteConnectionSettingsList.toMutableList()
147147
mutableList.remove(settings)
148148
developerSettings.remoteConnectionSettingsList = mutableList.toImmutableList()
149149
}
150150

151151
RemoteConnectionScope.PROJECT -> {
152-
with(RemoteProjectSettings.Companion.getInstance(project)) {
152+
with(RemoteProjectSettings.getInstance(project)) {
153153
remoteConnectionSettingsList = remoteConnectionSettingsList.toMutableList()
154154
.apply { remove(settings) }
155155
}
@@ -162,13 +162,13 @@ class RemoteConnectionService(private val project: Project) {
162162
private fun getProjectPersonalLevelSettings(type: RemoteConnectionType) = getRemoteConnectionSettings(
163163
type,
164164
RemoteConnectionScope.PROJECT_PERSONAL,
165-
RemoteDeveloperSettings.Companion.getInstance(project).remoteConnectionSettingsList
165+
RemoteDeveloperSettings.getInstance(project).remoteConnectionSettingsList
166166
)
167167

168168
private fun getProjectLevelSettings(type: RemoteConnectionType) = getRemoteConnectionSettings(
169169
type,
170170
RemoteConnectionScope.PROJECT,
171-
RemoteProjectSettings.Companion.getInstance(project).remoteConnectionSettingsList
171+
RemoteProjectSettings.getInstance(project).remoteConnectionSettingsList
172172
)
173173

174174
private fun getRemoteConnectionSettings(
@@ -180,7 +180,7 @@ class RemoteConnectionService(private val project: Project) {
180180
.filter { it.uuid?.isNotBlank() ?: false }
181181
.onEach { it.scope = scope }
182182

183-
private fun getPropertyOrDefault(project: Project, key: String, fallback: String) = PropertyService.Companion.getInstance(project)
183+
private fun getPropertyOrDefault(project: Project, key: String, fallback: String) = PropertyService.getInstance(project)
184184
.findProperty(key)
185185
?: fallback
186186

0 commit comments

Comments
 (0)