|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.ProjectBrowserPageAuthentication
public class ProjectBrowserPageAuthentication
Implements authorization for all pages other than the home page. Users must sign in with their sensorbase email and password.
Field Summary |
---|
Fields inherited from interface org.apache.wicket.authorization.IAuthorizationStrategy |
---|
ALLOW_ALL |
Constructor Summary | |
---|---|
ProjectBrowserPageAuthentication()
Sets up the authorization strategy. |
Method Summary | |
---|---|
boolean |
isActionAuthorized(org.apache.wicket.Component component,
org.apache.wicket.authorization.Action action)
Individual component actions are always authorized. |
boolean |
isInstantiationAuthorized(java.lang.Class component)
Page-level retrieval must be authenticated by checking the session instance to see if the user is signed in. |
void |
onUnauthorizedInstantiation(org.apache.wicket.Component component)
Upon authentication failure, redirect to home page with a helpful message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectBrowserPageAuthentication()
Method Detail |
---|
public boolean isActionAuthorized(org.apache.wicket.Component component, org.apache.wicket.authorization.Action action)
isActionAuthorized
in interface org.apache.wicket.authorization.IAuthorizationStrategy
component
- The component in question.action
- The component in question.
public boolean isInstantiationAuthorized(java.lang.Class component)
isInstantiationAuthorized
in interface org.apache.wicket.authorization.IAuthorizationStrategy
component
- The component in question.
public void onUnauthorizedInstantiation(org.apache.wicket.Component component)
onUnauthorizedInstantiation
in interface org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener
component
- The component in question.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |