|
Restlet Framework 2.2.3 Google App Engine |
|||||||||
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 request's
ClientInfo
if the GAE API reports that the user is an administrator.
Constructor Summary | |
---|---|
GaeEnroler()
Default constructor. |
|
GaeEnroler(Application application,
String adminRoleName)
Constructor. |
|
GaeEnroler(Application application,
String adminRoleName,
String adminRoleDescription)
Constructor. |
|
GaeEnroler(Role adminRole)
Constructor. |
|
GaeEnroler(String adminRoleName)
Deprecated. Use GaeEnroler(Application, String) instead. |
|
GaeEnroler(String adminRoleName,
String adminRoleDescription)
Deprecated. Use GaeEnroler(Application, String, String) instead. |
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(Application application, String adminRoleName)
application
- The parent application.adminRoleName
- The name of the administrator role.public GaeEnroler(Application application, String adminRoleName, String adminRoleDescription)
application
- The parent application.adminRoleName
- The name of the administrator role.adminRoleDescription
- The description of the administrator role.public GaeEnroler(Role adminRole)
adminRole
- The administrator role.@Deprecated public GaeEnroler(String adminRoleName)
GaeEnroler(Application, String)
instead.
adminRoleName
- The name of the administrator role.@Deprecated public GaeEnroler(String adminRoleName, String adminRoleDescription)
GaeEnroler(Application, String, String)
instead.
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.
|
Restlet Framework 2.2.3 Google App Engine |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |