|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.benow.web.InitializationCheckerImpl
public abstract class InitializationCheckerImpl
| Field Summary | |
|---|---|
protected java.util.List<java.lang.String> |
allowedEnds
|
protected java.util.List<java.lang.String> |
allowedEquals
|
protected java.util.List<java.lang.String> |
allowedStarts
|
protected java.lang.String |
redirectURI
|
protected org.benow.security.permission.Permission |
requiredPermission
|
| Constructor Summary | |
|---|---|
InitializationCheckerImpl()
|
|
InitializationCheckerImpl(java.lang.String redirectURI)
|
|
| Method Summary | |
|---|---|
protected void |
allowCSS()
|
protected void |
allowEnds(java.lang.String endsWith)
Allows paths ending in given term |
protected void |
allowEquals(java.lang.String equals)
|
protected void |
allowIfInSession(java.lang.String key)
Allow if given key (with any value) is in session |
protected void |
allowIfInSession(java.lang.String key,
java.lang.Object value)
Allow if key with given value is in session |
protected void |
allowImagesDir()
|
protected void |
allowJSDir()
|
protected void |
allowServiceJS(java.lang.Class<? extends org.benow.service.Service> serviceClass)
|
protected void |
allowServiceMethodJS(java.lang.Class<? extends org.benow.service.Service> serviceClass,
java.lang.String methodSig)
|
void |
allowServices()
|
protected void |
clearAllows()
Clears the allow strings, including the default strings to allow css, /js dir and /images dir. |
boolean |
continueTesting()
|
protected boolean |
doIsAllowed(java.lang.String path)
|
java.lang.String |
getInitializationURI()
|
boolean |
isAllowed(java.lang.String path)
Is this initializer at the given url in the process of initializing, if so requests will be allowed. |
boolean |
isInitialized()
Override to return initialized state if constructed with a redirect URI |
protected void |
showForAnyUser()
Initialization shown for any user |
protected void |
showForOnlyAdmin()
Initialization only shown for administrator (the default) |
protected void |
showWhenPermission(org.benow.security.permission.Permission requiredPermission)
Initialization shown for users with given permission |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.List<java.lang.String> allowedEnds
protected final java.util.List<java.lang.String> allowedStarts
protected final java.util.List<java.lang.String> allowedEquals
protected java.lang.String redirectURI
protected org.benow.security.permission.Permission requiredPermission
| Constructor Detail |
|---|
public InitializationCheckerImpl()
public InitializationCheckerImpl(java.lang.String redirectURI)
| Method Detail |
|---|
protected void showForOnlyAdmin()
protected void showForAnyUser()
protected void showWhenPermission(org.benow.security.permission.Permission requiredPermission)
requiredPermission - protected void clearAllows()
public boolean isInitialized()
isInitialized in interface InitializationCheckerpublic final boolean isAllowed(java.lang.String path)
InitializationChecker
isAllowed in interface InitializationCheckerpath - the path portion of the requested url
protected boolean doIsAllowed(java.lang.String path)
protected void allowCSS()
protected void allowEnds(java.lang.String endsWith)
endsWith - protected void allowImagesDir()
protected void allowJSDir()
protected void allowServiceJS(java.lang.Class<? extends org.benow.service.Service> serviceClass)
protected void allowServiceMethodJS(java.lang.Class<? extends org.benow.service.Service> serviceClass,
java.lang.String methodSig)
protected void allowEquals(java.lang.String equals)
protected void allowIfInSession(java.lang.String key,
java.lang.Object value)
key - b - protected void allowIfInSession(java.lang.String key)
key - public void allowServices()
public java.lang.String getInitializationURI()
getInitializationURI in interface InitializationCheckerpublic boolean continueTesting()
continueTesting in interface InitializationChecker
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||