|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.ext.gae.GaeEnroler
public class GaeEnroler
Enroler that adds a Restlet Role object to the client info if the GAE API reports that the user is an administrator.
Constructor Summary | |
---|---|
GaeEnroler()
Default constructor. |
|
GaeEnroler(Role adminRole)
Constructor. |
|
GaeEnroler(String adminRoleName)
Constructor. |
|
GaeEnroler(String adminRoleName,
String adminRoleDescription)
Constructor. |
Method Summary | |
---|---|
void |
enrole(ClientInfo info)
Adds admin role object if user is an administrator according to Google App Engine UserService. |
Role |
getAdminRole()
Returns the administrator role. |
void |
setAdminRole(Role adminRole)
Sets the administrator role. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GaeEnroler()
public GaeEnroler(Role adminRole)
adminRole
- The administrator role.public GaeEnroler(String adminRoleName)
adminRoleName
- The name of the administrator role.public GaeEnroler(String adminRoleName, String adminRoleDescription)
adminRoleName
- The name of the administrator role.adminRoleDescription
- The description of the administrator role.Method Detail |
---|
public void enrole(ClientInfo info)
enrole
in interface Enroler
Enroler.enrole(org.restlet.data.ClientInfo)
public Role getAdminRole()
public void setAdminRole(Role adminRole)
adminRole
- The administrator role.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |