public abstract class CallsEndpoint extends SecuredEndpoint
SecuredEndpoint.SecuredType| Modifier and Type | Field and Description |
|---|---|
protected AccountsDao |
accountsDao |
protected com.google.gson.GsonBuilder |
builder |
protected akka.actor.ActorRef |
callManager |
protected org.apache.commons.configuration.Configuration |
configuration |
protected javax.servlet.ServletContext |
context |
protected DaoManager |
daos |
protected com.google.gson.Gson |
gson |
protected String |
instanceId |
protected CallDetailRecordListConverter |
listConverter |
protected boolean |
normalizePhoneNumbers |
protected RecordingsDao |
recordingsDao |
protected RecordingSecurityLevel |
securityLevel |
protected com.thoughtworks.xstream.XStream |
xstream |
extensions, identityContext, logger, userIdentityContextbaseRecordingsPath| Constructor and Description |
|---|
CallsEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.ws.rs.core.Response |
getCall(String accountSid,
String sid,
javax.ws.rs.core.MediaType responseType) |
protected javax.ws.rs.core.Response |
getCalls(String accountSid,
javax.ws.rs.core.UriInfo info,
javax.ws.rs.core.MediaType responseType) |
protected javax.ws.rs.core.Response |
getRecordingsByCall(String accountSid,
String callSid,
javax.ws.rs.core.MediaType responseType) |
void |
init() |
protected void |
muteUnmuteCall(Boolean mute,
CallInfo callInfo,
akka.actor.ActorRef call,
CallDetailRecord cdr,
CallDetailRecordsDao dao) |
protected javax.ws.rs.core.Response |
putCall(String accountSid,
javax.ws.rs.core.MultivaluedMap<String,String> data,
javax.ws.rs.core.MediaType responseType) |
protected javax.ws.rs.core.Response |
updateCall(String sid,
String callSid,
javax.ws.rs.core.MultivaluedMap<String,String> data,
javax.ws.rs.core.MediaType responseType) |
allowOnlySuperAdmin, checkAuthenticatedAccount, checkPermission, executePostApiAction, executePreApiAction, getAdministratorRole, hasAccountRole, init, isSecuredByPermission, isSuperAdmin, secure, secure, securegetApiVersion, getBigInteger, getBoolean, getDateTime, getHasVoiceCallerIdLookup, getInteger, getLong, getMethod, getPhoneNumber, getSid, getUrl, isEmpty@Context protected javax.servlet.ServletContext context
protected org.apache.commons.configuration.Configuration configuration
protected akka.actor.ActorRef callManager
protected DaoManager daos
protected com.google.gson.Gson gson
protected com.google.gson.GsonBuilder builder
protected com.thoughtworks.xstream.XStream xstream
protected CallDetailRecordListConverter listConverter
protected AccountsDao accountsDao
protected RecordingsDao recordingsDao
protected String instanceId
protected RecordingSecurityLevel securityLevel
protected boolean normalizePhoneNumbers
@PostConstruct public void init()
protected javax.ws.rs.core.Response getCall(String accountSid, String sid, javax.ws.rs.core.MediaType responseType)
protected javax.ws.rs.core.Response getCalls(String accountSid, javax.ws.rs.core.UriInfo info, javax.ws.rs.core.MediaType responseType)
protected javax.ws.rs.core.Response putCall(String accountSid, javax.ws.rs.core.MultivaluedMap<String,String> data, javax.ws.rs.core.MediaType responseType)
protected javax.ws.rs.core.Response updateCall(String sid, String callSid, javax.ws.rs.core.MultivaluedMap<String,String> data, javax.ws.rs.core.MediaType responseType)
protected javax.ws.rs.core.Response getRecordingsByCall(String accountSid, String callSid, javax.ws.rs.core.MediaType responseType)
protected void muteUnmuteCall(Boolean mute, CallInfo callInfo, akka.actor.ActorRef call, CallDetailRecord cdr, CallDetailRecordsDao dao)
mute - - true if we want to mute the call, false otherwise.callInfo - - CallInfocall - - ActorRef for the callcdr - - CallDetailRecord of given call to update mute status in dbdao - - CallDetailRecordsDao for calls to update mute status in dbCopyright © 2017. All Rights Reserved.