org.sakaiproject.metaobj.shared.model
Interface Agent

All Superinterfaces:
Principal, Serializable
All Known Subinterfaces:
OspRole, Person
All Known Implementing Classes:
AgentImpl, AgentWrapper, AnonymousAgent, RoleWrapper

public interface Agent
extends Serializable, Principal

Created by IntelliJ IDEA. User: John Ellis Date: Apr 8, 2004 Time: 5:21:55 PM To change this template use File | Settings | File Templates.


Field Summary
static String AGENT_SESSION_KEY
           
static String ROLE_ADMIN
           
static String ROLE_ANONYMOUS
           
static String ROLE_GUEST
           
static String ROLE_MEMEBER
           
static String ROLE_REVIEWER
           
 
Method Summary
 String getDisplayName()
           
 Id getId()
           
 Artifact getProfile()
           
 Object getProperty(String key)
           
 String getRole()
           
 List getWorksiteRoles()
           
 List getWorksiteRoles(String worksiteId)
           
 boolean isInitialized()
           
 boolean isInRole(String role)
           
 boolean isRole()
           
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Field Detail

AGENT_SESSION_KEY

public static final String AGENT_SESSION_KEY
See Also:
Constant Field Values

ROLE_MEMEBER

public static final String ROLE_MEMEBER
See Also:
Constant Field Values

ROLE_ADMIN

public static final String ROLE_ADMIN
See Also:
Constant Field Values

ROLE_REVIEWER

public static final String ROLE_REVIEWER
See Also:
Constant Field Values

ROLE_GUEST

public static final String ROLE_GUEST
See Also:
Constant Field Values

ROLE_ANONYMOUS

public static final String ROLE_ANONYMOUS
See Also:
Constant Field Values
Method Detail

getId

public Id getId()

getProfile

public Artifact getProfile()

getProperty

public Object getProperty(String key)

getDisplayName

public String getDisplayName()

isInRole

public boolean isInRole(String role)

isInitialized

public boolean isInitialized()

getRole

public String getRole()

getWorksiteRoles

public List getWorksiteRoles(String worksiteId)

getWorksiteRoles

public List getWorksiteRoles()

isRole

public boolean isRole()