com.sibvisions.rad.server.security
Class DefaultAccessController

java.lang.Object
  extended by com.sibvisions.rad.server.security.DefaultAccessController
All Implemented Interfaces:
IAccessController

public class DefaultAccessController
extends java.lang.Object
implements IAccessController

The DefaultAccessController is the standard IAccessController implementation. It manages allowed objects in a simple list.


Constructor Summary
DefaultAccessController()
           
 
Method Summary
 void addAccess(java.lang.String pLifeCycleName)
          Adds access to a specific life-cycle object.
 java.lang.String find(java.lang.String pName)
          Search all available lifecycle objects for the given name.
 boolean isAllowed(java.lang.String pLifeCycleName)
          Checks the access for creating a session.
 void removeAccess(java.lang.String pLifeCycleName)
          Removes access for a specific life-cycle object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAccessController

public DefaultAccessController()
Method Detail

isAllowed

public boolean isAllowed(java.lang.String pLifeCycleName)
Checks the access for creating a session.

Specified by:
isAllowed in interface IAccessController
Parameters:
pLifeCycleName - the name of the life-cycle object
Returns:
true if it's allowed to open the connection, otherwise false

addAccess

public void addAccess(java.lang.String pLifeCycleName)
Adds access to a specific life-cycle object.

Specified by:
addAccess in interface IAccessController
Parameters:
pLifeCycleName - the name of the life-cycle object

removeAccess

public void removeAccess(java.lang.String pLifeCycleName)
Removes access for a specific life-cycle object.

Specified by:
removeAccess in interface IAccessController
Parameters:
pLifeCycleName - the name of the life-cycle object

find

public java.lang.String find(java.lang.String pName)
Search all available lifecycle objects for the given name.

Specified by:
find in interface IAccessController
Parameters:
pName - the object name (full qualified or not)
Returns:
the full qualified lifecycle object name or null if no lifecycle object name was found for the given object name


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.