com.metamatrix.server.dqp.service
Class PlatformAuthorizationService

java.lang.Object
  extended by com.metamatrix.server.dqp.service.PlatformAuthorizationService
All Implemented Interfaces:
ApplicationService, AuthorizationService, SecurityFunctionEvaluator

public class PlatformAuthorizationService
extends java.lang.Object
implements AuthorizationService


Field Summary
 
Fields inherited from interface com.metamatrix.dqp.service.AuthorizationService
ACTION_CREATE, ACTION_DELETE, ACTION_READ, ACTION_UPDATE, CONTEXT_DELETE, CONTEXT_INSERT, CONTEXT_PROCEDURE, CONTEXT_QUERY, CONTEXT_UPDATE, DEFAULT_WSDL_USERNAME
 
Fields inherited from interface com.metamatrix.query.eval.SecurityFunctionEvaluator
ADMIN_ROLE, DATA_ROLE
 
Constructor Summary
PlatformAuthorizationService(AuthorizationServiceInterface authInterface)
           
 
Method Summary
 boolean checkingEntitlements()
          Determine whether entitlements checking is enabled on the server.
 java.util.Collection getInaccessibleResources(java.lang.String connectionID, int action, java.util.Collection resources, int context)
           
 boolean hasRole(java.lang.String connectionID, java.lang.String roleType, java.lang.String roleName)
           
 void initialize(java.util.Properties props)
           
 void start(ApplicationEnvironment environment)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformAuthorizationService

public PlatformAuthorizationService(AuthorizationServiceInterface authInterface)
Method Detail

initialize

public void initialize(java.util.Properties props)
                throws ApplicationInitializationException
Specified by:
initialize in interface ApplicationService
Throws:
ApplicationInitializationException

start

public void start(ApplicationEnvironment environment)
           throws ApplicationLifecycleException
Specified by:
start in interface ApplicationService
Throws:
ApplicationLifecycleException

stop

public void stop()
          throws ApplicationLifecycleException
Specified by:
stop in interface ApplicationService
Throws:
ApplicationLifecycleException

getInaccessibleResources

public java.util.Collection getInaccessibleResources(java.lang.String connectionID,
                                                     int action,
                                                     java.util.Collection resources,
                                                     int context)
                                              throws MetaMatrixComponentException
Specified by:
getInaccessibleResources in interface AuthorizationService
Throws:
MetaMatrixComponentException

hasRole

public boolean hasRole(java.lang.String connectionID,
                       java.lang.String roleType,
                       java.lang.String roleName)
                throws MetaMatrixComponentException
Specified by:
hasRole in interface SecurityFunctionEvaluator
Throws:
MetaMatrixComponentException

checkingEntitlements

public boolean checkingEntitlements()
Determine whether entitlements checking is enabled on the server.

Specified by:
checkingEntitlements in interface AuthorizationService
Returns:
true iff server-side entitlements checking is enabled.


Copyright © 2009. All Rights Reserved.