Class ConfigurationBase
- java.lang.Object
-
- com.sun.identity.common.configuration.ConfigurationBase
-
- Direct Known Subclasses:
ServerConfiguration,SiteConfiguration
public abstract class ConfigurationBase extends Object
This is the base case forServerConfigurationandSiteConfigurationclasses.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringATTR_PRIMARY_SITE_IDprotected static StringATTR_PRIMARY_SITE_URLprotected static StringATTR_SEC_IDprotected static StringATTR_SERVER_IDstatic StringCONFIG_SERVERSstatic StringCONFIG_SITESprotected static StringOLD_ATTR_SERVER_LISTprotected static StringOLD_ATTR_SITE_LISTprotected static StringSUBCONFIG_ACCESS_URLprotected static StringSUBCONFIG_SEC_URLSstatic StringSUBSCHEMA_SERVERstatic StringSUBSCHEMA_SITE
-
Constructor Summary
Constructors Constructor Description ConfigurationBase()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static StringgetNextId(SSOToken ssoToken)protected static StringgetNextId(Set<String> currentIds)protected static ServiceConfiggetRootServerConfig(SSOToken ssoToken)protected static ServiceConfiggetRootServerConfigWithRetry(SSOToken ssoToken)protected static ServiceConfiggetRootSiteConfig(SSOToken ssoToken)protected static ServiceConfiggetServerConfig(SSOToken ssoToken, String name)protected static Set<String>getServerConfigurationId(ServiceConfig svc)protected static Set<String>getSiteConfigurationId(ServiceConfig svc)protected static Set<String>getSiteConfigurationIds(SSOToken ssoToken, ServiceConfig rootNode, String name, boolean bPrimaryOnly)protected static voidremoveOrganizationAlias(SSOToken ssoToken, String url)Removes the host name of a server or site URL that is no longer in use from the DNS aliases of the top-level realm, unless the URL of a remaining server or site has the same host name.protected static voidupdateOrganizationAlias(SSOToken ssoToken, String instanceName, boolean bAdd)
-
-
-
Field Detail
-
OLD_ATTR_SITE_LIST
protected static final String OLD_ATTR_SITE_LIST
- See Also:
- Constant Field Values
-
OLD_ATTR_SERVER_LIST
protected static final String OLD_ATTR_SERVER_LIST
- See Also:
- Constant Field Values
-
CONFIG_SERVERS
public static final String CONFIG_SERVERS
- See Also:
- Constant Field Values
-
SUBSCHEMA_SERVER
public static final String SUBSCHEMA_SERVER
- See Also:
- Constant Field Values
-
ATTR_SERVER_ID
protected static final String ATTR_SERVER_ID
- See Also:
- Constant Field Values
-
SUBSCHEMA_SITE
public static final String SUBSCHEMA_SITE
- See Also:
- Constant Field Values
-
CONFIG_SITES
public static final String CONFIG_SITES
- See Also:
- Constant Field Values
-
SUBCONFIG_ACCESS_URL
protected static final String SUBCONFIG_ACCESS_URL
- See Also:
- Constant Field Values
-
ATTR_PRIMARY_SITE_ID
protected static final String ATTR_PRIMARY_SITE_ID
- See Also:
- Constant Field Values
-
ATTR_PRIMARY_SITE_URL
protected static final String ATTR_PRIMARY_SITE_URL
- See Also:
- Constant Field Values
-
SUBCONFIG_SEC_URLS
protected static final String SUBCONFIG_SEC_URLS
- See Also:
- Constant Field Values
-
ATTR_SEC_ID
protected static final String ATTR_SEC_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNextId
protected static String getNextId(SSOToken ssoToken) throws SMSException, SSOException
- Throws:
SMSExceptionSSOException
-
getServerConfigurationId
protected static Set<String> getServerConfigurationId(ServiceConfig svc) throws SMSException, SSOException
- Throws:
SMSExceptionSSOException
-
getSiteConfigurationId
protected static Set<String> getSiteConfigurationId(ServiceConfig svc) throws SMSException, SSOException
- Throws:
SMSExceptionSSOException
-
getSiteConfigurationIds
protected static Set<String> getSiteConfigurationIds(SSOToken ssoToken, ServiceConfig rootNode, String name, boolean bPrimaryOnly) throws SMSException, SSOException
- Throws:
SMSExceptionSSOException
-
updateOrganizationAlias
protected static void updateOrganizationAlias(SSOToken ssoToken, String instanceName, boolean bAdd) throws SMSException
- Throws:
SMSException
-
removeOrganizationAlias
protected static void removeOrganizationAlias(SSOToken ssoToken, String url)
Removes the host name of a server or site URL that is no longer in use from the DNS aliases of the top-level realm, unless the URL of a remaining server or site has the same host name. The server, site or URL is already gone when this is called, so a failure is only logged and leaves the host name in the aliases.- Parameters:
ssoToken- Single Sign-On Token which is used to access to the service management datastore.url- The URL of the deleted server or site, or the replaced URL of a site.
-
getRootServerConfig
protected static ServiceConfig getRootServerConfig(SSOToken ssoToken) throws SMSException, SSOException
- Throws:
SMSExceptionSSOException
-
getRootServerConfigWithRetry
protected static ServiceConfig getRootServerConfigWithRetry(SSOToken ssoToken) throws SMSException, SSOException
- Throws:
SMSExceptionSSOException
-
getServerConfig
protected static ServiceConfig getServerConfig(SSOToken ssoToken, String name) throws SMSException, SSOException
- Throws:
SMSExceptionSSOException
-
getRootSiteConfig
protected static ServiceConfig getRootSiteConfig(SSOToken ssoToken) throws SMSException, SSOException
- Throws:
SMSExceptionSSOException
-
-