Class RMRealmModelImpl

    • Constructor Detail

      • RMRealmModelImpl

        public RMRealmModelImpl​(jakarta.servlet.http.HttpServletRequest req,
                                Map map)
        Creates a simple model using default resource bundle.
        Parameters:
        req - HTTP Servlet Request
        map - of user information
    • Method Detail

      • createSubRealm

        public void createSubRealm​(String parentRealm,
                                   String name,
                                   Map attrValues)
                            throws AMConsoleException
        Creates sub realm.
        Specified by:
        createSubRealm in interface RMRealmModel
        Parameters:
        parentRealm - Parent realm name.
        name - Name of new sub realm.
        attrValues - Map of attribute name to a set of attribute values.
        Throws:
        AMConsoleException - if sub realm cannot be created.
      • getDefaultValues

        public Map getDefaultValues()
        Returns Map of default attribute values used when creating new realms. This only returns default values for single choice type attributes. Returning other default values runs the risk of violating the attribute uniqueness plugin while creating a new realm.
        Specified by:
        getDefaultValues in interface RMRealmModel
        Returns:
        attribute values.
      • getDataMap

        public Map getDataMap()
        Returns Map of attribute name to empty set of values.
        Specified by:
        getDataMap in interface RMRealmModel
        Returns:
        attribute values.