Search in sources :

Example 6 with RoutinePermsDescriptor

use of org.apache.derby.iapi.sql.dictionary.RoutinePermsDescriptor in project derby by apache.

the class DataDictionaryImpl method createRoutinePermPublicDescriptor.

/**
 * Create RoutinePermDescriptor to grant access to PUBLIC for
 * this system routine using the grantor specified in authorizationID.
 *
 * @param routineUUID	uuid of the routine
 * @param tc	TransactionController to use
 * @param authorizationID	authorization ID of the permission grantor
 * @throws StandardException	Standard exception policy.
 */
void createRoutinePermPublicDescriptor(UUID routineUUID, TransactionController tc, String authorizationID) throws StandardException {
    RoutinePermsDescriptor routinePermDesc = new RoutinePermsDescriptor(this, "PUBLIC", authorizationID, routineUUID);
    addDescriptor(routinePermDesc, null, DataDictionary.SYSROUTINEPERMS_CATALOG_NUM, false, tc);
}
Also used : RoutinePermsDescriptor(org.apache.derby.iapi.sql.dictionary.RoutinePermsDescriptor)

Aggregations

RoutinePermsDescriptor (org.apache.derby.iapi.sql.dictionary.RoutinePermsDescriptor)6 UUID (org.apache.derby.catalog.UUID)3 SQLChar (org.apache.derby.iapi.types.SQLChar)2 Iterator (java.util.Iterator)1 FormatableBitSet (org.apache.derby.iapi.services.io.FormatableBitSet)1 LanguageConnectionContext (org.apache.derby.iapi.sql.conn.LanguageConnectionContext)1 AliasDescriptor (org.apache.derby.iapi.sql.dictionary.AliasDescriptor)1 ColPermsDescriptor (org.apache.derby.iapi.sql.dictionary.ColPermsDescriptor)1 DataDescriptorGenerator (org.apache.derby.iapi.sql.dictionary.DataDescriptorGenerator)1 DataDictionary (org.apache.derby.iapi.sql.dictionary.DataDictionary)1 PermDescriptor (org.apache.derby.iapi.sql.dictionary.PermDescriptor)1 PrivilegedSQLObject (org.apache.derby.iapi.sql.dictionary.PrivilegedSQLObject)1 SchemaDescriptor (org.apache.derby.iapi.sql.dictionary.SchemaDescriptor)1 TableDescriptor (org.apache.derby.iapi.sql.dictionary.TableDescriptor)1 TablePermsDescriptor (org.apache.derby.iapi.sql.dictionary.TablePermsDescriptor)1 ExecIndexRow (org.apache.derby.iapi.sql.execute.ExecIndexRow)1 ExecRow (org.apache.derby.iapi.sql.execute.ExecRow)1 TransactionController (org.apache.derby.iapi.store.access.TransactionController)1 DataValueDescriptor (org.apache.derby.iapi.types.DataValueDescriptor)1