|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.server.dqp.service.PlatformAuthorizationService
public class PlatformAuthorizationService
Field Summary |
---|
Fields inherited from interface com.metamatrix.dqp.service.AuthorizationService |
---|
ACTION_CREATE, ACTION_DELETE, ACTION_READ, ACTION_UPDATE, ADMIN_ROLES_FILE, CONTEXT_DELETE, CONTEXT_INSERT, CONTEXT_PROCEDURE, CONTEXT_QUERY, CONTEXT_UPDATE, DEFAULT_WSDL_USERNAME, ENTITELEMENTS_ENABLED |
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)
Determine which of a set of resources a connection does not have permission to perform the specified action. |
java.util.Collection<AuthorizationPolicy> |
getPoliciesInRealm(AuthorizationRealm realm)
Returns a Collection of AuthorizationPolicy s
that have AuthorizationPermission s in the given AuthorizationRealm .NOTE: It is the responsibility of the caller to determine which of the AuthorizationPolicy 's AuthorizationPermission s
are actually in the given AuthorizationRealm . |
java.util.Collection<java.lang.String> |
getRoleNamesForPrincipal(MetaMatrixPrincipalName principal)
Returns a Collection of String names of MetaMatrix roles to which the given principal is assigned. |
boolean |
hasRole(java.lang.String connectionID,
java.lang.String roleType,
java.lang.String roleName)
|
void |
initialize(java.util.Properties props)
Initialize the service with the specified properties. |
boolean |
isCallerInRole(SessionToken session,
java.lang.String roleName)
|
void |
start(ApplicationEnvironment environment)
Start the service with the specified environment. |
void |
stop()
Stop the service. |
void |
updatePoliciesInRealm(AuthorizationRealm realm,
java.util.Collection<AuthorizationPolicy> policies)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlatformAuthorizationService(AuthorizationServiceInterface authInterface)
Method Detail |
---|
public void initialize(java.util.Properties props) throws ApplicationInitializationException
ApplicationService
initialize
in interface ApplicationService
props
- Initialialization properties
ApplicationInitializationException
- If an error occurs during initializationpublic void start(ApplicationEnvironment environment) throws ApplicationLifecycleException
ApplicationService
start
in interface ApplicationService
environment
- Environment
ApplicationLifecycleException
- If an error occurs while startingpublic void stop() throws ApplicationLifecycleException
ApplicationService
stop
in interface ApplicationService
ApplicationLifecycleException
- If an error occurs while startingpublic java.util.Collection getInaccessibleResources(java.lang.String connectionID, int action, java.util.Collection resources, int context) throws MetaMatrixComponentException
AuthorizationService
getInaccessibleResources
in interface AuthorizationService
connectionID
- Connection ID identifying the connection (and thus the user credentials)action
- Action connection wishes to performresources
- Resources the connection wishes to perform the action on, Collection of Stringcontext
- Auditing context
MetaMatrixComponentException
- If an error occurs in the service while checking resourcespublic boolean hasRole(java.lang.String connectionID, java.lang.String roleType, java.lang.String roleName) throws MetaMatrixComponentException
hasRole
in interface SecurityFunctionEvaluator
MetaMatrixComponentException
public boolean checkingEntitlements()
checkingEntitlements
in interface AuthorizationService
true
iff server-side entitlements checking is enabled.public boolean isCallerInRole(SessionToken session, java.lang.String roleName) throws AuthorizationMgmtException
isCallerInRole
in interface AuthorizationService
AuthorizationMgmtException
public java.util.Collection<AuthorizationPolicy> getPoliciesInRealm(AuthorizationRealm realm) throws AuthorizationException, AuthorizationMgmtException
AuthorizationService
Collection
of AuthorizationPolicy
s
that have AuthorizationPermission
s in the given AuthorizationRealm
.AuthorizationPolicy
's AuthorizationPermission
s
are actually in the given AuthorizationRealm
. The AuthorizationPolicy
may span AuthorizationRealm
s.
getPoliciesInRealm
in interface AuthorizationService
realm
- The realm in which to search for AuthorizationPermission
s.
AuthorizationPolicy
s that have permissions
in the given realm - possibly empty but never null.
AuthorizationException
- if administrator does not have the authority to perform the action.
AuthorizationMgmtException
- if an error occurs in the Authorization store.public java.util.Collection<java.lang.String> getRoleNamesForPrincipal(MetaMatrixPrincipalName principal) throws InvalidSessionException, AuthorizationException, AuthorizationMgmtException
AuthorizationService
getRoleNamesForPrincipal
in interface AuthorizationService
principal
- MetaMatrixPrincipalName
for which roles are sought
Collection
of role names the principal is assigned.
InvalidSessionException
- if the administrative session is invalid
AuthorizationException
- if administrator does not have the authority to see the requested information
AuthorizationMgmtException
public void updatePoliciesInRealm(AuthorizationRealm realm, java.util.Collection<AuthorizationPolicy> policies) throws AuthorizationMgmtException
updatePoliciesInRealm
in interface AuthorizationService
AuthorizationMgmtException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |