Interface Privilege
- All Known Implementing Classes:
PrivilegeDTO,Privileges.ConsumeTopic,Privileges.CreateCatalog,Privileges.CreateFileset,Privileges.CreateModel,Privileges.CreateModelVersion,Privileges.CreateRole,Privileges.CreateSchema,Privileges.CreateTable,Privileges.CreateTopic,Privileges.GenericPrivilege,Privileges.ManageGrants,Privileges.ManageGroups,Privileges.ManageUsers,Privileges.ModifyTable,Privileges.ProduceTopic,Privileges.ReadFileset,Privileges.SelectTable,Privileges.UseCatalog,Privileges.UseModel,Privileges.UseSchema,Privileges.WriteFileset
The interface of a privilege. The privilege represents the ability to execute kinds of operations
for kinds of entities
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe condition of this privilege.static enumThe name of this privilege. -
Method Summary
Modifier and TypeMethodDescriptionbooleancanBindTo(MetadataObject.Type type) If the privilege can bind to a securable object, then this method will return true, otherwise false.name()
-
Method Details
-
name
Privilege.Name name()- Returns:
- The generic name of the privilege.
-
simpleString
String simpleString()- Returns:
- A readable string representation for the privilege.
-
condition
Privilege.Condition condition()- Returns:
- The condition of the privilege. `ALLOW` means that you are allowed to use the privilege, `DENY` means that you are denied to use the privilege
-
canBindTo
If the privilege can bind to a securable object, then this method will return true, otherwise false.- Parameters:
type- The securable object type.- Returns:
- It will return true if the privilege can bind to a securable object, otherwise false.
-