Interface AgentsModel

    • Method Detail

      • getAgentNames

        int getAgentNames​(String realmName,
                          Set setTypes,
                          String pattern,
                          Set results)
                   throws AMConsoleException
        Returns agent names.
        Parameters:
        realmName - Realm where agents reside.
        setTypes - Agent Types.
        pattern - Search Pattern.
        results - Set to contains the results.
        Returns:
        error code.
        Throws:
        AMConsoleException - if result cannot be returned.
      • getAgentGroupNames

        int getAgentGroupNames​(String realmName,
                               Set setTypes,
                               String pattern,
                               Set results)
                        throws AMConsoleException
        Returns agent group names.
        Parameters:
        realmName - Realm where agent groups reside.
        setTypes - Agent Types.
        pattern - Search Pattern.
        results - Set to contains the results.
        Returns:
        error code.
        Throws:
        AMConsoleException - if result cannot be returned.
      • createAgentLocal

        void createAgentLocal​(String realmName,
                              String name,
                              String type,
                              String password,
                              String agentURL)
                       throws AMConsoleException
        Creates localized agent.
        Parameters:
        realmName - Realm where agent resides.
        name - Name of agent.
        type - Type of agent.
        password - Password of agent.
        agentURL - Agent URL.
        Throws:
        AMConsoleException - if agent cannot be created.
      • createAgent

        void createAgent​(String realmName,
                         String name,
                         String type,
                         String password,
                         String choice)
                  throws AMConsoleException
        Creates agent.
        Parameters:
        realmName - Realm where agent resides.
        name - Name of agent.
        type - Type of agent.
        password - Password of agent.
        choice - Choice of type of configuartion.
        Throws:
        AMConsoleException - if agent cannot be created.
      • createAgent

        void createAgent​(String realmName,
                         String name,
                         String type,
                         String password,
                         String serverURL,
                         String agentURL)
                  throws AMConsoleException
        Creates agent.
        Parameters:
        realmName - Realm where agent resides.
        name - Name of agent.
        type - Type of agent.
        password - Password of agent.
        serverURL - Server URL.
        agentURL - Agent URL.
        Throws:
        AMConsoleException - if agent cannot be created.
      • createAgentGroup

        void createAgentGroup​(String realmName,
                              String name,
                              String type)
                       throws AMConsoleException
        Creates agent group.
        Parameters:
        realmName - Realm where agent group resides.
        name - Name of agent group.
        type - Type of agent group.
        Throws:
        AMConsoleException - if agent group cannot be created.
      • createAgentGroup

        void createAgentGroup​(String realmName,
                              String name,
                              String type,
                              String serverURL,
                              String agentURL)
                       throws AMConsoleException
        Creates agent group.
        Parameters:
        realmName - Realm where agent group resides.
        name - Name of agent group.
        type - Type of agent group.
        serverURL - Server URL.
        agentURL - Agent URL.
        Throws:
        AMConsoleException - if agent group cannot be created.
      • deleteAgents

        void deleteAgents​(String realmName,
                          Set agents)
                   throws AMConsoleException
        Deletes agents.
        Parameters:
        realmName - Realm where agent resides.
        agents - Set of agent names to be deleted.
        Throws:
        AMConsoleException - if agents cannot be deleted.
      • deleteAgentGroups

        void deleteAgentGroups​(String realmName,
                               Set agentGroups)
                        throws AMConsoleException
        Deletes agent groups.
        Parameters:
        realmName - Realm where agent group resides.
        agentGroups - Set of agent group names to be deleted.
        Throws:
        AMConsoleException - if agents cannot be deleted.
      • getAgentGroup

        String getAgentGroup​(String realmName,
                             String universalId)
                      throws AMConsoleException
        Returns the group of which agent belongs to.
        Parameters:
        realmName - Realm where agent group resides.
        universalId - Universal ID of the agent.
        Returns:
        the group of which agent belongs to.
        Throws:
        AMConsoleException - if object cannot located.
      • getAgentGroupId

        String getAgentGroupId​(String realmName,
                               String universalId)
                        throws AMConsoleException
        Returns the group of which agent belongs to.
        Parameters:
        realmName - Realm where agent group resides.
        universalId - Universal ID of the agent.
        Returns:
        the group of which agent belongs to.
        Throws:
        AMConsoleException - if object cannot located.
      • getAttributeValues

        Map getAttributeValues​(String realmName,
                               String universalId,
                               boolean withInheritValues)
                        throws AMConsoleException
        Returns attribute values of an agent or agent group.
        Parameters:
        realmName - Realm where agent or agent group resides.
        universalId - Universal ID of the agent/agent group.
        withInheritValues - true to include inherited values.
        Returns:
        attribute values of an agent or agent group.
        Throws:
        AMConsoleException - if object cannot located.
      • getGroupAttributeValues

        Map getGroupAttributeValues​(String realmName,
                                    String groupName)
                             throws AMConsoleException
        Returns attribute values of an agent group.
        Parameters:
        realmName - Realm where agent group resides.
        groupName - agent group.
        Returns:
        attribute values of an agent group.
        Throws:
        AMConsoleException - if object cannot located.
      • setAttributeValues

        void setAttributeValues​(String universalId,
                                Map values)
                         throws AMConsoleException
        Modifies agent or agent group attribute values.
        Parameters:
        universalId - Universal ID of the agent/agent group.
        values - attribute values of an agent or agent group.
        Throws:
        AMConsoleException - if object cannot located.
      • setGroup

        boolean setGroup​(String realmName,
                         String universalId,
                         String groupName)
                  throws AMConsoleException
        Modifies agent's group.
        Parameters:
        realmName - realm where agent resides.
        universalId - Universal ID of the agent.
        groupName - Name of group.
        Returns:
        true if group is set.
        Throws:
        AMConsoleException - if object cannot located.
      • getAuthenticationChains

        Set getAuthenticationChains()
                             throws AMConsoleException
        Returns all the authentication chains in a realm.
        Returns:
        all the authentication chains in a realm.
        Throws:
        AMConsoleException - if authentication chains cannot be returned.
      • getSecurityMechanisms

        Map getSecurityMechanisms​(String agentType)
        Returns a map of i18n key to supported security mechanism.
        Parameters:
        agentType - Type of agent.
        Returns:
        a map of i18n key to supported security mechanism.
      • getSTSConfigurations

        Map getSTSConfigurations()
        Returns map of secure token service configurations.
        Returns:
        map of secure token service configurations.
      • getDiscoveryConfigurations

        Map getDiscoveryConfigurations()
        Returns set of discovery configurations.
        Returns:
        set of discovery configurations.
      • getDisplayName

        String getDisplayName​(String universalId)
                       throws AMConsoleException
        Returns display name of an agent/group.
        Parameters:
        universalId - Universal ID of the agent/agent group.
        Returns:
        display name of an agent/group.
        Throws:
        AMConsoleException - if object cannot located.
      • isAgentGroup

        boolean isAgentGroup​(String universalId)
        Returns true if the identity if an agent group.
        Parameters:
        universalId - Universal ID of the agent/agent group.
        Returns:
        true if the identity if an agent group.
      • getInheritedPropertyNames

        Set getInheritedPropertyNames​(String realmName,
                                      String universalId)
        Returns a set of inherited property names.
        Parameters:
        realmName - Realm where agent resides
        universalId - Universal ID of the agent.
        Returns:
        a set of inherited property names
      • getAttributeSchemas

        Map getAttributeSchemas​(String agentType,
                                Collection attributeNames)
        Returns attribute schemas of a given set of attributes.
        Parameters:
        agentType - Agent type.
        Returns:
        attribute schemas of a given set of attributes.
      • updateAgentConfigInheritance

        void updateAgentConfigInheritance​(String universalId,
                                          Map inherit)
                                   throws AMConsoleException
        Updates inheritance setting.
        Parameters:
        universalId - Universal ID of the agent.
        inherit - Map of attribute name to either "1" or "0". "1" to inherit and "0" not.
        Throws:
        AMConsoleException - if update failed.
      • getAgentGroupValues

        Map getAgentGroupValues​(String realm,
                                String agentId,
                                Set attrNames)
                         throws AMConsoleException
        Returns attribute values of agent's group.
        Parameters:
        realm - Realm where agent group resides
        agentId - Universal Id of the agent.
        attrNames - Attribute Names of interests.
        Returns:
        attribute values of agent's group.
        Throws:
        AMConsoleException - if unable to get the attribute values.
      • getAgentGroupMembers

        Set getAgentGroupMembers​(String agentId)
                          throws AMConsoleException
        Returns a set of members of an agent group.
        Parameters:
        agentId - Universal Id of the agent group.
        Throws:
        AMConsoleException - if members cannot be returned.
      • getTokenConversionTypes

        List getTokenConversionTypes()
        Returns Token Conversion Types.
        Returns:
        Token Conversion Types.
      • isCentralized

        boolean isCentralized​(String uid)
        Returns true if repository is centralized.
        Parameters:
        uid - Agent's universal ID.
        Returns:
        true if repository is centralized.