|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RestAuthorizeData
Data used to authorize the operation calling a REST API. Different data are needed for authorizing different REST API.
| Method Summary | |
|---|---|
String |
getCommunicationId()Get communication id. |
String |
getOperationStarer()Get the starter participant of an operation. |
String |
getOriginator()Get the "originator" part of a communication. |
List<String> |
getParticipants()Get all participants of a communication. |
String |
getReason()Get the reason of authorization result. |
boolean |
isUserInRole(String role)Returns a boolean indicating whether the authenticated user is included in the specified logical "role". |
void |
setReason(String reason)If there is reason of authorization result that need to be specified, set it so that caller can use it. |
| Method Detail |
|---|
String getCommunicationId()
Get communication id. The communication may be conversation, conference, IM conversation, IM conference or others.
In different scenario, the id has different meaning. For example, when creating a conversation (HTTP method is POST/PUT), the id is the name of a conversation that REST API invoker want to create. When getting a conversation (HTTP method is GET), the id is the name of a existing conversation which REST QPI invoker want to know.
String getOperationStarer()
Get the starter participant of an operation. For example, sending a message from Bob, then Bob is the operation starter.
List<String> getParticipants()
String getOriginator()
boolean isUserInRole(String role)
role - - a String specifying the name of the rolevoid setReason(String reason)
reason -String getReason()
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2012 Oracle Corporation. All Rights Reserved.