jdbcadmin.core.access
Class DeclarativeAccessImpl

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

public class DeclarativeAccessImpl
extends java.lang.Object
implements IConfigurableAuthorizationAccess

Implementation of IConfigurableAuthorizationAccess with declaration of authorized Tables ans Schemas. Iems not declared are not authorired.

Author:
Thomas Recloux (trecloux@norsys.fr)

Constructor Summary
DeclarativeAccessImpl()
           
 
Method Summary
 void addSchema(java.lang.String aSchemaName, boolean aAutorisationTotale)
          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

DeclarativeAccessImpl

public DeclarativeAccessImpl()
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 aAutorisationTotale)
Adds an access authorization for the specified schema.

Specified by:
addSchema in interface IConfigurableAuthorizationAccess
Parameters:
aSchemaName - schema name, considers that null == ""
aAutorisationTotale - 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.