mirror of https://gitee.com/bigwinds/arangodb
renamed userContext to actionContext
This commit is contained in:
parent
ffdc497643
commit
69544596f3
|
@ -91,6 +91,7 @@ string ActionDispatcherThread::_startupModules;
|
||||||
/// @brief constructs a new dispatcher thread
|
/// @brief constructs a new dispatcher thread
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
ActionDispatcherThread::ActionDispatcherThread (DispatcherQueue* queue,
|
ActionDispatcherThread::ActionDispatcherThread (DispatcherQueue* queue,
|
||||||
string const& actionQueue,
|
string const& actionQueue,
|
||||||
|
@ -98,9 +99,13 @@ ActionDispatcherThread::ActionDispatcherThread (DispatcherQueue* queue,
|
||||||
=======
|
=======
|
||||||
ActionDisptacherThread::ActionDisptacherThread (DispatcherQueue* queue, string const& userContext)
|
ActionDisptacherThread::ActionDisptacherThread (DispatcherQueue* queue, string const& userContext)
|
||||||
>>>>>>> added module doc
|
>>>>>>> added module doc
|
||||||
|
=======
|
||||||
|
ActionDisptacherThread::ActionDisptacherThread (DispatcherQueue* queue, string const& actionContext)
|
||||||
|
>>>>>>> renamed userContext to actionContext
|
||||||
: DispatcherThread(queue),
|
: DispatcherThread(queue),
|
||||||
_isolate(0),
|
_isolate(0),
|
||||||
_context(),
|
_context(),
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
_actionQueue(actionQueue),
|
_actionQueue(actionQueue),
|
||||||
_actionLoader(actionLoader),
|
_actionLoader(actionLoader),
|
||||||
|
@ -108,6 +113,9 @@ ActionDisptacherThread::ActionDisptacherThread (DispatcherQueue* queue, string c
|
||||||
=======
|
=======
|
||||||
_userContext(userContext) {
|
_userContext(userContext) {
|
||||||
>>>>>>> added module doc
|
>>>>>>> added module doc
|
||||||
|
=======
|
||||||
|
_actionContext(actionContext) {
|
||||||
|
>>>>>>> renamed userContext to actionContext
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -251,11 +259,15 @@ void ActionDispatcherThread::initialise () {
|
||||||
_context->Enter();
|
_context->Enter();
|
||||||
|
|
||||||
TRI_InitV8VocBridge(_context, _vocbase);
|
TRI_InitV8VocBridge(_context, _vocbase);
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
TRI_InitV8Actions(_context, _actionQueue.c_str());
|
TRI_InitV8Actions(_context, _actionQueue.c_str());
|
||||||
=======
|
=======
|
||||||
TRI_InitV8Actions(_context, _userContext.c_str());
|
TRI_InitV8Actions(_context, _userContext.c_str());
|
||||||
>>>>>>> added module doc
|
>>>>>>> added module doc
|
||||||
|
=======
|
||||||
|
TRI_InitV8Actions(_context, _actionContext.c_str());
|
||||||
|
>>>>>>> renamed userContext to actionContext
|
||||||
TRI_InitV8Conversions(_context);
|
TRI_InitV8Conversions(_context);
|
||||||
TRI_InitV8Utils(_context, _startupModules);
|
TRI_InitV8Utils(_context, _startupModules);
|
||||||
TRI_InitV8Shell(_context);
|
TRI_InitV8Shell(_context);
|
||||||
|
|
|
@ -108,11 +108,15 @@ namespace triagens {
|
||||||
/// @brief constructs a new dispatcher thread
|
/// @brief constructs a new dispatcher thread
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
ActionDispatcherThread (rest::DispatcherQueue*, string const& actionQueue, JSLoader*);
|
ActionDispatcherThread (rest::DispatcherQueue*, string const& actionQueue, JSLoader*);
|
||||||
=======
|
=======
|
||||||
ActionDisptacherThread (rest::DispatcherQueue* queue, string const& userContext);
|
ActionDisptacherThread (rest::DispatcherQueue* queue, string const& userContext);
|
||||||
>>>>>>> added module doc
|
>>>>>>> added module doc
|
||||||
|
=======
|
||||||
|
ActionDisptacherThread (rest::DispatcherQueue* queue, string const& actionContext);
|
||||||
|
>>>>>>> renamed userContext to actionContext
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief destructs a dispatcher thread
|
/// @brief destructs a dispatcher thread
|
||||||
|
@ -241,6 +245,7 @@ namespace triagens {
|
||||||
/// @brief action context
|
/// @brief action context
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
std::string _actionQueue;
|
std::string _actionQueue;
|
||||||
|
|
||||||
|
@ -258,6 +263,9 @@ namespace triagens {
|
||||||
=======
|
=======
|
||||||
std::string _userContext;
|
std::string _userContext;
|
||||||
>>>>>>> added module doc
|
>>>>>>> added module doc
|
||||||
|
=======
|
||||||
|
std::string _actionContext;
|
||||||
|
>>>>>>> renamed userContext to actionContext
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -764,11 +764,15 @@ HttpResponse* TRI_ExecuteActionVocBase (TRI_vocbase_t* vocbase,
|
||||||
/// @brief stores the V8 actions function inside the global variable
|
/// @brief stores the V8 actions function inside the global variable
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
void TRI_InitV8Actions (v8::Handle<v8::Context> context, char const* actionQueue) {
|
void TRI_InitV8Actions (v8::Handle<v8::Context> context, char const* actionQueue) {
|
||||||
=======
|
=======
|
||||||
void TRI_InitV8Actions (v8::Handle<v8::Context> context, char const* userContext) {
|
void TRI_InitV8Actions (v8::Handle<v8::Context> context, char const* userContext) {
|
||||||
>>>>>>> added module doc
|
>>>>>>> added module doc
|
||||||
|
=======
|
||||||
|
void TRI_InitV8Actions (v8::Handle<v8::Context> context, char const* actionContext) {
|
||||||
|
>>>>>>> renamed userContext to actionContext
|
||||||
v8::HandleScope scope;
|
v8::HandleScope scope;
|
||||||
|
|
||||||
// check the isolate
|
// check the isolate
|
||||||
|
@ -790,8 +794,12 @@ void TRI_InitV8Actions (v8::Handle<v8::Context> context, char const* userContext
|
||||||
v8::String::New(actionQueue),
|
v8::String::New(actionQueue),
|
||||||
=======
|
=======
|
||||||
context->Global()->Set(v8::String::New("SYS_ACTION_CONTEXT"),
|
context->Global()->Set(v8::String::New("SYS_ACTION_CONTEXT"),
|
||||||
|
<<<<<<< HEAD
|
||||||
v8::String::New(userContext),
|
v8::String::New(userContext),
|
||||||
>>>>>>> added module doc
|
>>>>>>> added module doc
|
||||||
|
=======
|
||||||
|
v8::String::New(actionContext),
|
||||||
|
>>>>>>> renamed userContext to actionContext
|
||||||
v8::ReadOnly);
|
v8::ReadOnly);
|
||||||
|
|
||||||
// .............................................................................
|
// .............................................................................
|
||||||
|
|
|
@ -165,6 +165,7 @@ var console = require("console");
|
||||||
/// It is possible to specify a list of contexts, in case an actions belongs to
|
/// It is possible to specify a list of contexts, in case an actions belongs to
|
||||||
/// more than one context.
|
/// more than one context.
|
||||||
///
|
///
|
||||||
|
<<<<<<< HEAD
|
||||||
/// Note that the url for "user" actions is automatically prefixed
|
/// Note that the url for "user" actions is automatically prefixed
|
||||||
/// with @LIT{_action}. This applies to all specified contexts. For example, if
|
/// with @LIT{_action}. This applies to all specified contexts. For example, if
|
||||||
/// the context contains "admin" and "user" and the url is @LIT{hallo}, then the
|
/// the context contains "admin" and "user" and the url is @LIT{hallo}, then the
|
||||||
|
@ -192,14 +193,13 @@ var console = require("console");
|
||||||
/// the AvocadoDB server. Both the "api" and "user" actions are using the same
|
/// the AvocadoDB server. Both the "api" and "user" actions are using the same
|
||||||
/// worker queue.
|
/// worker queue.
|
||||||
///
|
///
|
||||||
|
=======
|
||||||
|
>>>>>>> renamed userContext to actionContext
|
||||||
/// Note that the url for "user" actions is automatically prefixed
|
/// Note that the url for "user" actions is automatically prefixed
|
||||||
/// with @LIT{_action}. This applies to all specified contexts. For example, if
|
/// with @LIT{_action}. This applies to all specified contexts. For example, if
|
||||||
/// the context contains "admin" and "user" and the url is @LIT{hallo}, then the
|
/// the context contains "admin" and "user" and the url is @LIT{hallo}, then the
|
||||||
/// action is accessible under @{/_action/hallo} - even for the admin context.
|
/// action is accessible under @{/_action/hallo} - even for the admin context.
|
||||||
///
|
///
|
||||||
/// It is possible to specify a list of contexts, in case an actions belongs to
|
|
||||||
/// more than one context.
|
|
||||||
///
|
|
||||||
/// @FA{options.callback}(@FA{request}, @FA{response})
|
/// @FA{options.callback}(@FA{request}, @FA{response})
|
||||||
///
|
///
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
|
Loading…
Reference in New Issue