jdbcadmin.core.access
Class RestrictiveAccessImpl

java.lang.Object
  extended byjdbcadmin.core.access.RestrictiveAccessImpl
All Implemented Interfaces:
IAccessAuthorization, IConfigurableAuthorizationAccess

public class RestrictiveAccessImpl
extends java.lang.Object
implements IConfigurableAuthorizationAccess

Implementation of IConfigurableAuthorizationAccess with declaration of the forbiden schemas and tables.

Author:
Thomas Recloux (trecloux@norsys.fr)

Constructor Summary
RestrictiveAccessImpl()
           
 
Method Summary
 void addSchema(java.lang.String aSchemaName, boolean aRestrictionTotale)
          Adds an access authorization for the specified schema.
 void addTable(java.lang.String aTableName, java.lang.String aSchemaName)
          Adds an access authorization for the specified table.
 boolean isSchemaAuthorized(java.lang.String aSchemaName)
          Indicates whether the schema is authorized
 boolean isTableAuthorized(java.lang.String aTableName, java.lang.String aSchemaName)
          Indicates whether the table is authorized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestrictiveAccessImpl

public RestrictiveAccessImpl()
Method Detail

addTable

public void addTable(java.lang.String aTableName,
                     java.lang.String aSchemaName)
Adds an access authorization for the specified table.

Specified by:
addTable in interface IConfigurableAuthorizationAccess
Parameters:
aTableName - table name
aSchemaName - schema name, considers that null == ""

addSchema

public void addSchema(java.lang.String aSchemaName,
                      boolean aRestrictionTotale)
Adds an access authorization for the specified schema.

Specified by:
addSchema in interface IConfigurableAuthorizationAccess
Parameters:
aSchemaName - schema name, considers that null == ""
aRestrictionTotale - indicates whether the schema is completely authorized.

isTableAuthorized

public boolean isTableAuthorized(java.lang.String aTableName,
                                 java.lang.String aSchemaName)
Indicates whether the table is authorized

Specified by:
isTableAuthorized in interface IAccessAuthorization
Parameters:
aTableName - table name
aSchemaName - schema name, considers that null == ""
Returns:
true if authorized, false otherwise

isSchemaAuthorized

public boolean isSchemaAuthorized(java.lang.String aSchemaName)
Indicates whether the schema is authorized

Specified by:
isSchemaAuthorized in interface IAccessAuthorization
Parameters:
aSchemaName - schema name, considers that null == ""
Returns:
true if authorized, false otherwise


Copyright © 2004-2005 Norsys. All Rights Reserved.