Skip to content

Commit

Permalink
add dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
“thumimku” committed Sep 5, 2023
1 parent 3e3b35f commit 80fceb9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -457,12 +457,20 @@ public Schema getSchema(String schemaId) {
return schema;
}

/**
* Reset Remote Server configuration to default values.
*/
public void resetRemoteServerConfig() {

resetRemoteServerConfig(Constants.AUDIT);
resetRemoteServerConfig(Constants.CARBON);
}

/**
* Reset Remote Server configuration to default values.
*
* @param logType Log Type (ex: CARBON or AUDIT).
*/
public void resetRemoteServerConfig(String logType) {

String tenantDomain = ContextLoader.getTenantDomainFromContext();
Expand Down Expand Up @@ -499,6 +507,11 @@ public void resetRemoteServerConfig(String logType) {
}
}

/**
* Update remote server logging configurations. Each list item should correspond to specific log type.
*
* @param remoteLoggingConfigListItem Remote Logging Config List Item.
*/
public void updateRemoteLoggingConfigs(List<RemoteLoggingConfigListItem> remoteLoggingConfigListItem) {

for (RemoteLoggingConfigListItem loggingConfigListItem: remoteLoggingConfigListItem) {
Expand Down Expand Up @@ -532,6 +545,12 @@ private RemoteLoggingConfig getRemoteLoggingConfig(RemoteLoggingConfigListItem l
return remoteLoggingConfig;
}

/**
* Update remote server logging configurations for given log type.
*
* @param logType Log type (ex: AUDIT or CARBON).
* @param remoteLoggingConfig Remote server logging configurations.
*/
public void updateRemoteLoggingConfig(String logType, RemoteLoggingConfig remoteLoggingConfig) {

String tenantDomain = ContextLoader.getTenantDomainFromContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1193,4 +1193,5 @@ components:
description: " The location of the truststore which contains the certificates of the remote server"
truststorePassword:
type: string
description: " The password of the truststore"
description: " The password of the truststore"

7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@
<version>${org.wso2.carbon.identity.oauth2.token.handler.clientauth.jwt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.commons</groupId>
<artifactId>org.wso2.carbon.logging.service</artifactId>
<version>${org.wso2.carbon.logging.service.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.identity.fetch.remote</groupId>
<artifactId>org.wso2.carbon.identity.remotefetch.core</artifactId>
Expand Down Expand Up @@ -703,6 +709,7 @@
<carbon.security.mgt.version>1.0.0</carbon.security.mgt.version>
<org.wso2.carbon.identity.remotefetch.version>0.7.12</org.wso2.carbon.identity.remotefetch.version>
<org.wso2.carbon.identity.oauth2.token.handler.clientauth.jwt.version>2.4.21</org.wso2.carbon.identity.oauth2.token.handler.clientauth.jwt.version>
<org.wso2.carbon.logging.service.version>4.10.5</org.wso2.carbon.logging.service.version>
<org.wso2.carbon.event.publisher.version>5.2.15</org.wso2.carbon.event.publisher.version>
<identity.branding.preference.management.version>1.0.4</identity.branding.preference.management.version>
<apache.felix.scr.ds.annotations.version>1.2.4</apache.felix.scr.ds.annotations.version>
Expand Down

0 comments on commit 80fceb9

Please sign in to comment.