Constructs a DomainUserId
from the given user type and username.
the type of user
the user's username
the type of user
the user's username
Returns true if this user is the same as the given user.
another domain user
Returns a string GUID for this user guaranteed to be unique within this domain.
Constructs a "anonymous" DomainUserId
by username.
the anonymous user's unique username.
Constructs a "convergence" DomainUserId
by username.
the convergence user's unique username.
Constructs a DomainUserId from a guid.
the type of user
A new DomainUserId, deserialized from the guid.
Constructs a GUID from the given user type and username.
Equivalent to new DomainUserId(userType, username).toGuid()
the type of user
the user's username
Constructs a "normal" DomainUserId
by username.
the normal user's unique username
This is a convenience function to construct a DomainUserId
from a bare username.
a "normal" user's username or DomainUserId
This is a convenience function to construct a DomainUserId
from a bare username.
a "normal" user's username or DomainUserId
Validates a string value is a proper DomainUserType string and returns it. Otherwise will throw and error.
The type string to validate.
A valid DomainUserType string.
This is a convenience class providing utilities to help identity a particular Domain User. A guid is the best means of uniquely identifing a user within a domain, which combines their userType with username.
DomainUserIds are read-only.