Class: UU::OS::VUC::Context
- Inherits:
-
Object
- Object
- UU::OS::VUC::Context
- Defined in:
- uu_adk-0.28.16/lib/uu/os/vuc/context.rb
Overview
Use case context object.
Instance Attribute Summary (collapse)
-
- (String) access_role_uri
readonly
UESURI of access role.
-
- (String) application_instance_uri
readonly
UESURI of application instance.
-
- (String) application_instance_url_path
readonly
URL where application instance is deployed.
-
- (Hash) attributes
readonly
Attributes to be passed between control methods of VUC (within single UC execution).
-
- (String) controller_class
readonly
Controller realization class.
-
- (String) controller_revision
readonly
Controller realization version.
-
- (String) controller_url_path
readonly
URL where application controller is deployed.
-
- (String) execution_id
readonly
Use case execution ID.
-
- (String) executive_role_uri
readonly
UESURI of executive role.
-
- (String) jwt_token
readonly
Authentication token.
-
- (String) main_entity_uri
readonly
UESURI of main entity.
-
- (Hash) parameters
readonly
Use case parameters.
-
- (String) referrer_uri
readonly
URI of use case referrer.
-
- (String) territory_uri
readonly
UESURI of territory.
-
- (String) use_case_realization_uri
readonly
UESURI of use case realization.
-
- (String) use_case_uri
readonly
UESURI of use case.
Instance Method Summary (collapse)
-
- (Context) initialize(data = nil)
constructor
Creates new instance of use case context.
Constructor Details
- (Context) initialize(data = nil)
Creates new instance of use case context.
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 81 def initialize(data = nil) if data.nil? @raw_attrs = {} return end if data.kind_of?String data = JSON.parse(data, :symbolize_names => true) end if data.kind_of?Hash @raw_attrs = data elsif data.kind_of?Context if data.raw_attrs @raw_attrs = data.raw_attrs else @raw_attrs = {} end else raise ArgumentError.new("Context data must be JSON String or Hash, but was #{data.class}.") end end |
Instance Attribute Details
- (String) access_role_uri (readonly)
UESURI of access role.
60 61 62 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 60 def access_role_uri @access_role_uri end |
- (String) application_instance_uri (readonly)
UESURI of application instance.
28 29 30 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 28 def application_instance_uri @application_instance_uri end |
- (String) application_instance_url_path (readonly)
URL where application instance is deployed.
32 33 34 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 32 def application_instance_url_path @application_instance_url_path end |
- (Hash) attributes (readonly)
Attributes to be passed between control methods of VUC (within single UC execution).
76 77 78 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 76 def attributes @attributes end |
- (String) controller_class (readonly)
Controller realization class.
44 45 46 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 44 def controller_class @controller_class end |
- (String) controller_revision (readonly)
Controller realization version.
48 49 50 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 48 def controller_revision @controller_revision end |
- (String) controller_url_path (readonly)
URL where application controller is deployed.
40 41 42 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 40 def controller_url_path @controller_url_path end |
- (String) execution_id (readonly)
Use case execution ID.
36 37 38 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 36 def execution_id @execution_id end |
- (String) executive_role_uri (readonly)
UESURI of executive role.
64 65 66 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 64 def executive_role_uri @executive_role_uri end |
- (String) jwt_token (readonly)
Authentication token.
68 69 70 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 68 def jwt_token @jwt_token end |
- (String) main_entity_uri (readonly)
UESURI of main entity.
52 53 54 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 52 def main_entity_uri @main_entity_uri end |
- (Hash) parameters (readonly)
Use case parameters.
72 73 74 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 72 def parameters @parameters end |
- (String) referrer_uri (readonly)
URI of use case referrer. Value may be nil
(e.g. in case of
session-free-link navigation).
16 17 18 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 16 def referrer_uri @referrer_uri end |
- (String) territory_uri (readonly)
UESURI of territory.
56 57 58 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 56 def territory_uri @territory_uri end |
- (String) use_case_realization_uri (readonly)
UESURI of use case realization.
24 25 26 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 24 def use_case_realization_uri @use_case_realization_uri end |
- (String) use_case_uri (readonly)
UESURI of use case.
20 21 22 |
# File 'uu_adk-0.28.16/lib/uu/os/vuc/context.rb', line 20 def use_case_uri @use_case_uri end |