Interface AdminConsoleServiceMBean
public interface AdminConsoleServiceMBean
MBean interface for Admin Console back end.
This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateFactoryConfiguration(String factoryPid) Create a new configuration instance for the supplied persistent id of the factory, answering the PID of the created configurationcreateFactoryConfigurationForLocation(String factoryPid, String location) Create a factory configuration for the supplied persistent id of the factory and the bundle location bound to bind the created configuration to, answering the PID of the created configurationvoidDelete the configurationvoiddeleteConfigurations(String filter) Delete the configurations matching the filter specification.voiddeleteForLocation(String pid, String location) Delete the configurationdisableConfiguration(String servicePid) Disables a configuration but preserves the configuration to be enabled at a later time.enableConfiguration(String servicePid) Enables a previously disabled configurationgetBundleLocation(String pid) Answer the bundle location the configuration is bound togetClaimsConfiguration(String filter) String[][]getConfigurations(String filter) Answer the list of PID/Location pairs of the configurations managed by this servicegetFactoryPid(String pid) Answer the factory PID if the configuration is a factory configuration, null otherwise.getFactoryPidForLocation(String pid, String location) Answer the factory PID if the configuration is a factory configuration, null otherwise.getProperties(String pid) Answer the contents of the configurationgetPropertiesForLocation(String pid, String location) Answer the contents of the configurationgetService(String filter) Returns a managed service or managed service factory with associated metatype and configurationsLists all modules that are availableLists all managed services and managed service factories with associated metatypes and configurationsvoidsetBundleLocation(String pid, String location) Set the bundle location the configuration is bound tovoidsetSsoConfigurations(Map<String, Object>[] config) booleanUpdate the configuration with the supplied properties For each property entry, the following row is suppliedvoidUpdate the configuration with the supplied properties For each property entry, the following row is suppliedbooleanupdateGuestClaimsProfile(String pid, Map<String, Object> configurationTable) Interceptor method for special handling of guest claims profile data.
-
Field Details
-
OBJECT_NAME
- See Also:
-
-
Method Details
-
listServices
Lists all managed services and managed service factories with associated metatypes and configurations- Returns:
- the list of all Services
-
getService
Returns a managed service or managed service factory with associated metatype and configurations*@param filter the string representation of the
org.osgi.framework.Filter- Returns:
- Service
-
listModules
Lists all modules that are available- Returns:
- the list of all Modules
-
createFactoryConfiguration
Create a new configuration instance for the supplied persistent id of the factory, answering the PID of the created configuration- Parameters:
factoryPid- the persistent id of the factory- Returns:
- the PID of the created configuration
- Throws:
IOException- if the operation failed
-
createFactoryConfigurationForLocation
Create a factory configuration for the supplied persistent id of the factory and the bundle location bound to bind the created configuration to, answering the PID of the created configuration- Parameters:
factoryPid- the persistent id of the factorylocation- the bundle location- Returns:
- the pid of the created configuation
- Throws:
IOException- if the operation failed
-
delete
Delete the configuration- Parameters:
pid- the persistent identifier of the configuration- Throws:
IOException- if the operation fails
-
deleteForLocation
Delete the configuration- Parameters:
pid- the persistent identifier of the configurationlocation- the bundle location- Throws:
IOException- if the operation fails
-
deleteConfigurations
Delete the configurations matching the filter specification.- Parameters:
filter- the string representation of theorg.osgi.framework.Filter- Throws:
IOException- if the operation failedIllegalArgumentException- if the filter is invalid
-
getBundleLocation
Answer the bundle location the configuration is bound to- Parameters:
pid- the persistent identifier of the configuration- Returns:
- the bundle location
- Throws:
IOException- if the operation fails
-
getFactoryPid
Answer the factory PID if the configuration is a factory configuration, null otherwise.- Parameters:
pid- the persistent identifier of the configuration- Returns:
- the factory PID
- Throws:
IOException- if the operation fails
-
getFactoryPidForLocation
Answer the factory PID if the configuration is a factory configuration, null otherwise.- Parameters:
pid- the persistent identifier of the configurationlocation- the bundle location- Returns:
- the factory PID
- Throws:
IOException- if the operation fails
-
getProperties
Answer the contents of the configuration- Parameters:
pid- the persistent identifier of the configuration- Returns:
- the table of contents
- Throws:
IOException- if the operation fails- See Also:
-
for the details of the TabularType
-
getPropertiesForLocation
Answer the contents of the configuration- Parameters:
pid- the persistent identifier of the configurationlocation- the bundle location- Returns:
- the table of contents
- Throws:
IOException- if the operation fails- See Also:
-
for the details of the TabularType
-
getConfigurations
Answer the list of PID/Location pairs of the configurations managed by this service- Parameters:
filter- the string representation of theorg.osgi.framework.Filter- Returns:
- the list of configuration PID/Location pairs
- Throws:
IOException- if the operation failedIllegalArgumentException- if the filter is invalid
-
setBundleLocation
Set the bundle location the configuration is bound to- Parameters:
pid- the persistent identifier of the configurationlocation- the bundle location- Throws:
IOException- if the operation fails
-
update
Update the configuration with the supplied properties For each property entry, the following row is suppliedIt is necessary to have a return value so that the ajax call to Jolokia waits for it to finish and we get any errors returned
- Parameters:
pid- the persistent identifier of the configurationconfigurationTable- the table of properties- Throws:
IOException- if the operation fails- See Also:
-
for the details of the TabularType
-
updateGuestClaimsProfile
boolean updateGuestClaimsProfile(String pid, Map<String, Object> configurationTable) throws IOExceptionInterceptor method for special handling of guest claims profile data.- Parameters:
pid- the persistent identifier of the configurationconfigurationTable- the table of properties- Throws:
IOException- if the operation failsupdate(String, Map).- See Also:
-
updateForLocation
void updateForLocation(String pid, String location, Map<String, Object> configurationTable) throws IOExceptionUpdate the configuration with the supplied properties For each property entry, the following row is supplied- Parameters:
pid- the persistent identifier of the configurationlocation- the bundle locationconfigurationTable- the table of properties- Throws:
IOException- if the operation fails- See Also:
-
for the details of the TabularType
-
enableConfiguration
Enables a previously disabled configuration- Parameters:
servicePid- that uniquely identifies the source to enable.- Returns:
- the status of the configuration
- Throws:
IOException- if the Source to be enabled cannot be located via the provided service PID.
-
disableConfiguration
Disables a configuration but preserves the configuration to be enabled at a later time.- Parameters:
servicePid- that uniquely identifies the source to disable.- Returns:
- the status of the configuration
- Throws:
IOException- if the Source to be disabled cannot be located via the provided service PID.
-
getClaimsConfiguration
-
getSsoConfigurations
-
setSsoConfigurations
- Throws:
IOException
-