Class IDRepoModelImpl
- java.lang.Object
-
- com.sun.identity.console.base.model.AMModelBase
-
- com.sun.identity.console.realm.model.IDRepoModelImpl
-
- All Implemented Interfaces:
AMAdminConstants,AMModel,IDRepoModel
public class IDRepoModelImpl extends AMModelBase implements IDRepoModel
-
-
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
-
Fields inherited from interface com.sun.identity.console.realm.model.IDRepoModel
TF_NAME
-
-
Constructor Summary
Constructors Constructor Description IDRepoModelImpl(jakarta.servlet.http.HttpServletRequest req, Map map)Creates a simple model using default resource bundle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateIDRepo(String realmName, String idRepoName, String idRepoType, Map values)Creates ID Repo object.voiddeleteIDRepos(String realmName, Set names)Deletes ID Repo objects.voideditIDRepo(String realmName, String idRepoName, Map values)Edit ID Repo object.MapgetAttributeValues(String realmName, String name)Returns attribute values of ID Repo.MapgetDefaultAttributeValues()MapgetDefaultAttributeValues(String type)Returns default attribute values of ID Repo.SetgetIDRepoNames(String realmName)Returns a set of ID Repository names.StringgetIDRepoType(String realmName, String idRepoName)Returns ID Repo Type of an object.com.iplanet.jato.view.html.OptionListgetIDRepoTypes()Returns an option list of ID Repo type name to its localized string.MapgetIDRepoTypesMap()Returns map of ID Repo type name to its localized string.StringgetPropertyXMLString(String realmName, String viewbeanClassName, String type, boolean bCreate)Returns property sheet XML for ID Repo Profile.voidloadIdRepoSchema(String idRepoName, String realm, jakarta.servlet.ServletContext servletCtx)-
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
-
IDRepoModelImpl
public IDRepoModelImpl(jakarta.servlet.http.HttpServletRequest req, Map map)Creates a simple model using default resource bundle.- Parameters:
req- HTTP Servlet Requestmap- of user information
-
-
Method Detail
-
getIDRepoNames
public Set getIDRepoNames(String realmName) throws AMConsoleException
Returns a set of ID Repository names.- Specified by:
getIDRepoNamesin interfaceIDRepoModel- Parameters:
realmName- Name of Realm.- Returns:
- a set of ID Repository names.
- Throws:
AMConsoleException- if there are errors getting these names.
-
getIDRepoTypesMap
public Map getIDRepoTypesMap() throws AMConsoleException
Returns map of ID Repo type name to its localized string.- Specified by:
getIDRepoTypesMapin interfaceIDRepoModel- Returns:
- map of ID Repo type name to its localized string.
- Throws:
AMConsoleException
-
getIDRepoTypes
public com.iplanet.jato.view.html.OptionList getIDRepoTypes() throws AMConsoleExceptionReturns an option list of ID Repo type name to its localized string.- Specified by:
getIDRepoTypesin interfaceIDRepoModel- Returns:
- an option list of ID Repo type name to its localized string.
- Throws:
AMConsoleException
-
getPropertyXMLString
public String getPropertyXMLString(String realmName, String viewbeanClassName, String type, boolean bCreate) throws AMConsoleException
Returns property sheet XML for ID Repo Profile.- Specified by:
getPropertyXMLStringin interfaceIDRepoModel- Parameters:
realmName- Name of Realm.viewbeanClassName- Class Name of View Bean.type- Type of ID Repo.bCreate-truefor creation operation.- Returns:
- property sheet XML for ID Repo Profile.
- Throws:
AMConsoleException
-
getDefaultAttributeValues
public Map getDefaultAttributeValues(String type)
Returns default attribute values of ID Repo.- Specified by:
getDefaultAttributeValuesin interfaceIDRepoModel- Parameters:
type- Type of ID Repo.- Returns:
- default attribute values of ID Repo.
-
getAttributeValues
public Map getAttributeValues(String realmName, String name) throws AMConsoleException
Returns attribute values of ID Repo.- Specified by:
getAttributeValuesin interfaceIDRepoModel- Parameters:
realmName- Name of realm.name- Name of ID Repo.- Returns:
- attribute values of ID Repo.
- Throws:
AMConsoleException- if attribute values cannot be obtained.
-
createIDRepo
public void createIDRepo(String realmName, String idRepoName, String idRepoType, Map values) throws AMConsoleException
Creates ID Repo object.- Specified by:
createIDRepoin interfaceIDRepoModel- Parameters:
realmName- Name of Realm.idRepoName- Name of ID Repo.idRepoType- Type of ID Repo.values- Map of attribute name to set of values.- Throws:
AMConsoleException- if object cannot be created.
-
getDefaultAttributeValues
public Map getDefaultAttributeValues()
-
deleteIDRepos
public void deleteIDRepos(String realmName, Set names) throws AMConsoleException
Deletes ID Repo objects.- Specified by:
deleteIDReposin interfaceIDRepoModel- Parameters:
realmName- Name of Realm.names- Set of ID Repo names to be deleted.- Throws:
AMConsoleException- if object cannot be deleted.
-
editIDRepo
public void editIDRepo(String realmName, String idRepoName, Map values) throws AMConsoleException
Edit ID Repo object.- Specified by:
editIDRepoin interfaceIDRepoModel- Parameters:
realmName- Name of Realm.idRepoName- Name of ID Repo.values- Map of attribute name to set of values.- Throws:
AMConsoleException- if object cannot be created.
-
getIDRepoType
public String getIDRepoType(String realmName, String idRepoName) throws AMConsoleException
Returns ID Repo Type of an object.- Specified by:
getIDRepoTypein interfaceIDRepoModel- Parameters:
realmName- Name of Realm.idRepoName- Name of ID Repo.- Returns:
- ID Repo Type of an object.
- Throws:
AMConsoleException- if type cannot be determined.
-
loadIdRepoSchema
public void loadIdRepoSchema(String idRepoName, String realm, jakarta.servlet.ServletContext servletCtx) throws AMConsoleException
- Specified by:
loadIdRepoSchemain interfaceIDRepoModel- Throws:
AMConsoleException
-
-