Class TaskModelImpl
- java.lang.Object
-
- com.sun.identity.console.base.model.AMModelBase
-
- com.sun.identity.console.task.model.TaskModelImpl
-
- All Implemented Interfaces:
AMAdminConstants,AMModel,TaskModel
public class TaskModelImpl extends AMModelBase implements TaskModel
-
-
Field Summary
-
Fields inherited from class com.sun.identity.console.base.model.AMModelBase
debug, locale, locationDN
-
Fields inherited from interface com.sun.identity.console.base.model.AMAdminConstants
ADMIN_CONSOLE_SERVICE, ADMIN_DISPLAY_ATTRIBUTE, ADMIN_DISPLAY_READONLY_ATTRIBUTE, AGENT_REPOSITORY_LOCATION_ATTR, AGENTS_NODE_ID, AMSDK_DEBUG_FILENAME, ATTR_USER_OLD_PASSWORD, ATTR_USER_PASSWORD, ATTR_USER_RESOURCE_OFFERING, ATTR_USER_STATUS, AUTH_CONFIG_SERVICE, CDM_CONTENT_TYPE_PROPERTY_NAME, CHOICES, CONFIGURATION_NODE_ID, CONSOLE_DEBUG_FILENAME, CONSOLE_LOCATION_DN, CONSOLE_ORG_CUSTOM_JSP_DIRECTORY, CONSOLE_UM_ENABLED_ATTR, CONSOLE_USER_ATTRS_SEARCH_KEY, CONSOLE_USER_SEARCH_KEY, CONSOLE_USER_SEARCH_RETURN_KEY, CORE_AUTH_SERVICE, CURRENT_ORG, CURRENT_PROFILE, CURRENT_REALM, DEFAULT_RB, DEFAULT_SEARCH_TIMEOUT, DISCOVERY_SERVICE, DISCOVERY_SERVICE_NAME_BOOTSTRAP_RES_OFF, DISCOVERY_SERVICE_NAME_DYNAMIC_DISCO_ENTRIES, DISCOVERY_SERVICE_PROVIDER_RESOURCE_ID_MAPPER, DISCOVERY_SERVICE_PROVIDER_RESOURCE_ID_MAPPER_ID_MAPPER, DISCOVERY_SERVICE_PROVIDER_RESOURCE_ID_MAPPER_PROVIDER_ID, DISPLAY_ATTRIBUTE, DISPLAY_READONLY_ATTRIBUTE, DYN_LINK_COMPONENT_NAME, ENCRYPTED, FED_TAB_ID, G11N_SERIVCE_COMMON_NAME_FORMAT, G11N_SERVICE_NAME, IDREPO_SERVICE_NAME, IMAGES_PRIMARY_PRODUCT_NAME_PNG, OPERATION_ADD, OPERATION_EDIT, OPTIONAL_ATTRIBUTE, ORGANIZATION_NODE_ID, PASSWORD, PERMISSION_DELEGATE, PERMISSION_MODIFY, PERMISSION_READ, PG_SESSION_INIT_PAGETRAIL, PLATFORM_SERVICE, POLICY_SELECTED_RESPONSE_PROVIDER, POLICY_SERVICE, PREVIOUS_ORGANIZATION, PREVIOUS_REALM, PREVIOUS_TAB_ID, PW_RESET_SERVICE, REALM_NODE_ID, REQUIRED_ATTRIBUTE, REST_STS_SERVICE, ROLE_DISPLAY_OPTION_ATTRIBUTE_NAME, SAML_SERVICE, SAVE_VB_NAME, SERVICE_NAME, SESSION_SERVICE, SESSIONS_NODE_ID, SOAP_STS_SERVICE, SSO_TOKEN_LOCALE_ATTRIBUTE_NAME, SSO_TOKEN_ORGANIZATION_ATTRIBUTE_NAME, STRING_ACTIVE, STRING_FALSE, STRING_INACTIVE, SUBJECTS_NODE_ID, TAB_AGENT_PREFIX, TAB_AGENT_PREFIX_INT, URL_LOGIN, URL_LOGOUT, USER_SERVICE, USER_SERVICE_PREFERRED_LOCALE, VALUES
-
Fields inherited from interface com.sun.identity.console.base.model.AMModel
CONSOLE_PAGING_SIZE_ATTR, CONSOLE_SEARCH_RESULT_LIMIT_ATTR, CONSOLE_SEARCH_TIME_LIMIT_ATTR, DEFAULT_PAGE_SIZE, DEFAULT_SEARCH_RESULT_LIMIT, DEFAULT_SEARCH_TIME_LIMIT
-
-
Constructor Summary
Constructors Constructor Description TaskModelImpl(jakarta.servlet.http.HttpServletRequest req, Map map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetgetCircleOfTrusts(String realm)Returns a set of circle of trusts.MapgetConfigureGoogleAppsURLs(String realm, String entityId)MapgetConfigureSalesForceAppsURLs(String realm, String entityId, String attrMapping)SetgetEntities(String realm, String cotName)Returns a set of entities in a circle of trust.SetgetHostedIDP(String realm, String cotName)Returns a set of hosted IDP in a circle of trust.SetgetHostedSP(String realm, String cotName)Returns a set of hosted SP in a circle of trust.MapgetRealmCotWithHostedIDPs()Returns a map of realm to a map of circle of trust name to a set of Hosted Identity Providers.SetgetRealms()Returns realm names.SetgetRemoteIDP(String realm, String cotName)Returns a set of remote IDP in a circle of trust.SetgetRemoteSP(String realm, String cotName)Returns a set of remote SP in a circle of trust.SetgetSigningKeys()Returns a set of signing keys.protected SetreturnEmptySetIfValueIsNull(String str)protected SetreturnEmptySetIfValueIsNull(List l)protected SetreturnEmptySetIfValueIsNull(Set set)voidsetAcsUrl(String realm, String entityId, String acsUrl)Saves the Salesforce login url as the Assertion Consumer Service Location-
Methods inherited from class com.sun.identity.console.base.model.AMModelBase
encryptString, getAttributesToDisplay, getAuthenticatedOrgDN, getClientType, getConsoleAttributes, getConsoleDirectory, getErrorString, getGlobalPageSize, getGlobalSearchResultLimit, getGlobalSearchTimeOutLimit, getLocalizedServiceName, getLocalizedServiceName, getLocalizedString, getLocationDN, getLogoutURL, getPageSize, getRandomString, getRealmNames, getResourceBundle, getSearchResultLimit, getSearchTimeOutLimit, getServerInstanceForLogMsg, getServicePropertiesViewBeanURL, getServiceResourceBundle, getServiceSchemaManager, getSpecialUsers, getStartDN, getStartDN, getStartDSDN, getSupportedAgentTypes, getSupportedEntityTypes, getUniversalID, getUserAdditionalSearchAttributes, getUserDisplayAttribute, getUserDisplayName, getUserDN, getUserInfo, getUserLocale, getUserName, getUserOrganization, getUserSearchAttribute, getUserSSOToken, ignoreUserProfile, initialize, isAmadminUser, isAMSDKEnabled, isDisplayed, logEvent, setLocationDN, validateUserStatusEntry
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.identity.console.base.model.AMModel
getClientType, getConsoleDirectory, getErrorString, getLocalizedServiceName, getLocalizedString, getLocationDN, getPageSize, getRandomString, getRealmNames, getServicePropertiesViewBeanURL, getSpecialUsers, getStartDN, getStartDSDN, getSupportedAgentTypes, getSupportedEntityTypes, getUniversalID, getUserDisplayName, getUserDN, getUserLocale, getUserName, getUserSSOToken, ignoreUserProfile, isAmadminUser, isAMSDKEnabled, logEvent, setLocationDN
-
-
-
-
Constructor Detail
-
TaskModelImpl
public TaskModelImpl(jakarta.servlet.http.HttpServletRequest req, Map map)
-
-
Method Detail
-
getRealms
public Set getRealms() throws AMConsoleException
Returns realm names.- Specified by:
getRealmsin interfaceTaskModel- Returns:
- realm names.
- Throws:
AMConsoleException- if realm cannot be retrieved.
-
getSigningKeys
public Set getSigningKeys() throws AMConsoleException
Returns a set of signing keys.- Specified by:
getSigningKeysin interfaceTaskModel- Returns:
- a set of signing keys.
- Throws:
AMConsoleException
-
getCircleOfTrusts
public Set getCircleOfTrusts(String realm) throws AMConsoleException
Returns a set of circle of trusts.- Specified by:
getCircleOfTrustsin interfaceTaskModel- Parameters:
realm- Realm.- Returns:
- a set of circle of trusts.
- Throws:
AMConsoleException- if unable to retrieve circle of trusts.
-
getEntities
public Set getEntities(String realm, String cotName) throws AMConsoleException
Returns a set of entities in a circle of trust.- Specified by:
getEntitiesin interfaceTaskModel- Parameters:
realm- Realm.cotName- Name of circle of trust.- Returns:
- a set of entities in a circle of trust.
- Throws:
AMConsoleException- if unable to retrieve entities.
-
getHostedIDP
public Set getHostedIDP(String realm, String cotName) throws AMConsoleException
Returns a set of hosted IDP in a circle of trust.- Specified by:
getHostedIDPin interfaceTaskModel- Parameters:
realm- Realm.cotName- Name of circle of trust.- Returns:
- a set of hosted IDP in a circle of trust.
- Throws:
AMConsoleException- if IDP cannot be returned.
-
getRemoteIDP
public Set getRemoteIDP(String realm, String cotName) throws AMConsoleException
Returns a set of remote IDP in a circle of trust.- Specified by:
getRemoteIDPin interfaceTaskModel- Parameters:
realm- Realm.cotName- Name of circle of trust.- Returns:
- a set of remote IDP in a circle of trust.
- Throws:
AMConsoleException- if IDP cannot be returned.
-
getHostedSP
public Set getHostedSP(String realm, String cotName) throws AMConsoleException
Returns a set of hosted SP in a circle of trust.- Specified by:
getHostedSPin interfaceTaskModel- Parameters:
realm- Realm.cotName- Name of circle of trust.- Returns:
- a set of hosted SP in a circle of trust.
- Throws:
AMConsoleException- if IDP cannot be returned.
-
getRemoteSP
public Set getRemoteSP(String realm, String cotName) throws AMConsoleException
Returns a set of remote SP in a circle of trust.- Specified by:
getRemoteSPin interfaceTaskModel- Parameters:
realm- Realm.cotName- Name of circle of trust.- Returns:
- a set of remote SP in a circle of trust.
- Throws:
AMConsoleException- if IDP cannot be returned.
-
getRealmCotWithHostedIDPs
public Map getRealmCotWithHostedIDPs() throws AMConsoleException
Returns a map of realm to a map of circle of trust name to a set of Hosted Identity Providers.- Specified by:
getRealmCotWithHostedIDPsin interfaceTaskModel- Returns:
- a map of realm to a map of circle of trust name to a set of Hosted Identity Providers.
- Throws:
AMConsoleException- if this map cannot be constructed.
-
getConfigureGoogleAppsURLs
public Map getConfigureGoogleAppsURLs(String realm, String entityId) throws AMConsoleException
- Specified by:
getConfigureGoogleAppsURLsin interfaceTaskModel- Throws:
AMConsoleException
-
getConfigureSalesForceAppsURLs
public Map getConfigureSalesForceAppsURLs(String realm, String entityId, String attrMapping) throws AMConsoleException
- Specified by:
getConfigureSalesForceAppsURLsin interfaceTaskModel- Throws:
AMConsoleException
-
setAcsUrl
public void setAcsUrl(String realm, String entityId, String acsUrl) throws AMConsoleException
Saves the Salesforce login url as the Assertion Consumer Service Location- Specified by:
setAcsUrlin interfaceTaskModel- Parameters:
realm- RealmentityId- Entity NameacsUrl- assertion consumer service location- Throws:
AMConsoleException- if value cannot be saved.
-
-