-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: scim config service * feat: scim config service * feat: scim config service * feat: scim config endpoint * feat: scim config endpoint * feat: scim config endpoint * feat: scim config endpoint * feat: scim config endpoint * feat: scim config endpoint * feat: scim config endpoint issue#271 * feat: scim config endpoint issue#271 * feat: scim config endpoint issue#271 * feat: scim config endpoint issue#271 * feat: sonar fixes * feat: scim config endpoint * feat: sonar issue * feat: sonar issue * feat: sonar issue * feat: scim config endpoint changes to resolve sonar issue * feat: scim config endpoint changes to resolve sonar issue * feat: scim config endpoint changes to resolve sonar issue * feat: scim config endpoint * feat: scim config endpoint sonar issue * feat: scim config endpoint sonar issue * feat: scim config endpoint sonar issue * feat: scim config endpoint sonar issue
- Loading branch information
Showing
56 changed files
with
849 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
jans-config-api/common/src/main/java/io/jans/configapi/model/configuration/ApiConf.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.jans.configapi.model.configuration; | ||
|
||
import io.jans.configapi.core.model.Conf; | ||
import io.jans.orm.annotation.AttributeName; | ||
import io.jans.orm.annotation.DataEntry; | ||
import io.jans.orm.annotation.JsonObject; | ||
import io.jans.orm.annotation.ObjectClass; | ||
|
||
@DataEntry | ||
@ObjectClass(value = "jansAppConf") | ||
public class ApiConf extends Conf { | ||
|
||
@JsonObject | ||
@AttributeName(name = "jansConfDyn") | ||
private ApiAppConfiguration dynamicConf; | ||
|
||
public ApiAppConfiguration getDynamicConf() { | ||
return dynamicConf; | ||
} | ||
|
||
public void setDynamicConf(ApiAppConfiguration dynamicConf) { | ||
this.dynamicConf = dynamicConf; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ApiConf [dn=" + dn + ", dynamicConf=" + dynamicConf + ", staticConf=" + staticConf + ", revision=" | ||
+ revision + "]"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...n/src/main/java/io/jans/configapi/plugin/scim/configuration/ScimConfigurationFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Janssen Project software is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. | ||
* | ||
* Copyright (c) 2020, Janssen Project | ||
*/ | ||
|
||
package io.jans.configapi.plugin.scim.configuration; | ||
|
||
import io.jans.configapi.configuration.ConfigurationFactory; | ||
|
||
import javax.enterprise.context.ApplicationScoped; | ||
import javax.inject.Inject; | ||
|
||
import org.slf4j.Logger; | ||
|
||
@ApplicationScoped | ||
public class ScimConfigurationFactory { | ||
|
||
public static final String CONFIGURATION_ENTRY_DN = "scim_ConfigurationEntryDN"; | ||
|
||
@Inject | ||
private Logger log; | ||
|
||
@Inject | ||
ConfigurationFactory configurationFactory; | ||
|
||
public String getScimConfigurationDn() { | ||
return configurationFactory.getConfigurationDn(CONFIGURATION_ENTRY_DN); | ||
} | ||
|
||
} |
Oops, something went wrong.