|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.tool.assessment.facade.AgentFacade
public class AgentFacade
Description: Facade for agent. Uses helper to determine integration context implementation.
Sakai Project Copyright (c) 2005
| Constructor Summary | |
|---|---|
AgentFacade()
Create AgentFacade and have it look up its own agentString (id). |
|
AgentFacade(String agentId)
Create AgentFacade for agent Id |
|
| Method Summary | |
|---|---|
static String |
createAnonymous()
Create anonymous user and return the anonymous user id. |
boolean |
equals(Object obj)
|
static AgentImpl |
getAgent()
Get an osid Agent implementation class instance. |
String |
getAgentInstanceString()
Get the agent string. |
static String |
getAgentString()
Get the agent string. |
static String |
getAnonymousId()
Get the anonymous user id. |
static String |
getCurrentSiteId()
Get the current site id. |
static String |
getCurrentSiteName()
Get the current site name. |
String |
getDisplayName()
Get the Agent display name for this agent. |
static String |
getDisplayName(String agentS)
Get the Agent display name. |
static String |
getDisplayNameByAgentId(String agentId)
Get the display name for a specific agent id string. |
static String |
getEid()
Get the current user's Eid. |
String |
getEidString()
Get the Eid String of an Agent. |
String |
getEmail()
Get the Agent last name. |
String |
getFirstName()
Get the Agent first name. |
String |
getIdString()
|
String |
getLastName()
Get the Agent last name. |
String |
getRole()
Get role for this agent. |
static String |
getRole(String agentString)
Get role for agent. |
static String |
getRoleForAgentAndSite(String agentString,
String siteId)
|
static String |
getSiteName(String siteId)
Get the site name. |
static Map |
getUserRolesFromContextRealm(Collection inUsers)
Get the anonymous user id. |
boolean |
isAccessViaUrl()
|
static boolean |
isFileUploadAvailable()
Deprecated. |
static boolean |
isIntegratedEnvironment()
Is this an integrated environment? |
static boolean |
isStandaloneEnvironment()
Is this a standlaone environment? |
void |
setAccessViaUrl(boolean accessViaUrl)
|
void |
setAgentInstanceString(String agentInstanceString)
|
void |
setIdString(String idString)
Change the agent string |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AgentFacade(String agentId)
agentId - the agent Idpublic AgentFacade()
| Method Detail |
|---|
public static AgentImpl getAgent()
public static String getAgentString()
public static String getEid()
public String getAgentInstanceString()
public String getEidString()
public static String getDisplayName(String agentS)
agentS - the Agent string.
public String getDisplayName()
public String getFirstName()
getFirstName in interface AgentDataIfcpublic String getLastName()
getLastName in interface AgentDataIfcpublic String getEmail()
public String getRole()
getRole in interface AgentDataIfcpublic static String getRole(String agentString)
agentString - the agent string.
public static String getCurrentSiteId()
public static String getCurrentSiteName()
public static String getSiteName(String siteId)
siteId - site id
public String getIdString()
getIdString in interface AgentDataIfcpublic static String getDisplayNameByAgentId(String agentId)
agentId - the agent id string.
public static String createAnonymous()
public static boolean isStandaloneEnvironment()
public static boolean isIntegratedEnvironment()
public static String getAnonymousId()
public void setIdString(String idString)
setIdString in interface AgentDataIfcidString - the id string.public static Map getUserRolesFromContextRealm(Collection inUsers)
public static String getRoleForAgentAndSite(String agentString,
String siteId)
public boolean isAccessViaUrl()
public void setAccessViaUrl(boolean accessViaUrl)
public void setAgentInstanceString(String agentInstanceString)
public static boolean isFileUploadAvailable()
public boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||