|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cometd.server.DefaultSecurityPolicy
org.coweb.CowebSecurityPolicy
org.coweb.admin.security.SecurityPolicy
public class SecurityPolicy
| Constructor Summary | |
|---|---|
SecurityPolicy()
|
|
| Method Summary | |
|---|---|
boolean |
canAdminRequest(String username,
String key,
boolean collab)
Called when a user preps a session. |
boolean |
canInvokeServiceRequest(String username,
String sessionid,
String serviceName)
Called when a user attempts to send a private message to a bot. |
boolean |
canSubscribeService(String username,
String sessionid,
String serviceName)
Called when a user attempts to subscribe to a service bot. |
boolean |
canSubscribeToSession(String username,
String sessionid)
Called when a user attempts to join a session. |
boolean |
canSubscribeToSession(String username,
String key,
boolean collab)
Called when a user attempts to join a session. |
void |
setAdmin(Admin admin)
|
| Methods inherited from class org.coweb.CowebSecurityPolicy |
|---|
canHandshake |
| Methods inherited from class org.cometd.server.DefaultSecurityPolicy |
|---|
canCreate, canPublish, canSubscribe |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityPolicy()
| Method Detail |
|---|
public void setAdmin(Admin admin)
public boolean canAdminRequest(String username,
String key,
boolean collab)
username - User attempting the prep requestkey - Conference Keycollab - If this conference is collaborative
public boolean canSubscribeToSession(String username,
String key,
boolean collab)
username - User attempting to join a session.key - Coweb key associated with this session.collab - true is this session is collaborative.
public boolean canSubscribeToSession(String username,
String sessionid)
username - User attempting to join a session.sessionid - Id of the session
public boolean canInvokeServiceRequest(String username,
String sessionid,
String serviceName)
username - User attempting to make the request.sessionid - Id of the sessionserviceName - Name of the service the bot provides.
public boolean canSubscribeService(String username,
String sessionid,
String serviceName)
username - User attempting to subscribesessionid - Id of the sessionserviceName - Name of the service the bot provides.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||