Class Account
java.lang.Object
ch.colabproject.colab.api.model.user.Account
- All Implemented Interfaces:
ColabEntity,WithDeletionStatus,WithPermission,WithTrackingData,WithWebsocketChannels,WithId,WithJsonDiscriminator,Serializable
- Direct Known Subclasses:
LocalAccount
Accounts are used by users to authenticate.
- Author:
- maxence
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the channels this entity shall be sent through.Get the condition required to persist this entityGet the deletion status :Get the list of httpSession this account is usinggetId()Get the condition required to read this entityGet the tracking dataGet the condition required to update this entitygetUser()Return the id of the account ownerinthashCode()voidsetDeletionStatus(DeletionStatus status) Set the deletion status :voidsetHttpSessions(List<HttpSession> httpSessions) Set the list of httpSessionvoidset idvoidsetTrackingData(Tracking trackingData) Set tracking datavoidSet account ownervoidset the id of the account owner.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ch.colabproject.colab.api.model.ColabEntity
mergeToDuplicate, mergeToUpdateMethods inherited from interface ch.colabproject.colab.generator.model.interfaces.WithJsonDiscriminator
getJsonDiscriminatorMethods inherited from interface ch.colabproject.colab.api.model.WithPermission
getDeleteConditionMethods inherited from interface ch.colabproject.colab.api.model.WithTrackingData
clearErasureTrackingData, setErasureTrackingData, touchMethods inherited from interface ch.colabproject.colab.api.model.WithWebsocketChannels
getIndexEntryPayload
-
Constructor Details
-
Account
public Account()
-
-
Method Details
-
getId
-
setId
set id- Parameters:
id- id
-
getTrackingData
Get the tracking data- Specified by:
getTrackingDatain interfaceWithTrackingData- Returns:
- tracking data
-
setTrackingData
Set tracking data- Specified by:
setTrackingDatain interfaceWithTrackingData- Parameters:
trackingData- new tracking data
-
getDeletionStatus
Description copied from interface:WithDeletionStatusGet the deletion status :Is it in a bin or ready to be definitely deleted.
Null means active.
- Specified by:
getDeletionStatusin interfaceWithDeletionStatus- Returns:
- null or a deletion status
-
setDeletionStatus
Description copied from interface:WithDeletionStatusSet the deletion status :Is it in a bin or ready to be definitely deleted.
Null means active.
- Specified by:
setDeletionStatusin interfaceWithDeletionStatus- Parameters:
status- null or a deletion status
-
getUser
- Returns:
- the user
-
setUser
Set account owner- Parameters:
user- user who owns this account
-
getUserId
Return the id of the account owner- Returns:
- id of the user
-
setUserId
set the id of the account owner. For serialization only- Parameters:
id- if of the user
-
getHttpSessions
Get the list of httpSession this account is using- Returns:
- httpSession list
-
setHttpSessions
Set the list of httpSession- Parameters:
httpSessions- new httpSessions
-
getChannelsBuilder
Description copied from interface:WithWebsocketChannelsGet the channels this entity shall be sent through.- Specified by:
getChannelsBuilderin interfaceWithWebsocketChannels- Returns:
- list of channels
-
getReadCondition
Description copied from interface:WithPermissionGet the condition required to read this entity- Specified by:
getReadConditionin interfaceWithPermission- Returns:
- the condition
-
getUpdateCondition
Description copied from interface:WithPermissionGet the condition required to update this entity- Specified by:
getUpdateConditionin interfaceWithPermission- Returns:
- the condition
-
getCreateCondition
Description copied from interface:WithPermissionGet the condition required to persist this entity- Specified by:
getCreateConditionin interfaceWithPermission- Returns:
- the condition
-
hashCode
public int hashCode() -
equals
-