Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E54416-01


oracle.security.opss.service.config
Interface ManagementConfiguration


public interface ManagementConfiguration

The methods createMgmtConfigBean and deleteMgmtConfigBean can be used for offline mode definition of a Persistent Configuration and reassociation/migration etc. They can also be used in Online mode as well and Notifications will be sent out to Listeners (ConfigContextChangeListener) registered with the Context

Author:
vbkumarjayanti

Method Summary
<T extends ConfigBean>
T
createMgmtConfigBean(java.lang.String serviceProviderDescName, java.lang.String configBeanName)
          Method to create a new ServiceInstanceDescriptor for a given ServiceProvider.
 void deleteMgmtConfigBean(java.lang.String configBeanName)
           
<T extends ConfigBean>
T
getMgmtConfigBean(java.lang.String configBeanName)
          Management Config Beans are only supported for ServiceInstanceDescriptors.
 java.util.List<java.lang.String> getMgmtConfigBeanNames()
           
 java.lang.String getTenantId()
           

 

Method Detail

getTenantId

java.lang.String getTenantId()
Returns:
the ID of the tenant whose config is being held by this context, or Null if this is the default Configuration Context.

getMgmtConfigBean

<T extends ConfigBean> T getMgmtConfigBean(java.lang.String configBeanName)
                                       throws TenantRegistrationException
Management Config Beans are only supported for ServiceInstanceDescriptors. Management Config Beans for other types of Jps Configuration elements was discussed but not considered useful at this point. Usage: AuditConfigBean cls = JpsConfigService.getInstance().<AuditConfigBean>getMgmtConfigBean("myauditDesc");
Type Parameters:
T - the classname of the instanceConfigBeanClass attribute of a (SPD) ServiceProviderDescriptor. When this classname is not present in the SPD (legacy jps-config.xml) then it is assumed to be the default classname that would be defined for every SPD as part of this project.
Parameters:
configBeanName - it is also the name of the persistence (DAO) layer Service Instance Descriptor.
Returns:
the Configuration Bean that can be used for Online and Offline changes to the service Configuration
Throws:
TenantRegistrationException - if there is no registered ServiceInstance Descriptor with the supplied configBeanName

createMgmtConfigBean

<T extends ConfigBean> T createMgmtConfigBean(java.lang.String serviceProviderDescName,
                                              java.lang.String configBeanName)
Method to create a new ServiceInstanceDescriptor for a given ServiceProvider. When a persist operation is called on this JpsConfigBean the corresponding Persistence (DAO) Layer ServiceInstanceDescriptorP object would be persisted to the persistent configuration with the name provided in the serviceInstanceDescName argument.
Type Parameters:
T - the classname of the instanceConfigBeanClass attribute of a (SPD) ServiceProviderDescriptor. When this classname is not present in the SPD (legacy jps-config.xml) then it is assumed to be the default classname that would be defined for every SPD as part of this project.
Parameters:
serviceProviderDescName - the name of an existing ServiceProvider Descriptor for which an Instance Descriptor needs to be defined
configBeanName - the name of the Config Bean and inturn the ServiceInstanceDescriptor to be created new.
Returns:
the newly created ConfigBean Should this exception be also thrown if there is a config bean with another name registered for the same ServiceProvider ?.

deleteMgmtConfigBean

void deleteMgmtConfigBean(java.lang.String configBeanName)
                          throws TenantRegistrationException
Parameters:
configBeanName - delete the named config bean. This would also cause deletion of the corresponding ServiceInstanceDescriptor from the Persistence Layer.
Throws:
TenantRegistrationException - if there is no registered ServiceInstance Descriptor with the supplied configBeanName

getMgmtConfigBeanNames

java.util.List<java.lang.String> getMgmtConfigBeanNames()
Returns:
the names of Management Config Beans available in this context.

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E54416-01


Copyright © 2011, 2015, Oracle and/or its affiliates. All rights reserved.