<p> AgentManager handles creating, deleting, and getting Agents and Groups.
Group is a subclass of Agent. Groups contain members. Group members are Agents or other Groups. </p>
<p> All implementations of OsidManager (manager) provide methods for accessing and manipulating the various objects defined in the OSID package. A manager defines an implementation of an OSID. All other OSID objects come either directly or indirectly from the manager. New instances of the OSID objects are created either directly or indirectly by the manager. Because the OSID objects are defined using interfaces, create methods must be used instead of the new operator to create instances of the OSID objects. Create methods are used both to instantiate and persist OSID objects. Using the OsidManager class to define an OSID's implementation allows the application to change OSID implementations by changing the OsidManager package name used to load an implementation. Applications developed using managers permit OSID implementation substitution without changing the application source code. As with all managers, use the OsidLoader to load an implementation of this interface. </p>
Located in /harmoni/core/oki2/agent/HarmoniAgentManager.class.php (line 58)
OsidManager | --AgentManager | --HarmoniAgentManager
Whether to use plain agents or editable agents. 'Flavor' is used because
it would be confusing to use the word 'type' because of the specific use of the OSID Type concept
Constructor. Set up any database connections needed.
Assign the configuration of this Manager. Valid configuration options are as
follows: database_index integer database_name string
Assign the context of this OsidManager.
* WARNING: NOT IN OSID -- USE AT YOUR OWN RISK Change the flavor between editable agent and non editable agent
Create an Agent with the display name, Type, and Properties specified.
Whether a HarmoniAgent or HarmoniEditableAgent is created depends on the flavor.
Create a Group with the display name, Type, description, and Properties specified. All but description are immutable.
Delete the Agent with the specified unique Id.
Delete the Group with the specified unique Id.
Get the Agent with the specified unique Id. Getting an Agent by name is not supported since names are not guaranteed to be unique.
* WARNING: NOT IN OSID -- USE AT YOUR OWN RISK Returns the agent flavor
Returns an Agent or Group object, depending on what type of agent the passed id refers to.
WARNING: NOT IN OSID - This method is not part of the OSIDs as of Version 2.0
Get all the Agents. The returned iterator provides access to the Agents one at a time. Iterators have a method hasNextAgent() which returns
if there is an Agent available and a method nextAgent() which returns the next Agent.
- true
if there is an Agent available and a method nextAgent() which returns the next Agent.
- true
Get all the Agents with the specified search criteria and search Type.
Get all the Agents of the specified Type.
Get all the agent search Types supported by this implementation.
Get all the agent Types. The returned iterator provides access to the agent Types from this implementation one at a time. Iterators have a method hasNext() which returns true if there is an agent Type available and a method next() which returns the next agent Type.
Gets the Group with the specified unique Id. Getting a Group by name is not supported since names are not guaranteed to be unique.
Get all the Groups. Note since Groups subclass Agents, we are returning
an AgentIterator and there is no GroupIterator. the returned iterator provides access to the Groups one at a time. Iterators have a method hasNextAgent() which returns true if there is a Group available and a method nextAgent() which returns the next Group.
Get all the groups with the specified search criteria and search Type.
Get all the Groups of the specified Type.
Get all the group search types supported by this implementation.
Get all the group Types. The returned iterator provides access to the group Types from this implementation one at a time. Iterators have a method hasNext() which returns true if there is a group Type available and a method next() which returns the next group Type.
Return context of this OsidManager.
Get all the property Types. The returned iterator provides access to
the property Types from this implementation one at a time. Iterators have a method hasNext() which returns true if there is another property Type available and a method next() which returns the next property Type.
Return TRUE if the Id specified corresponds to an agent.
WARNING: NOT IN OSID - This method is not part of the OSIDs as of Version 2.0
Return TRUE if the Id specified corresponds to an group.
WARNING: NOT IN OSID - This method is not part of the OSIDs as of Version 2.0
Inherited From AgentManager
AgentManager::createAgent()
AgentManager::createGroup()
AgentManager::deleteAgent()
AgentManager::deleteGroup()
AgentManager::getAgent()
AgentManager::getAgents()
AgentManager::getAgentsBySearch()
AgentManager::getAgentsByType()
AgentManager::getAgentSearchTypes()
AgentManager::getAgentTypes()
AgentManager::getGroup()
AgentManager::getGroups()
AgentManager::getGroupsBySearch()
AgentManager::getGroupsByType()
AgentManager::getGroupSearchTypes()
AgentManager::getGroupTypes()
AgentManager::getPropertyTypes()
Inherited From OsidManager
OsidManager::assignConfiguration()
OsidManager::assignOsidContext()
OsidManager::getOsidContext()
OsidManager::osidVersion_2_0()
Documentation generated on Wed, 19 Sep 2007 10:23:39 -0400 by phpDocumentor 1.3.0RC3