Class: Rhoconnect::Controller::SourceAdapterBase
- Defined in:
- lib/rhoconnect/controller/source_adapter_base.rb
Constant Summary
Constants included from Rhoconnect
API_TOKEN_HEADER, API_VERSION, APP_NAME, Rhoconnect::CLIENT_ID_HEADER, Rhoconnect::CURRENT_APP, Rhoconnect::CURRENT_CLIENT, Rhoconnect::CURRENT_REQUEST, Rhoconnect::CURRENT_SOURCE, Rhoconnect::CURRENT_USER, PAGE_OBJECT_COUNT_HEADER, PAGE_TOKEN_HEADER, QUERY_RES, SYNC_VERSION, SourceAdapter, SourceAdapterException, SourceAdapterLoginException, SourceAdapterLogoffException, SourceAdapterObjectConflictErrorException, SourceAdapterServerErrorException, SourceAdapterServerTimeoutException, UNKNOWN_CLIENT, UNKNOWN_SOURCE, VERSION
Class Method Summary collapse
-
.register_controller(source_name) ⇒ Object
create SourceAdapterController class for every source.
Methods inherited from Base
_prefix, _rest_name, delete, get, post, put, rest_path
Methods inherited from Server
Methods included from Rhoconnect::Condition::AdminRequired
extended, #include_admin_required_condition
Methods included from Rhoconnect::Condition::LoginRequired
extended, #include_login_required_condition
Methods included from Rhoconnect::Condition::SourceRequired
extended, #include_source_required_condition
Methods included from Rhoconnect::Condition::ClientRequired
extended, #include_client_required_condition
Methods included from Rhoconnect::Condition::Verbs
extended, #include_verbs_condition
Methods included from Rhoconnect::Condition::VerifySuccess
extended, #include_verify_success_condition
Methods included from Rhoconnect::Condition::AddParameter
extended, #include_add_parameter_condition
Methods included from Handler::Authenticate::ExecuteMethods
#execute_admin_authenticate_handler, #execute_authenticate_handler, #execute_rps_authenticate_handler
Methods included from Handler::PluginCallbacks::ExecuteMethods
#do_fast_delete, #do_fast_insert, #do_fast_update, #execute_push_objects_handler
Methods included from Handler::Search::ExecuteMethods
Methods included from Handler::Changes::ExecuteMethods
#_extract_cud_params, #_run_cud_handler, #execute_create_handler, #execute_cud_handler, #execute_delete_handler, #execute_update_handler
Methods included from Handler::Query::ExecuteMethods
Methods included from Rhoconnect
#add_to_url_map, #app, #bootstrap, #camelize, #check_and_add, #check_default_secret!, #check_for_schema_field!, #create_admin_user, #create_predefined_source, #environment, #expire_bulk_data, #get_config, #get_random_identifier, #get_token, #getelement, #lap_timer, #log, #register_predefined_source, #remove_from_url_map, #setelement, settings, shutdown, #source_config, #start_app, #start_nodejs_channels, #start_timer, #timenow, #under_score, #unzip_file, #url_map, #which
Class Method Details
.register_controller(source_name) ⇒ Object
create SourceAdapterController class for every source
5 6 7 8 9 10 11 |
# File 'lib/rhoconnect/controller/source_adapter_base.rb', line 5 def self.register_controller(source_name) return if Object.const_defined?("#{source_name}Controller") # klass will be added automatically to the URL map klass = Object.const_set("#{source_name}Controller", Class.new(Rhoconnect::Controller::SourceAdapterBase)) klass.register Rhoconnect::EndPoint klass.register Rhoconnect::Handler::Sync end |