|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Identity
Provides access to the services and the entitlements for a specific user.
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 | |
---|---|
static class |
Identity.SeatType
Seat type enumeration defines seat type values such as whether this identity is a Bloomberg Professional Service user. |
Method Summary | |
---|---|
boolean |
hasEntitlements(Element entitlements,
Service service)
Return true if the user has the specified entitlements for the specified Service |
boolean |
hasEntitlements(Element entitlements,
Service service,
java.util.List<java.lang.Integer> failedEntitlements)
Return true if the user has the specified entitlements for the specified Service |
boolean |
hasEntitlements(int[] entitlements,
Service service)
Return true if the user has the specified entitlements for the specified Service |
boolean |
hasEntitlements(int[] entitlements,
Service service,
java.util.List<java.lang.Integer> failedEntitlements)
Return true if the user has the specified entitlements for the specified Service |
boolean |
isAuthorized(Service service)
Return true if the user handle is authorized for the specified service |
Identity.SeatType |
seatType()
Return Seat Type value of this identity. |
Method Detail |
---|
boolean isAuthorized(Service service)
boolean hasEntitlements(int[] entitlements, Service service)
Same as calling hasEntitlements(int[], Service, null
boolean hasEntitlements(int[] entitlements, Service service, java.util.List<java.lang.Integer> failedEntitlements)
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.
boolean hasEntitlements(Element entitlements, Service service)
Same as calling hasEntitlements(Element, service, null
boolean hasEntitlements(Element entitlements, Service service, java.util.List<java.lang.Integer> failedEntitlements)
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.
Identity.SeatType seatType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |