|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.server.security.DefaultAccessController
public class DefaultAccessController
The DefaultAccessController is the standard IAccessController implementation.
It manages allowed objects in a simple list.
| Constructor Summary | |
|---|---|
DefaultAccessController()
|
|
| Method Summary | |
|---|---|
void |
addAccess(String pLifeCycleName)
Adds access to a specific life-cycle object. |
String |
find(ClassLoader pLoader,
String pName)
Search all available lifecycle objects for the given name. |
protected String |
findReplacement(ClassLoader pLoader,
String pName)
Finds a lifecycle class with a Replacement definition that matches the given name. |
protected int |
getAccessCount()
Gets the number of available access rules. |
boolean |
isAllowed(String pLifeCycleName)
Checks the access for creating a session. |
void |
removeAccess(String pLifeCycleName)
Removes access for a specific life-cycle object. |
protected void |
resetAccess()
Clears the access list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAccessController()
| Method Detail |
|---|
public boolean isAllowed(String pLifeCycleName)
isAllowed in interface IAccessCheckerpLifeCycleName - the name of the life-cycle object
true if it's allowed to open the connection, otherwise falsepublic void addAccess(String pLifeCycleName)
addAccess in interface IAccessControllerpLifeCycleName - the name of the life-cycle objectpublic void removeAccess(String pLifeCycleName)
removeAccess in interface IAccessControllerpLifeCycleName - the name of the life-cycle object
public String find(ClassLoader pLoader,
String pName)
find in interface IAccessCheckerpLoader - the class loader or null to use the default class loaderpName - the object name (full qualified or not)
null if no lifecycle object
name was found for the given object name
protected String findReplacement(ClassLoader pLoader,
String pName)
Replacement definition that matches the given name.
pLoader - the class loader to use or null to use the default class loaderpName - the name of the replacement
null if no lifecycle class
with given name was foundprotected void resetAccess()
protected int getAccessCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||