Interface Identity
- All Known Subinterfaces:
UserHandle
An unauthorized Identity is created using AbstractSession.createIdentity()
. Once a Identity
has been created it can be authorized using sendAuthorizationRequest()
. The authorized Identity
can then be used in subscribe()
or
sendRequest()
calls. Once authorized a Identity has access to the entitlements of the user which it was
validated for and can then be queried to see if a user is entitled to receive data.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Seat type enumeration defines seat type values such as whether this identity is a Bloomberg Professional Service user. -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasEntitlements
(int[] entitlements, Service service) Return true if this Identity is authorized for the specifiedservice
and for each of the entitlement IDs contained in the specifiedentitlements
.boolean
hasEntitlements
(int[] entitlements, Service service, List<Integer> failedEntitlements) Return true if this Identity is authorized for the specifiedservice
and for each of the entitlement IDs contained in the specifiedentitlements
.boolean
hasEntitlements
(Element entitlements, Service service) Return true if this Identity is authorized for the specifiedservice
and for the specifiedentitlements
.boolean
hasEntitlements
(Element entitlements, Service service, List<Integer> failedEntitlements) Return true if this Identity is authorized for the specifiedservice
and for the specifiedentitlements
.boolean
isAuthorized
(Service service) Return true if the user handle is authorized for the specified serviceseatType()
Return Seat Type value of this identity.
-
Method Details
-
isAuthorized
Return true if the user handle is authorized for the specified service -
hasEntitlements
Return true if this Identity is authorized for the specifiedservice
and for each of the entitlement IDs contained in the specifiedentitlements
.Same as calling
hasEntitlements(int[], Service, null
-
hasEntitlements
Return true if this Identity is authorized for the specifiedservice
and for each of the entitlement IDs contained in the specifiedentitlements
.If the optional failedEntitlements is not null then the failedEntitlements list is populated with all entitlement ids of the specified Service that this Identity doesn't have.
-
hasEntitlements
Return true if this Identity is authorized for the specifiedservice
and for the specifiedentitlements
.Same as calling
hasEntitlements(Element, service, null
-
hasEntitlements
Return true if this Identity is authorized for the specifiedservice
and for the specifiedentitlements
.If the optional failedEntitlements is not null then the failedEntitlements list is populated with all entitlement ids of the specified Service that this Identity doesn't have.
-
seatType
Identity.SeatType seatType()Return Seat Type value of this identity.
-