Interface AgentsModel
-
- All Superinterfaces:
AMAdminConstants,AMModel
- All Known Implementing Classes:
AgentsModelImpl
public interface AgentsModel extends AMModel
Agent Configuration Model.
-
-
Field Summary
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateAgent(String realmName, String name, String type, String password, String choice)Creates agent.voidcreateAgent(String realmName, String name, String type, String password, String serverURL, String agentURL)Creates agent.voidcreateAgentGroup(String realmName, String name, String type)Creates agent group.voidcreateAgentGroup(String realmName, String name, String type, String serverURL, String agentURL)Creates agent group.voidcreateAgentLocal(String realmName, String name, String type, String password, String agentURL)Creates localized agent.voiddeleteAgentGroups(String realmName, Set agentGroups)Deletes agent groups.voiddeleteAgents(String realmName, Set agents)Deletes agents.StringgetAgentGroup(String realmName, String universalId)Returns the group of which agent belongs to.StringgetAgentGroupId(String realmName, String universalId)Returns the group of which agent belongs to.SetgetAgentGroupMembers(String agentId)Returns a set of members of an agent group.intgetAgentGroupNames(String realmName, Set setTypes, String pattern, Set results)Returns agent group names.MapgetAgentGroupValues(String realm, String agentId, Set attrNames)Returns attribute values of agent's group.intgetAgentNames(String realmName, Set setTypes, String pattern, Set results)Returns agent names.StringgetAgentType(AMIdentity amid)Returns agent type.MapgetAttributeSchemas(String agentType, Collection attributeNames)Returns attribute schemas of a given set of attributes.MapgetAttributeValues(String realmName, String universalId, boolean withInheritValues)Returns attribute values of an agent or agent group.SetgetAuthenticationChains()Returns all the authentication chains in a realm.MapgetDiscoveryConfigurations()Returns set of discovery configurations.StringgetDisplayName(String universalId)Returns display name of an agent/group.MapgetGroupAttributeValues(String realmName, String groupName)Returns attribute values of an agent group.SetgetInheritedPropertyNames(String realmName, String universalId)Returns a set of inherited property names.MapgetSecurityMechanisms(String agentType)Returns a map of i18n key to supported security mechanism.MapgetSTSConfigurations()Returns map of secure token service configurations.ListgetTokenConversionTypes()Returns Token Conversion Types.booleanisAgentGroup(String universalId)Returnstrueif the identity if an agent group.booleanisCentralized(String uid)Returnstrueif repository is centralized.voidsetAttributeValues(String universalId, Map values)Modifies agent or agent group attribute values.booleansetGroup(String realmName, String universalId, String groupName)Modifies agent's group.voidupdateAgentConfigInheritance(String universalId, Map inherit)Updates inheritance setting.-
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
-
-
-
-
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-trueto 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:
trueif 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)
Returnstrueif the identity if an agent group.- Parameters:
universalId- Universal ID of the agent/agent group.- Returns:
trueif 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 residesuniversalId- 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 residesagentId- 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.
-
getAgentType
String getAgentType(AMIdentity amid) throws AMConsoleException
Returns agent type.- Parameters:
amid- Identity Object.- Returns:
- agent type.
- Throws:
AMConsoleException- if agent type cannot be obtained.
-
getTokenConversionTypes
List getTokenConversionTypes()
Returns Token Conversion Types.- Returns:
- Token Conversion Types.
-
isCentralized
boolean isCentralized(String uid)
Returnstrueif repository is centralized.- Parameters:
uid- Agent's universal ID.- Returns:
trueif repository is centralized.
-
-