}
}
}
else if( key instanceof PermDescriptor)
{
PermDescriptor permKey = (PermDescriptor) key;
permissions = dd.getUncachedGenericPermDescriptor( permKey);
if( permissions == null)
{
// The owner has all privileges unless they have been revoked.
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
);
}
}
}