Class MAPModelBase
- java.lang.Object
-
- com.sun.identity.console.base.model.AMModelBase
-
- com.sun.identity.console.service.model.MAPModelBase
-
- All Implemented Interfaces:
AMAdminConstants,AMModel,MAPModel
- Direct Known Subclasses:
MAPCreateDeviceModelImpl,MAPDeviceProfileModelImpl,MAPServiceModelImpl
public abstract class MAPModelBase extends AMModelBase implements MAPModel
-
-
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.service.model.MAPModel
ADDITIONAL_PROPERTIES_CLASSIFICAIION, ATTRIBUTE_NAME_CLIENT_TYPE, ATTRIBUTE_NAME_PARENT_TYPE, ATTRIBUTE_NAME_USER_AGENT, DEFAULT_PROFILE_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBeDeleted(String clientType)Returns true if the client can be deleted.protected static Stringcanonicalize(String str)Canonicalizes un-support characters in LDAP DN.protected SetgetAdditionalPropertyValues(String clientType)protected AMClientCapDatagetClientCapDataExtInstance()protected AMClientCapDatagetClientCapDataInstance(String clientType)protected AMClientCapDatagetClientCapDataIntInstance()StringgetClientTypePrefix()Returns prefix for client type.protected AttributeSchemagetDeviceAttributeSchema(String name)StringgetDeviceNamePrefix()Returns prefix for device user agent.StringgetDeviceUserAgent(String clientType)Returns device user agent of a client.protected StringgetL10NStrFromSvcResourceBundle(String key)SetgetStyleNames(String name)Returns styles of a profile.booleanhasDefaultSetting(String clientType)Returns true if the given client is customizable.protected static booleanisClientTypeValid(String userAgent)Returns true if an user agent name is valid.booleanisCustomizable(String clientType)Returns true if the given client is customizable.protected booleanisUserAgentSet(String clientType)-
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
-
-
-
-
Method Detail
-
canonicalize
protected static String canonicalize(String str)
Canonicalizes un-support characters in LDAP DN.- Parameters:
str- string to be canonicalized.- Returns:
- canonicalized string.
-
isClientTypeValid
protected static boolean isClientTypeValid(String userAgent)
Returns true if an user agent name is valid.- Parameters:
userAgent- user agent name.- Returns:
- true if
userAgentis valid.
-
getClientCapDataIntInstance
protected AMClientCapData getClientCapDataIntInstance()
-
getClientCapDataExtInstance
protected AMClientCapData getClientCapDataExtInstance()
-
getClientCapDataInstance
protected AMClientCapData getClientCapDataInstance(String clientType)
-
getStyleNames
public Set getStyleNames(String name)
Returns styles of a profile.- Specified by:
getStyleNamesin interfaceMAPModel- Parameters:
name- Name of profile.- Returns:
- styles of a profile.
-
getDeviceAttributeSchema
protected AttributeSchema getDeviceAttributeSchema(String name)
-
isUserAgentSet
protected boolean isUserAgentSet(String clientType)
-
isCustomizable
public boolean isCustomizable(String clientType)
Returns true if the given client is customizable.- Specified by:
isCustomizablein interfaceMAPModel- Parameters:
clientType- Client Type.- Returns:
- true if the given client is customizable.
-
hasDefaultSetting
public boolean hasDefaultSetting(String clientType)
Returns true if the given client is customizable.- Specified by:
hasDefaultSettingin interfaceMAPModel- Parameters:
clientType- Client Type.- Returns:
- true if the given client is customizable.
-
canBeDeleted
public boolean canBeDeleted(String clientType)
Returns true if the client can be deleted.- Specified by:
canBeDeletedin interfaceMAPModel- Parameters:
clientType- Client Type.- Returns:
- true if the client can be deleted.
-
getDeviceUserAgent
public String getDeviceUserAgent(String clientType)
Returns device user agent of a client.- Specified by:
getDeviceUserAgentin interfaceMAPModel- Parameters:
clientType- Client Type.- Returns:
- device user agent of a client.
-
getClientTypePrefix
public String getClientTypePrefix()
Returns prefix for client type.- Specified by:
getClientTypePrefixin interfaceMAPModel- Returns:
- prefix for client type.
-
getDeviceNamePrefix
public String getDeviceNamePrefix()
Returns prefix for device user agent.- Specified by:
getDeviceNamePrefixin interfaceMAPModel- Returns:
- prefix for device user agent.
-
-