Package org.apache.derby.iapi.sql.conn

Examples of org.apache.derby.iapi.sql.conn.Authorizer


  public static void setDatabaseProperty(String key, String value) throws SQLException
  {
    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
    Authorizer a = lcc.getAuthorizer();
    a.authorize((Activation) null, Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here


  public static void setDatabaseProperty(String key, String value) throws SQLException
  {
    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
    Authorizer a = lcc.getAuthorizer();
    a.authorize((Activation) null, Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here

    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
            SecurityUtil.authorize( Securable.SET_DATABASE_PROPERTY );
           
    Authorizer a = lcc.getAuthorizer();
    a.authorize((Activation) null, Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here

        LanguageConnectionContext lcc = (LanguageConnectionContext)
        ContextService.getContextOrNull( LanguageConnectionContext.CONTEXT_ID );

        if ( lcc.usesSqlAuthorization() )
        {
            Authorizer   authorizer = lcc.getAuthorizer();

            DataDictionary dd = lcc.getDataDictionary();
            AliasDescriptor ad = dd.getRoutineList
                (
                 operation.routineSchemaID,
                 operation.routineName,
                 operation.routineType
                 ).get( 0 );
            ArrayList<StatementPermission>   requiredPermissions = new ArrayList<StatementPermission>();
            StatementRoutinePermission  executePermission = new StatementRoutinePermission( ad.getObjectID() );

            requiredPermissions.add( executePermission );

            authorizer.authorize( requiredPermissions, lcc.getLastActivation() );
        }
    }
View Full Code Here

            if ( authorizationCheck != null )
            {
                SecurityUtil.authorize( authorizationCheck );
            }
           
            Authorizer a = lcc.getAuthorizer();
            a.authorize((Activation) null, Authorizer.PROPERTY_WRITE_OP);

            // Get the current transaction controller
            TransactionController tc = lcc.getTransactionExecute();

            tc.setProperty(key, value, false);
View Full Code Here

  public static void setDatabaseProperty(String key, String value) throws SQLException
  {
    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
    Authorizer a = lcc.getAuthorizer();
    a.authorize(Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here

  public static void setDatabaseProperty(String key, String value) throws SQLException
  {
    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
    Authorizer a = lcc.getAuthorizer();
    a.authorize((Activation) null, Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here

  public static void setDatabaseProperty(String key, String value) throws SQLException
  {
    LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();

    try {
    Authorizer a = lcc.getAuthorizer();
    a.authorize(Authorizer.PROPERTY_WRITE_OP);

        // Get the current transaction controller
        TransactionController tc = lcc.getTransactionExecute();

    tc.setProperty(key, value, false);
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.conn.Authorizer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.