Interface AMModel

    • Field Detail

      • CONSOLE_PAGING_SIZE_ATTR

        static final String CONSOLE_PAGING_SIZE_ATTR
        Name of paging page size limit.
        See Also:
        Constant Field Values
      • CONSOLE_SEARCH_RESULT_LIMIT_ATTR

        static final String CONSOLE_SEARCH_RESULT_LIMIT_ATTR
        Name of maximum search result.
        See Also:
        Constant Field Values
      • CONSOLE_SEARCH_TIME_LIMIT_ATTR

        static final String CONSOLE_SEARCH_TIME_LIMIT_ATTR
        Name of maximum search time.
        See Also:
        Constant Field Values
      • DEFAULT_PAGE_SIZE

        static final int DEFAULT_PAGE_SIZE
        Default paging size.
        See Also:
        Constant Field Values
      • DEFAULT_SEARCH_RESULT_LIMIT

        static final int DEFAULT_SEARCH_RESULT_LIMIT
        Default search results limit.
        See Also:
        Constant Field Values
      • DEFAULT_SEARCH_TIME_LIMIT

        static final int DEFAULT_SEARCH_TIME_LIMIT
        Default search time out limit.
        See Also:
        Constant Field Values
    • Method Detail

      • getClientType

        String getClientType()
        Returns client type from SSO token
        Returns:
        client type
      • getRandomString

        String getRandomString()
        Returns random string
        Returns:
        random string
      • getUserLocale

        Locale getUserLocale()
        Returns the preferred locale of currently logged in user.
        Returns:
        java.util.Locale of currently logged in user.
      • getUserSSOToken

        SSOToken getUserSSOToken()
        Returns user's single sign on token.
        Returns:
        user's single sign on token.
      • getUserDN

        String getUserDN()
        Returns DN of currently logged in user.
        Returns:
        DN of currently logged in user.
      • getUserName

        String getUserName()
        Returns currently logged in user.
        Returns:
        currently logged in user.
      • getUniversalID

        String getUniversalID()
        Returns universal ID of user.
        Returns:
        Universal ID of user.
      • getLocalizedString

        String getLocalizedString​(String key)
        Returns localized string.
        Parameters:
        key - Key of resource string.
        Returns:
        localized string.
      • getPageSize

        int getPageSize()
        Returns paging page size from template if one exists otherwise page size that is defined globally.
        Returns:
        paging page size
      • getErrorString

        String getErrorString​(Throwable ex)
        Returns a localized error message from an exception. If the exception is of type AMException the error code and any possible arguments will be extracted from the exception and the message will be generated from the code and arguments. All other exception types will return the message from Exception.getMessage.
        Parameters:
        ex - exception
        Returns:
        String error message localized to users locale
      • getLocalizedServiceName

        String getLocalizedServiceName​(String service)
        Returns the localized service name.
        Parameters:
        service - Name of service.
        Returns:
        the localized service name.
      • getServicePropertiesViewBeanURL

        String getServicePropertiesViewBeanURL​(String serviceName)
        Returns properties view bean URL of a service.
        Parameters:
        serviceName - Name of service.
        Returns:
        properties view bean URL of a service. Returns null if this URL is not defined in the schema.
      • getStartDN

        String getStartDN()
        Gets start DN
        Returns:
        start DN
      • getStartDSDN

        String getStartDSDN()
        Returns directory managemenet start DN
        Returns:
        start DN
      • getSupportedEntityTypes

        Map getSupportedEntityTypes​(String realmName)
        Returns a map of suppported entity type to its localized name.
        Parameters:
        realmName - Name of Realm.
        Returns:
        a map of suppported entity type to its localized name.
      • getSupportedAgentTypes

        Map getSupportedAgentTypes()
        Returns a map of supported agent type to its localized name.
        Returns:
        a map of supported agent type to its localized name.
      • logEvent

        void logEvent​(String id,
                      String[] data)
        Writes log event.
        Parameters:
        id - Log Message ID.
        data - Log Data.
      • getLocationDN

        String getLocationDN()
      • setLocationDN

        void setLocationDN​(String location)
      • getConsoleDirectory

        String getConsoleDirectory()
      • ignoreUserProfile

        boolean ignoreUserProfile()
        Returns true if the user profile is to be ignored by the console. The authentication service sets a property in the users session based on the properties in the core authentication service.
        Returns:
        true if the user profile should be ignored.
      • getUserDisplayName

        String getUserDisplayName​(AMIdentity id)
        Returns the formated display name for user identities. This is needed to handle the situation where the attribute displayed for the user is not the same as the naming attribute. It is also possible that the attribute being displayed has multiple values. In the multiple value situation each of the values will be separated by a semicolon ";".
        Parameters:
        id - identity of the user being displayed.
        Returns:
        String value of the attribute to be displayed.
      • getSpecialUsers

        Set getSpecialUsers​(String realmName)
        Returns a set of special user identities. This set of identities typically should not be displayed in the console.
        Parameters:
        realmName - Name of Realm.
        Returns:
        a list of special user identities that cannot be displayed.
      • isAMSDKEnabled

        boolean isAMSDKEnabled()
        Returns true if server is running with AMSDK repo enabled.
        Returns:
        true if server is running with AMSDK repo enabled.
      • isAmadminUser

        boolean isAmadminUser​(AMIdentity amid)
        Returns true if identity is amadmin user.
        Parameters:
        amid - user object.
        Returns:
        true if identity is amadmin user.