com.sibvisions.rad.server.security
Interface IObjectAccessController


public interface IObjectAccessController

The IObjectAccessController defines a security controller for accessing objects and methods.


Method Summary
 boolean isMethodInvocationAllowed(AbstractObjectProvider pProvider, ISession pSession, String pObjectName, Object pObject, String pMethodName, Object... pParams)
          Gets whether method invocation is allowed.
 boolean isObjectAccessAllowed(AbstractObjectProvider pProvider, ISession pSession, Map pLifeCycleObject, String pObjectName, Object pObject)
          Gets whether access to an object is allowed.
 

Method Detail

isObjectAccessAllowed

boolean isObjectAccessAllowed(AbstractObjectProvider pProvider,
                              ISession pSession,
                              Map pLifeCycleObject,
                              String pObjectName,
                              Object pObject)
Gets whether access to an object is allowed.

Parameters:
pProvider - the object provider
pSession - the accessing session
pLifeCycleObject - the life-cycle instance
pObjectName - the object name
pObject - the object
Returns:
true if access is granted, false otherwise

isMethodInvocationAllowed

boolean isMethodInvocationAllowed(AbstractObjectProvider pProvider,
                                  ISession pSession,
                                  String pObjectName,
                                  Object pObject,
                                  String pMethodName,
                                  Object... pParams)
Gets whether method invocation is allowed.

Parameters:
pProvider - the object provider
pSession - the accessing session
pObjectName - the object name
pObject - the object
pMethodName - the method name
pParams - the parameters
Returns:
true if access is granted, false otherwise


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.