Description
In Sentry, we should handle SERVER and URI privilege, add checks of principal type(e.g. not support grant role to group). So we should implement a taskFactory for V2 to handle special privilege.
Advantages to use taskFactory V2: it will add metadata check of a privilege. i.e. if we grant table t1 to role role1, it will check whether table t1 is existing.