Package org.vrspace.server.obj
Class GroupMember
java.lang.Object
org.vrspace.server.obj.Entity
org.vrspace.server.obj.GroupMember
Represents a membership of a user in a group
- Author:
- joe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept()Accept the invitation to the group.Allow a member that asked to join into the groupprotected booleanboolean@NonNull Client@NonNull UserGroupgetGroup()Time stamp of last membership update, be it invite, request, or joining the groupPending invitation, if anyPending request to join, if anyThe client that invited/approved (sponsored) the member; may be null, or maybe point to non-existing client.inthashCode()Set pendingInvite to random UUID, update the timestamp.booleanjoined()request()Set pendingRequest to random UUID, update the timestampvoidvoidvoidsetLastRead(Instant lastRead) voidsetLastUpdate(Instant lastUpdate) Time stamp of last membership update, be it invite, request, or joining the groupvoidsetPendingInvite(String pendingInvite) Pending invitation, if anyvoidsetPendingRequest(String pendingRequest) Pending request to join, if anyvoidsetSponsor(Client sponsor) The client that invited/approved (sponsored) the member; may be null, or maybe point to non-existing client.toString()Methods inherited from class org.vrspace.server.obj.Entity
dispose, getId, getObjectId, setId
-
Constructor Details
-
GroupMember
public GroupMember() -
GroupMember
-
-
Method Details
-
joined
public boolean joined() -
invite
Set pendingInvite to random UUID, update the timestamp.- Parameters:
sponsor- the client that sends the invite- Returns:
- this
-
request
Set pendingRequest to random UUID, update the timestamp- Returns:
- this
-
accept
Accept the invitation to the group.- Returns:
- this
-
allow
Allow a member that asked to join into the group- Parameters:
sponsor- the client that accepted the membership request- Returns:
- this
-
getGroup
-
getClient
-
getPendingInvite
Pending invitation, if any -
getPendingRequest
Pending request to join, if any -
getSponsor
The client that invited/approved (sponsored) the member; may be null, or maybe point to non-existing client. Thus, valid only short term. -
getLastUpdate
Time stamp of last membership update, be it invite, request, or joining the group -
getLastRead
-
setGroup
-
setClient
-
setPendingInvite
Pending invitation, if any -
setPendingRequest
Pending request to join, if any -
setSponsor
The client that invited/approved (sponsored) the member; may be null, or maybe point to non-existing client. Thus, valid only short term. -
setLastUpdate
Time stamp of last membership update, be it invite, request, or joining the group -
setLastRead
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-