server
1.9.0
jvm
server
/
io.spine.server
/
Identity
Identity
public
final
class
Identity
Utilities for exposing identity of a server-side object as io.spine.core.MessageIds.
Members
Functions
by
String
Link copied to clipboard
public
static
MessageId
byString
(
String
value
)
Creates the ID which has only the passed value.
of
Entity
Link copied to clipboard
public
static
MessageId
ofEntity
(
Object
entityId
,
TypeUrl entityType
)
Creates the identity of the entity state by its ID and type URL.
of
Producer
Link copied to clipboard
public
static
MessageId
ofProducer
(
Any producerId
)
Creates the identity by the passed producer ID.
of
Singleton
Link copied to clipboard
public
static
MessageId
ofSingleton
(
Class
<
? extends
Object
>
singletonClass
)
Creates the ID which has only fully qualified name of the passed class.