Agent

From Harmoni

Jump to: navigation, search

Harmoni's Agent implementation and its Authentication implementation are coupled together by each having a dependency on AuthNMethod and AgentTokenMapping subsystems.

Configuration example:

// :: Set up the AgentManager ::
	$configuration = new ConfigurationProperties;
	$configuration->addProperty('hierarchy_id', "edu.middlebury.authorization.hierarchy");
	// default agent Flavor is one that can be editted
	$configuration->addProperty('defaultAgentFlavor', "HarmoniEditableAgent");
	$configuration->addProperty('database_index', $dbID);
	$configuration->addProperty('database_name', $dbName);
	Services::startManagerAsService("AgentManager", $context, $configuration);

// :: Set up PropertyManager ::
	//the property manager operates in the same context as the AgentManager and is more or less an adjunct to it
	$configuration->addProperty('database_index', $dbID);
	$configuration->addProperty('database_name', $dbName);
	Services::startManagerAsService("PropertyManager", $context, $configuration);
Personal tools
applications and initiatives