public class ScriptConfigurationService extends Object implements ScriptingService, ServiceListener
ScriptConfigurationService for access to the persisted ScriptConfiguration
instances. It is the layer on top of the ScriptConfigurationDataStore.ADDED, MODIFIED, REMOVED| Constructor and Description |
|---|
ScriptConfigurationService(org.slf4j.Logger logger,
String realm,
CoreWrapper coreWrapper,
ServiceConfigManager scm)
Construct a new instance of
ScriptConfigurationService. |
| Modifier and Type | Method and Description |
|---|---|
ScriptConfiguration |
create(ScriptConfiguration config,
Subject subject)
Create the scripting configuration and persist it.
|
void |
delete(String uuid)
Delete the configuration with the given UUID.
|
Set<ScriptConfiguration> |
get(org.forgerock.util.query.QueryFilter<String> queryFilter)
Retrieve the stored configuration.
|
ScriptConfiguration |
get(String uuid)
Retrieve the stored configuration.
|
Set<ScriptConfiguration> |
getAll()
Retrieve the stored configuration.
|
void |
globalConfigChanged(String serviceName,
String version,
String groupName,
String serviceComponent,
int type) |
void |
organizationConfigChanged(String serviceName,
String version,
String orgName,
String groupName,
String serviceComponent,
int type) |
void |
schemaChanged(String serviceName,
String version) |
ScriptConfiguration |
update(ScriptConfiguration config,
Subject subject)
Update the given scripting configuration and persist it.
|
@Inject
public ScriptConfigurationService(org.slf4j.Logger logger,
String realm,
CoreWrapper coreWrapper,
ServiceConfigManager scm)
ScriptConfigurationService.logger - The logger log any error and debug messages to.realm - The realm in which the ScriptConfiguration resides in.coreWrapper - Wrapper for access to core services.public ScriptConfiguration create(ScriptConfiguration config, Subject subject) throws ScriptException
ScriptingServicecreate in interface ScriptingServiceconfig - The configuration to create and persist.subject - The subject that is creating the script configuration.ScriptException - if the operation was not successfulpublic ScriptConfiguration update(ScriptConfiguration config, Subject subject) throws ScriptException
ScriptingServiceupdate in interface ScriptingServiceconfig - The configuration to update and persist.subject - The subject that is updating the script configuration.ScriptException - if the operation was not successfulpublic void delete(String uuid) throws ScriptException
ScriptingServicedelete in interface ScriptingServiceuuid - The unique identifier for the configuration.ScriptException - if the operation was not successfulpublic Set<ScriptConfiguration> getAll()
ScriptingServicegetAll in interface ScriptingServicepublic ScriptConfiguration get(String uuid) throws ScriptException
ScriptingServiceget in interface ScriptingServiceScriptException - if the operation was not successfulpublic Set<ScriptConfiguration> get(org.forgerock.util.query.QueryFilter<String> queryFilter)
ScriptingServiceget in interface ScriptingServicepublic void schemaChanged(String serviceName, String version)
schemaChanged in interface ServiceListenerpublic void globalConfigChanged(String serviceName, String version, String groupName, String serviceComponent, int type)
globalConfigChanged in interface ServiceListenerpublic void organizationConfigChanged(String serviceName, String version, String orgName, String groupName, String serviceComponent, int type)
organizationConfigChanged in interface ServiceListenerCopyright © 2010–2024 Open Identity Platform Community. All rights reserved.