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 Details

    • 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.
    • canWriteField

      boolean canWriteField(String field, Set<String> roles)
      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.