Package com.qfs.desc
Interface ITablePermissions
- All Known Subinterfaces:
IWritableTablePermissions
- All Known Implementing Classes:
TableReadWritePermissions
public interface ITablePermissions
Permissions for the tables of the database.
- Author:
- ActiveViam
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanReadField(String field, Set<String> roles) Check if a user can read a field.booleancanWriteField(String field, Set<String> roles) Check if a user can write a field.Returns the roles that can read the whole table.Returns the roles that can write the whole table.
-
Method Details
-
getTableReaderRoles
Returns the roles that can read the whole table. -
getTableWriterRoles
Returns the roles that can write the whole table. -
canReadField
Check if a user can read a field.- Parameters:
field- the checked field.roles- the roles of the user.- Returns:
- true if at least one role can read the field.
-
canWriteField
Check if a user can write a field.- Parameters:
field- the checked field.roles- the roles of the user.- Returns:
- true if at least one role can write the field.
-