Package example.app.entitylist
Class UserList
Class UserList
This class represents a list of users. It extends the EntityList class. It creates an abstraction for doing FileDatabase related operations that is related to users. It also provides some other methods that is related to a user list but not necessarily to a particular user.-
Constructor Details
-
UserList
-
UserList
public UserList()
-
-
Method Details
-
getTable
public String getTable(TreeSet<UUID> userIds) throws CannotCreateFileException, FileDatabaseConfigFileException, FileDatabaseInternalException, IOException, ClassNotFoundException This method gets all the users from the list of ids and creates a tabular format for displaying.- Parameters:
userIds- the ids of the users- Returns:
- String representation of the table of users
- Throws:
CannotCreateFileException- If the partition directory or the data directory could not be createdFileDatabaseConfigFileException- If the syntax in the database.config is wrongFileDatabaseInternalException- If there's a mismatch between the record.ser file and the data directory entriesIOException- If the database.config could not be read or if there are any errors reading the resource or record.ser fileClassNotFoundException- If the class is not found during deserialization of the record.ser file
-