com.metamatrix.dqp.service
Interface AuthorizationService

All Superinterfaces:
ApplicationService, SecurityFunctionEvaluator
All Known Implementing Classes:
PlatformAuthorizationService

public interface AuthorizationService
extends ApplicationService, SecurityFunctionEvaluator

This service provides a means to check whether a connection is authorized to access various data resources.


Field Summary
static int ACTION_CREATE
           
static int ACTION_DELETE
           
static int ACTION_READ
           
static int ACTION_UPDATE
           
static int CONTEXT_DELETE
           
static int CONTEXT_INSERT
           
static int CONTEXT_PROCEDURE
           
static int CONTEXT_QUERY
           
static int CONTEXT_UPDATE
           
static java.lang.String DEFAULT_WSDL_USERNAME
           
 
Fields inherited from interface com.metamatrix.query.eval.SecurityFunctionEvaluator
ADMIN_ROLE, DATA_ROLE
 
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)
          Determine which of a set of resources a connection does not have permission to perform the specified action.
 
Methods inherited from interface com.metamatrix.common.application.ApplicationService
initialize, start, stop
 
Methods inherited from interface com.metamatrix.query.eval.SecurityFunctionEvaluator
hasRole
 

Field Detail

ACTION_READ

static final int ACTION_READ
See Also:
Constant Field Values

ACTION_CREATE

static final int ACTION_CREATE
See Also:
Constant Field Values

ACTION_UPDATE

static final int ACTION_UPDATE
See Also:
Constant Field Values

ACTION_DELETE

static final int ACTION_DELETE
See Also:
Constant Field Values

CONTEXT_QUERY

static final int CONTEXT_QUERY
See Also:
Constant Field Values

CONTEXT_INSERT

static final int CONTEXT_INSERT
See Also:
Constant Field Values

CONTEXT_UPDATE

static final int CONTEXT_UPDATE
See Also:
Constant Field Values

CONTEXT_DELETE

static final int CONTEXT_DELETE
See Also:
Constant Field Values

CONTEXT_PROCEDURE

static final int CONTEXT_PROCEDURE
See Also:
Constant Field Values

DEFAULT_WSDL_USERNAME

static final java.lang.String DEFAULT_WSDL_USERNAME
See Also:
Constant Field Values
Method Detail

getInaccessibleResources

java.util.Collection getInaccessibleResources(java.lang.String connectionID,
                                              int action,
                                              java.util.Collection resources,
                                              int context)
                                              throws MetaMatrixComponentException
Determine which of a set of resources a connection does not have permission to perform the specified action.

Parameters:
connectionID - Connection ID identifying the connection (and thus the user credentials)
action - Action connection wishes to perform
resources - Resources the connection wishes to perform the action on, Collection of String
context - Auditing context
Returns:
Collection Subset of resources
Throws:
MetaMatrixComponentException - If an error occurs in the service while checking resources

checkingEntitlements

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

Returns:
true iff server-side entitlements checking is enabled.


Copyright © 2009. All Rights Reserved.