String objectType = permKey.getObjectType();
String privilege = permKey.getPermission();
UUID protectedObjectsID = permKey.getPermObjectId();
PrivilegedSQLObject pso = PermDescriptor.getProtectedObject( dd, protectedObjectsID, objectType );
SchemaDescriptor sd = pso.getSchemaDescriptor();
if( permKey.getGrantee().equals( sd.getAuthorizationId()))
{
permissions = new PermDescriptor
(
dd,
null,
objectType,
pso.getUUID(),
privilege,
Authorizer.SYSTEM_AUTHORIZATION_ID,
permKey.getGrantee(),
true
);