org.sakaiproject.metaobj.security.impl.sakai
Class AgentManager

java.lang.Object
  extended byorg.sakaiproject.metaobj.security.impl.sakai.SecurityBase
      extended byorg.sakaiproject.metaobj.security.impl.sakai.AgentManager
All Implemented Interfaces:
AgentManager

public class AgentManager
extends SecurityBase
implements AgentManager


Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
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)
           
protected  Agent getAgentInternal(String username)
           
 Agent getAnonymousAgent()
           
 AgentManager getBaseAgentManager()
           
protected  UserDirectoryService getDirectoryService()
           
 List getListeners()
           
 PasswordGenerator getPasswordGenerator()
           
protected  Agent getRole(String username)
           
 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 setBaseAgentManager(AgentManager baseAgentManager)
           
 void setListeners(List listeners)
           
 void setPasswordGenerator(PasswordGenerator passwordGenerator)
           
 void updateAgent(Agent agent)
           
 
Methods inherited from class org.sakaiproject.metaobj.security.impl.sakai.SecurityBase
convertRole, getAgentHome, getOspiIdManager, morphAgent, setAgentHome, setOspiIdManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final transient org.apache.commons.logging.Log logger
Constructor Detail

AgentManager

public AgentManager()
Method Detail

getAgent

public Agent getAgent(Id id)
Specified by:
getAgent in interface AgentManager
Parameters:
id -
Returns:

getAgent

public Agent getAgent(String username)
Specified by:
getAgent in interface AgentManager

getWorksiteRole

public Agent getWorksiteRole(String roleName)
Specified by:
getWorksiteRole in interface AgentManager

getWorksiteRoles

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

getWorksiteRole

public Agent getWorksiteRole(String roleName,
                             String siteId)
Specified by:
getWorksiteRole in interface AgentManager

getTempWorksiteRole

public Agent getTempWorksiteRole(String roleName,
                                 String siteId)
Specified by:
getTempWorksiteRole in interface AgentManager

getAgentInternal

protected Agent getAgentInternal(String username)
                          throws IdUnusedException
Throws:
IdUnusedException

getRole

protected Agent getRole(String username)
                 throws IdUnusedException
Throws:
IdUnusedException

getWorksiteAgents

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

getAnonymousAgent

public Agent getAnonymousAgent()
Specified by:
getAnonymousAgent in interface AgentManager

getAdminAgent

public Agent getAdminAgent()
Specified by:
getAdminAgent in interface AgentManager

findByProperty

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

Specified by:
findByProperty in interface AgentManager
Parameters:
type - added typed list
object -
Returns:

createAgent

public Agent createAgent(Agent agent)
Specified by:
createAgent in interface AgentManager
Parameters:
agent -
Returns:

deleteAgent

public void deleteAgent(Agent agent)
Specified by:
deleteAgent in interface AgentManager
Parameters:
agent -

updateAgent

public void updateAgent(Agent agent)
Specified by:
updateAgent in interface AgentManager

getDirectoryService

protected UserDirectoryService getDirectoryService()

getBaseAgentManager

public AgentManager getBaseAgentManager()

setBaseAgentManager

public void setBaseAgentManager(AgentManager baseAgentManager)

getListeners

public List getListeners()

setListeners

public void setListeners(List listeners)

getPasswordGenerator

public PasswordGenerator getPasswordGenerator()

setPasswordGenerator

public void setPasswordGenerator(PasswordGenerator passwordGenerator)