Package com.qfs.desc

Interface ITablePermissions

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