CUser
The CUser class contains user data and also provides transfer functions such as I/O in streams or conversion to a CRecord for sending messages.
The following data fields are included:
- The ID (String)
- The real name of the user (String)
- The email address (String)
- The relative url of a picture n the FileStore (String)
- The password (only within a login dialog, the system doesn't know the password)
- The user ID of the user who created the data record
- The timestamp at which the data record was created
fromRecord
The method creates an instance of the CUser class from a record of the type CRecordUserDbUserRecord.
@NotNull public static CUser fromRecord(@NotNull final CRecord aRecord) throws CException;
toRecordsince Version 2.4
The method creates a record of the type CRecordUserDbUserRecord from an instance of the CUser class.
@NotNull public CRecord toRecord() throws CException;
toStreamsince Version 2.4
The method writes an instance of the CUser class to a DataOutputStream
.
public void toStream(@NotNull final DataOutputStream aStream) throws IOException;
fromStreamsince Version 2.4
The method reads a CUser class from a DataInputStream
.
@NotNull public static CUser fromStream(@NotNull final DataInputStream aStream) throws IOException, CException;
Miscellaneous
The class supports equals()
and hashcode()
.
It implements Comparable<CUser>
since Version 2.4.