Package com.qfs.desc
Interface ITablePermissions
-
- All Known Subinterfaces:
IWritableTablePermissions
- All Known Implementing Classes:
TableReadWritePermissions
public interface ITablePermissionsPermissions for the tables of the database.- Author:
- ActiveViam
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanReadField(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.Set<String>getTableReaderRoles()Returns the roles that can read the whole table.Set<String>getTableWriterRoles()Returns the roles that can write the whole table.
-
-
-
Method Detail
-
getTableReaderRoles
Set<String> getTableReaderRoles()
Returns the roles that can read the whole table.
-
getTableWriterRoles
Set<String> getTableWriterRoles()
Returns the roles that can write the whole table.
-
canReadField
boolean canReadField(String field, Set<String> roles)
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.
-
-