public class SiteConfiguration extends ConfigurationBase
ATTR_PRIMARY_SITE_ID, ATTR_PRIMARY_SITE_URL, ATTR_SEC_ID, ATTR_SERVER_ID, CONFIG_SERVERS, CONFIG_SITES, OLD_ATTR_SERVER_LIST, OLD_ATTR_SITE_LIST, SUBCONFIG_ACCESS_URL, SUBCONFIG_SEC_URLS, SUBSCHEMA_SERVER, SUBSCHEMA_SITE
Modifier and Type | Method and Description |
---|---|
static void |
addServersToSite(SSOToken ssoToken,
String siteName,
Collection serverInstanceNames)
Adds a set of server instances to a site.
|
static void |
addSiteSecondaryURLs(SSOToken ssoToken,
String siteName,
Collection secondaryURLs)
Adds the secondary URLs of a site.
|
static boolean |
createSite(SSOToken ssoToken,
String siteName,
String siteURL,
Collection secondaryURLs)
Creates a site.
|
static boolean |
deleteSite(SSOToken ssoToken,
String siteName)
Deletes a site.
|
static String |
getSiteID(SSOToken ssoToken,
String siteName)
Returns the primary URL of a site.
|
static String |
getSiteIdByURL(SSOToken ssoToken,
String url)
Returns site name where the given URL is either its primary or
secondary URL.
|
static Set |
getSiteInfo(SSOToken ssoToken)
Returns a set of site information where each entry in a set is
a string of this format
site-instance-name|siteId . |
static String |
getSitePrimaryURL(SSOToken ssoToken,
String siteName)
Returns the primary URL of a site.
|
static Set<String> |
getSites(SSOToken ssoToken)
Returns a set of site instance name (String).
|
static Set |
getSiteSecondaryURLs(SSOToken ssoToken,
String siteName)
Returns the secondary URLs of a site.
|
static Set |
getSiteURLs(SSOToken ssoToken,
String siteName)
Returns the primary and secondary URLs of a site.
|
static boolean |
isSiteExist(SSOToken ssoToken,
String siteName)
Returns
true if site exists. |
static Set<String> |
listServers(SSOToken ssoToken,
String siteName)
Returns the server instance names that belong to a site.
|
static void |
removeServersFromSite(SSOToken ssoToken,
String siteName,
Collection serverInstanceNames)
Removes a set of server instances from a site.
|
static void |
removeSiteSecondaryURLs(SSOToken ssoToken,
String siteName,
Collection secondaryURLs)
Removes the secondary URLs from a site.
|
static void |
setSiteID(SSOToken ssoToken,
String siteName,
String siteID)
Sets the ID of a site.
|
static void |
setSitePrimaryURL(SSOToken ssoToken,
String siteName,
String siteURL)
Sets the primary URL of a site.
|
static void |
setSiteSecondaryURLs(SSOToken ssoToken,
String siteName,
Collection secondaryURLs)
Sets the secondary URLs of a site.
|
static boolean |
validateUrl(String siteURL) |
getNextId, getNextId, getRootServerConfig, getRootServerConfigWithRetry, getRootSiteConfig, getServerConfig, getServerConfigurationId, getSiteConfigurationId, getSiteConfigurationIds, updateOrganizationAlias
public static Set getSiteInfo(SSOToken ssoToken) throws SMSException, SSOException
site-instance-name|siteId
.ssoToken
- Single Sign-On Token which is used to query the service
management datastore.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.public static Set<String> getSites(SSOToken ssoToken) throws SMSException, SSOException
ssoToken
- Single Sign-On Token which is used to query the service
management datastore.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.public static boolean deleteSite(SSOToken ssoToken, String siteName) throws SMSException, SSOException, ConfigurationException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.ConfigurationException
public static boolean createSite(SSOToken ssoToken, String siteName, String siteURL, Collection secondaryURLs) throws SMSException, SSOException, ConfigurationException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.siteURL
- primary URL of the site.secondaryURLs
- secondary URLs of the site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.ConfigurationException
- if site url is invalid.public static boolean validateUrl(String siteURL)
public static String getSiteID(SSOToken ssoToken, String siteName) throws SMSException, SSOException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.public static String getSitePrimaryURL(SSOToken ssoToken, String siteName) throws SMSException, SSOException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.public static Set getSiteURLs(SSOToken ssoToken, String siteName) throws SMSException, SSOException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.public static Set getSiteSecondaryURLs(SSOToken ssoToken, String siteName) throws SMSException, SSOException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.public static void setSitePrimaryURL(SSOToken ssoToken, String siteName, String siteURL) throws SMSException, SSOException, ConfigurationException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.siteURL
- Primary URL of a site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.ConfigurationException
public static void setSiteID(SSOToken ssoToken, String siteName, String siteID) throws SMSException, SSOException, ConfigurationException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.siteID
- The new id of the site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.ConfigurationException
public static void setSiteSecondaryURLs(SSOToken ssoToken, String siteName, Collection secondaryURLs) throws SMSException, SSOException, ConfigurationException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.secondaryURLs
- secondary URLs of a site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.ConfigurationException
public static void addSiteSecondaryURLs(SSOToken ssoToken, String siteName, Collection secondaryURLs) throws SMSException, SSOException, ConfigurationException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.secondaryURLs
- Secondary URLs to be added to site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.ConfigurationException
public static void removeSiteSecondaryURLs(SSOToken ssoToken, String siteName, Collection secondaryURLs) throws SMSException, SSOException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.secondaryURLs
- Secondary URLs to be removed from site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.public static void addServersToSite(SSOToken ssoToken, String siteName, Collection serverInstanceNames) throws SMSException, SSOException, ConfigurationException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.serverInstanceNames
- Set of server instance names.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.ConfigurationException
- if one or more server instances are not
found.public static void removeServersFromSite(SSOToken ssoToken, String siteName, Collection serverInstanceNames) throws SMSException, SSOException, ConfigurationException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.serverInstanceNames
- Set of server instance names.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.ConfigurationException
public static Set<String> listServers(SSOToken ssoToken, String siteName) throws SMSException, SSOException, ConfigurationException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.ConfigurationException
public static boolean isSiteExist(SSOToken ssoToken, String siteName) throws SMSException, SSOException
true
if site exists.ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.siteName
- Name of the site.true
if site exists.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.public static String getSiteIdByURL(SSOToken ssoToken, String url) throws SMSException, SSOException
ssoToken
- Single Sign-On Token which is used to access to the
service management datastore.url
- Lookup URL.SMSException
- if errors access in the service management
datastore.SSOException
- if the ssoToken
is not valid.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.