public class Configuration
extends java.lang.Object
implements java.io.Serializable
Ex. ...... Configuration cfg = new Configuration ("us"); .... // Retrieve all enabled applications Vector apps = cfg.getAllApplications();
Constructor and Description |
---|
Configuration(java.lang.String realmName)
Constructor to create a configuration object for a given realm.
|
Modifier and Type | Method and Description |
---|---|
java.util.Vector |
getAllApplications(javax.naming.ldap.LdapContext lCtx)
Get all enabled applications configured for this realm.
|
java.util.Vector |
getAllApplications(javax.naming.ldap.LdapContext ctx,
boolean force)
Get all enabled applications configured for this realm.
|
ConfigAttribute[] |
getAllBaseAttrConfig(javax.naming.ldap.LdapContext lCtx)
Gets the configuration information pertaining to the "Base User"
attributes.
|
Application |
getApplication(javax.naming.ldap.LdapContext ctx,
java.lang.String appType,
java.lang.String appName)
Get a specific application configured for this realm using the given
Ldap Context.
|
java.util.Vector |
getInstalledApplications(javax.naming.ldap.LdapContext ctx)
Gets all the registered applications in the infra structure.
|
java.lang.String |
getRealmDN()
Gets the Realm DN
|
java.lang.String |
getRealmName()
Gets the Realm Name.
|
Subscriber |
getSubscriber(javax.naming.ldap.LdapContext lCtx)
Gets the
Subscriber object. |
public Configuration(java.lang.String realmName)
realmName
- Realm Name . Ex "us" or "acme"public Subscriber getSubscriber(javax.naming.ldap.LdapContext lCtx) throws java.lang.Exception
Subscriber
object.
The realm name specified during this object creation
will be usedlCtx
- reference to valid a Ldap Contextjava.lang.Exception
public java.util.Vector getInstalledApplications(javax.naming.ldap.LdapContext ctx) throws java.lang.Exception
ctx
- reference to a valid Ldap Contextjava.lang.Exception
public java.util.Vector getAllApplications(javax.naming.ldap.LdapContext lCtx) throws java.lang.Exception
getInstalledApplications(LdapContext)
but returns only the
enabled applicationslCtx
- reference to a valid Ldap ContextApplication
object.java.lang.Exception
getInstalledApplications(LdapContext)
,
getAllApplications(LdapContext, boolean)
public java.util.Vector getAllApplications(javax.naming.ldap.LdapContext ctx, boolean force) throws java.lang.Exception
getInstalledApplications(LdapContext)
but returns only the
enabled applicationsctx
- reference to a valid Ldap Contextforce
- true - read afresh into the cacheApplication
object.java.lang.Exception
getInstalledApplications(LdapContext)
,
getAllApplications(LdapContext)
public Application getApplication(javax.naming.ldap.LdapContext ctx, java.lang.String appType, java.lang.String appName) throws java.lang.Exception
ctx
- reference to a valid Ldap ContextappType
- application typeappName
- application namejava.lang.Exception
getInstalledApplications(LdapContext)
,
getAllApplications(LdapContext)
public ConfigAttribute[] getAllBaseAttrConfig(javax.naming.ldap.LdapContext lCtx) throws java.lang.Exception
lCtx
- reference to a valid Ldap Contextjava.lang.Exception
public java.lang.String getRealmName()
public java.lang.String getRealmDN()