org.sakaiproject.metaobj.shared.mgt
Interface AgentManager

All Known Implementing Classes:
AgentManager

public interface AgentManager


Method Summary
 Agent createAgent(Agent agent)
           
 void deleteAgent(Agent agent)
           
 List findByProperty(String type, Object object)
          if type is null return all records
 Agent getAdminAgent()
           
 Agent getAgent(Id id)
           
 Agent getAgent(String username)
           
 Agent getAnonymousAgent()
           
 Agent getTempWorksiteRole(String roleName, String siteId)
           
 List getWorksiteAgents(String siteId)
           
 Agent getWorksiteRole(String roleName)
           
 Agent getWorksiteRole(String roleName, String siteId)
           
 List getWorksiteRoles(String siteId)
           
 void updateAgent(Agent agent)
           
 

Method Detail

getAgent

public Agent getAgent(Id id)
Parameters:
id -
Returns:

getAgent

public Agent getAgent(String username)

getWorksiteRole

public Agent getWorksiteRole(String roleName)

getWorksiteRole

public Agent getWorksiteRole(String roleName,
                             String siteId)

getTempWorksiteRole

public Agent getTempWorksiteRole(String roleName,
                                 String siteId)

getAnonymousAgent

public Agent getAnonymousAgent()

getAdminAgent

public Agent getAdminAgent()

findByProperty

public List findByProperty(String type,
                           Object object)
if type is null return all records

Parameters:
type - added typed list
object -
Returns:

createAgent

public Agent createAgent(Agent agent)
Parameters:
agent -
Returns:

deleteAgent

public void deleteAgent(Agent agent)
Parameters:
agent -

updateAgent

public void updateAgent(Agent agent)

getWorksiteAgents

public List getWorksiteAgents(String siteId)
Parameters:
siteId -
Returns:
list of agents that are participants in the given siteId

getWorksiteRoles

public List getWorksiteRoles(String siteId)
Parameters:
siteId -
Returns:
list of roles for the given siteId. The list is a collection of type Agent.