org.sakaiproject.metaobj.security
Class AnonymousAgent

java.lang.Object
  extended byorg.sakaiproject.metaobj.security.AnonymousAgent
All Implemented Interfaces:
Agent, Principal, Serializable

public class AnonymousAgent
extends Object
implements Agent

Created by IntelliJ IDEA. User: John Ellis Date: May 26, 2004 Time: 10:36:46 AM To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Field Summary
static Id ANONYMOUS_AGENT_ID
           
 
Fields inherited from interface org.sakaiproject.metaobj.shared.model.Agent
AGENT_SESSION_KEY, ROLE_ADMIN, ROLE_ANONYMOUS, ROLE_GUEST, ROLE_MEMEBER, ROLE_REVIEWER
 
Constructor Summary
AnonymousAgent()
           
 
Method Summary
 String getDisplayName()
           
 Id getId()
           
 String getName()
          Returns the name of this principal.
 Artifact getProfile()
           
 Object getProperty(String key)
           
 String getRole()
           
 List getWorksiteRoles()
           
 List getWorksiteRoles(String worksiteId)
           
 boolean isInitialized()
           
 boolean isInRole(String role)
           
 boolean isRole()
           
 void setProfile(Artifact profile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Field Detail

ANONYMOUS_AGENT_ID

public static Id ANONYMOUS_AGENT_ID
Constructor Detail

AnonymousAgent

public AnonymousAgent()
Method Detail

getId

public Id getId()
Specified by:
getId in interface Agent

getProfile

public Artifact getProfile()
Specified by:
getProfile in interface Agent

setProfile

public void setProfile(Artifact profile)

getProperty

public Object getProperty(String key)
Specified by:
getProperty in interface Agent

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface Agent

isInRole

public boolean isInRole(String role)
Specified by:
isInRole in interface Agent

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface Agent

getRole

public String getRole()
Specified by:
getRole in interface Agent

getWorksiteRoles

public List getWorksiteRoles(String worksiteId)
Specified by:
getWorksiteRoles in interface Agent

getWorksiteRoles

public List getWorksiteRoles()
Specified by:
getWorksiteRoles in interface Agent

isRole

public boolean isRole()
Specified by:
isRole in interface Agent

getName

public String getName()
Returns the name of this principal.

Specified by:
getName in interface Principal
Returns:
the name of this principal.