openagent 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. data/README.md +64 -0
  2. data/lib/openagent.rb +4 -0
  3. data/lib/openagent/agent.rb +24 -0
  4. data/lib/openagent/client.rb +170 -0
  5. data/lib/openagent/errors.rb +30 -0
  6. data/lib/openagent/message_builder.rb +171 -0
  7. data/lib/openagent/ssl_config.rb +26 -0
  8. data/lib/openagent/version.rb +3 -0
  9. data/lib/openagent/xml_helpers.rb +24 -0
  10. data/lib/openagent/zone.rb +58 -0
  11. data/lib/sif/infra/common/application.rb +13 -0
  12. data/lib/sif/infra/common/condition.rb +13 -0
  13. data/lib/sif/infra/common/condition_group.rb +14 -0
  14. data/lib/sif/infra/common/data.rb +11 -0
  15. data/lib/sif/infra/common/error.rb +14 -0
  16. data/lib/sif/infra/common/event.rb +0 -0
  17. data/lib/sif/infra/common/event_object.rb +12 -0
  18. data/lib/sif/infra/common/extended_query.rb +15 -0
  19. data/lib/sif/infra/common/extended_query_results.rb +12 -0
  20. data/lib/sif/infra/common/header.rb +27 -0
  21. data/lib/sif/infra/common/message.rb +49 -0
  22. data/lib/sif/infra/common/object.rb +11 -0
  23. data/lib/sif/infra/common/object_data.rb +46 -0
  24. data/lib/sif/infra/common/other_id.rb +12 -0
  25. data/lib/sif/infra/common/property.rb +12 -0
  26. data/lib/sif/infra/common/protocol.rb +16 -0
  27. data/lib/sif/infra/common/provision.rb +17 -0
  28. data/lib/sif/infra/common/query.rb +16 -0
  29. data/lib/sif/infra/common/query_object.rb +12 -0
  30. data/lib/sif/infra/common/secure_channel.rb +12 -0
  31. data/lib/sif/infra/common/security.rb +13 -0
  32. data/lib/sif/infra/common/status.rb +16 -0
  33. data/lib/sif/infra/common/unprovision.rb +9 -0
  34. data/lib/sif/infra/common/vendor.rb +13 -0
  35. data/lib/sif/infra/messages/ack.rb +16 -0
  36. data/lib/sif/infra/messages/event.rb +12 -0
  37. data/lib/sif/infra/messages/get_agent_acl.rb +11 -0
  38. data/lib/sif/infra/messages/get_message.rb +11 -0
  39. data/lib/sif/infra/messages/get_zone_status.rb +10 -0
  40. data/lib/sif/infra/messages/ping.rb +10 -0
  41. data/lib/sif/infra/messages/provide.rb +16 -0
  42. data/lib/sif/infra/messages/provision.rb +18 -0
  43. data/lib/sif/infra/messages/register.rb +21 -0
  44. data/lib/sif/infra/messages/request.rb +16 -0
  45. data/lib/sif/infra/messages/responder.rb +9 -0
  46. data/lib/sif/infra/messages/response.rb +18 -0
  47. data/lib/sif/infra/messages/sleep.rb +11 -0
  48. data/lib/sif/infra/messages/subscribe.rb +12 -0
  49. data/lib/sif/infra/messages/system_control.rb +15 -0
  50. data/lib/sif/infra/messages/system_control_data.rb +39 -0
  51. data/lib/sif/infra/messages/unprovide.rb +12 -0
  52. data/lib/sif/infra/messages/unregister.rb +11 -0
  53. data/lib/sif/infra/messages/unsubscribe.rb +12 -0
  54. data/lib/sif/infra/messages/wakeup.rb +11 -0
  55. data/lib/sif/infra/messages/zone_status_role.rb +12 -0
  56. data/lib/sif/infra/objects/agent_acl.rb +19 -0
  57. data/lib/sif/infra/objects/zone_status.rb +30 -0
  58. data/lib/sif/models/common/address.rb +21 -0
  59. data/lib/sif/models/common/alert_message.rb +12 -0
  60. data/lib/sif/models/common/base_name.rb +12 -0
  61. data/lib/sif/models/common/calendar_summary.rb +28 -0
  62. data/lib/sif/models/common/code.rb +12 -0
  63. data/lib/sif/models/common/contact_info.rb +21 -0
  64. data/lib/sif/models/common/credits_attempted.rb +12 -0
  65. data/lib/sif/models/common/demographics.rb +31 -0
  66. data/lib/sif/models/common/dwelling_arrangement.rb +14 -0
  67. data/lib/sif/models/common/earned_status.rb +15 -0
  68. data/lib/sif/models/common/electronic_id.rb +12 -0
  69. data/lib/sif/models/common/email.rb +13 -0
  70. data/lib/sif/models/common/english_proficiency.rb +14 -0
  71. data/lib/sif/models/common/exceptionality_category.rb +13 -0
  72. data/lib/sif/models/common/grade_level.rb +12 -0
  73. data/lib/sif/models/common/grid_location.rb +12 -0
  74. data/lib/sif/models/common/identification_info.rb +12 -0
  75. data/lib/sif/models/common/language.rb +14 -0
  76. data/lib/sif/models/common/meal_status.rb +16 -0
  77. data/lib/sif/models/common/medical_alert_message.rb +12 -0
  78. data/lib/sif/models/common/meeting_time.rb +12 -0
  79. data/lib/sif/models/common/name.rb +19 -0
  80. data/lib/sif/models/common/other_code.rb +12 -0
  81. data/lib/sif/models/common/other_id.rb +12 -0
  82. data/lib/sif/models/common/phone_number.rb +15 -0
  83. data/lib/sif/models/common/principal_info.rb +12 -0
  84. data/lib/sif/models/common/race.rb +15 -0
  85. data/lib/sif/models/common/sced_code.rb +15 -0
  86. data/lib/sif/models/common/schedule_info.rb +14 -0
  87. data/lib/sif/models/common/schedule_info_override.rb +13 -0
  88. data/lib/sif/models/common/school_contact.rb +13 -0
  89. data/lib/sif/models/common/school_course_info_override.rb +18 -0
  90. data/lib/sif/models/common/street.rb +22 -0
  91. data/lib/sif/models/common/subject_area.rb +13 -0
  92. data/lib/sif/models/groups/data_model/term_span.rb +14 -0
  93. data/lib/sif/models/groups/sis/attendance_code_info.rb +23 -0
  94. data/lib/sif/models/groups/sis/calendar_date.rb +25 -0
  95. data/lib/sif/models/groups/sis/discipline_incident.rb +31 -0
  96. data/lib/sif/models/groups/sis/lea_info.rb +28 -0
  97. data/lib/sif/models/groups/sis/personal_representer.rb +22 -0
  98. data/lib/sif/models/groups/sis/school_course_info.rb +30 -0
  99. data/lib/sif/models/groups/sis/school_info.rb +32 -0
  100. data/lib/sif/models/groups/sis/section_info.rb +26 -0
  101. data/lib/sif/models/groups/sis/sis_representer.rb +15 -0
  102. data/lib/sif/models/groups/sis/staff_personal.rb +20 -0
  103. data/lib/sif/models/groups/sis/student_personal.rb +37 -0
  104. data/lib/sif/models/groups/sis/student_section_enrollment.rb +21 -0
  105. data/lib/sif/models/groups/sis/term_info.rb +29 -0
  106. data/lib/sif/representations/infra/common/application.rb +16 -0
  107. data/lib/sif/representations/infra/common/condition.rb +16 -0
  108. data/lib/sif/representations/infra/common/condition_group.rb +18 -0
  109. data/lib/sif/representations/infra/common/data.rb +17 -0
  110. data/lib/sif/representations/infra/common/error.rb +17 -0
  111. data/lib/sif/representations/infra/common/event.rb +0 -0
  112. data/lib/sif/representations/infra/common/event_object.rb +15 -0
  113. data/lib/sif/representations/infra/common/extended_query.rb +18 -0
  114. data/lib/sif/representations/infra/common/extended_query_results.rb +15 -0
  115. data/lib/sif/representations/infra/common/header.rb +23 -0
  116. data/lib/sif/representations/infra/common/message.rb +54 -0
  117. data/lib/sif/representations/infra/common/object.rb +14 -0
  118. data/lib/sif/representations/infra/common/object_data.rb +43 -0
  119. data/lib/sif/representations/infra/common/other_id.rb +15 -0
  120. data/lib/sif/representations/infra/common/property.rb +15 -0
  121. data/lib/sif/representations/infra/common/protocol.rb +22 -0
  122. data/lib/sif/representations/infra/common/provision.rb +38 -0
  123. data/lib/sif/representations/infra/common/query.rb +24 -0
  124. data/lib/sif/representations/infra/common/query_object.rb +15 -0
  125. data/lib/sif/representations/infra/common/secure_channel.rb +15 -0
  126. data/lib/sif/representations/infra/common/security.rb +18 -0
  127. data/lib/sif/representations/infra/common/status.rb +18 -0
  128. data/lib/sif/representations/infra/messages/ack.rb +25 -0
  129. data/lib/sif/representations/infra/messages/event.rb +19 -0
  130. data/lib/sif/representations/infra/messages/get_message.rb +12 -0
  131. data/lib/sif/representations/infra/messages/ping.rb +13 -0
  132. data/lib/sif/representations/infra/messages/provide.rb +19 -0
  133. data/lib/sif/representations/infra/messages/provision.rb +37 -0
  134. data/lib/sif/representations/infra/messages/register.rb +30 -0
  135. data/lib/sif/representations/infra/messages/request.rb +24 -0
  136. data/lib/sif/representations/infra/messages/response.rb +29 -0
  137. data/lib/sif/representations/infra/messages/sleep.rb +14 -0
  138. data/lib/sif/representations/infra/messages/subscribe.rb +19 -0
  139. data/lib/sif/representations/infra/messages/system_control.rb +23 -0
  140. data/lib/sif/representations/infra/messages/system_control_data.rb +31 -0
  141. data/lib/sif/representations/infra/messages/wakeup.rb +14 -0
  142. data/lib/sif/representations/models/common/address.rb +24 -0
  143. data/lib/sif/representations/models/common/alert_message.rb +16 -0
  144. data/lib/sif/representations/models/common/contact_info.rb +28 -0
  145. data/lib/sif/representations/models/common/credits_attempted.rb +15 -0
  146. data/lib/sif/representations/models/common/demographics.rb +43 -0
  147. data/lib/sif/representations/models/common/dwelling_arrangement.rb +18 -0
  148. data/lib/sif/representations/models/common/electronic_id.rb +16 -0
  149. data/lib/sif/representations/models/common/email.rb +16 -0
  150. data/lib/sif/representations/models/common/english_proficiency.rb +17 -0
  151. data/lib/sif/representations/models/common/identification_info.rb +16 -0
  152. data/lib/sif/representations/models/common/language.rb +19 -0
  153. data/lib/sif/representations/models/common/medical_alert_message.rb +15 -0
  154. data/lib/sif/representations/models/common/meeting_time.rb +16 -0
  155. data/lib/sif/representations/models/common/name.rb +22 -0
  156. data/lib/sif/representations/models/common/other_code.rb +15 -0
  157. data/lib/sif/representations/models/common/other_id.rb +15 -0
  158. data/lib/sif/representations/models/common/phone_number.rb +18 -0
  159. data/lib/sif/representations/models/common/principal_info.rb +15 -0
  160. data/lib/sif/representations/models/common/race.rb +18 -0
  161. data/lib/sif/representations/models/common/sced_code.rb +18 -0
  162. data/lib/sif/representations/models/common/schedule_info.rb +19 -0
  163. data/lib/sif/representations/models/common/schedule_info_override.rb +18 -0
  164. data/lib/sif/representations/models/common/school_contact.rb +17 -0
  165. data/lib/sif/representations/models/common/school_course_info_override.rb +21 -0
  166. data/lib/sif/representations/models/common/street.rb +26 -0
  167. data/lib/sif/representations/models/common/subject_area.rb +17 -0
  168. data/lib/sif/representations/models/groups/data_model/term_span.rb +20 -0
  169. data/lib/sif/representations/models/groups/sis/personal_representer.rb +38 -0
  170. data/lib/sif/representations/models/groups/sis/school_course_info.rb +36 -0
  171. data/lib/sif/representations/models/groups/sis/school_info.rb +47 -0
  172. data/lib/sif/representations/models/groups/sis/section_info.rb +29 -0
  173. data/lib/sif/representations/models/groups/sis/sis_representer.rb +17 -0
  174. data/lib/sif/representations/models/groups/sis/staff_personal.rb +19 -0
  175. data/lib/sif/representations/models/groups/sis/student_personal.rb +37 -0
  176. data/lib/sif/representations/models/groups/sis/student_section_enrollment.rb +26 -0
  177. data/lib/sif/representations/models/groups/sis/term_info.rb +30 -0
  178. data/lib/sif/sif.rb +249 -0
  179. data/openagent.gemspec +33 -0
  180. data/spec/agent_spec.rb +32 -0
  181. data/spec/client_spec.rb +96 -0
  182. data/spec/fixtures/agent.yaml +31 -0
  183. data/spec/fixtures/messages/event.xml +72 -0
  184. data/spec/fixtures/messages/response.xml +107 -0
  185. data/spec/fixtures/sif/attendance_code_info.xml +9 -0
  186. data/spec/fixtures/sif/calendar_date.xml +22 -0
  187. data/spec/fixtures/sif/calendar_summary.xml +21 -0
  188. data/spec/fixtures/sif/demographics.xml +33 -0
  189. data/spec/fixtures/sif/discipline_incident.xml +70 -0
  190. data/spec/fixtures/sif/lea_info.xml +55 -0
  191. data/spec/fixtures/sif/section_info.xml +1536 -0
  192. data/spec/fixtures/sif/sif_header.xml +12 -0
  193. data/spec/fixtures/sif/sif_message__response.xml +107 -0
  194. data/spec/fixtures/sif/sif_object_data.xml +5 -0
  195. data/spec/fixtures/sif/sif_protocol.xml +3 -0
  196. data/spec/fixtures/sif/sif_protocol__properties.xml +10 -0
  197. data/spec/fixtures/sif/sif_provide.xml +9 -0
  198. data/spec/fixtures/sif/sif_provision.xml +33 -0
  199. data/spec/fixtures/sif/sif_register.xml +20 -0
  200. data/spec/fixtures/sif/sif_request.xml +21 -0
  201. data/spec/fixtures/sif/sif_response.xml +19 -0
  202. data/spec/fixtures/sif/sif_system_control.xml +10 -0
  203. data/spec/fixtures/sif/stu_pers_resp.xml +2 -0
  204. data/spec/fixtures/sif/student_personal.xml +42 -0
  205. data/spec/fixtures/zone.yaml +6 -0
  206. data/spec/message_builder_spec.rb +81 -0
  207. data/spec/response_spec.rb +35 -0
  208. data/spec/sif/representations/xml/header_spec.rb +30 -0
  209. data/spec/sif/representations/xml/message_spec.rb +20 -0
  210. data/spec/sif/representations/xml/object_data_spec.rb +19 -0
  211. data/spec/sif/representations/xml/protocol_spec.rb +34 -0
  212. data/spec/sif/representations/xml/provide_spec.rb +19 -0
  213. data/spec/sif/representations/xml/provision_spec.rb +56 -0
  214. data/spec/sif/representations/xml/register_spec.rb +17 -0
  215. data/spec/sif/representations/xml/request_spec.rb +17 -0
  216. data/spec/sif/representations/xml/response_spec.rb +16 -0
  217. data/spec/sif/representations/xml/spec_helper.rb +7 -0
  218. data/spec/sif/representations/xml/student_personal_spec.rb +69 -0
  219. data/spec/spec_helper.rb +7 -0
  220. data/spec/zone_spec.rb +26 -0
  221. metadata +455 -0
@@ -0,0 +1,20 @@
1
+ module SIF
2
+ module Model
3
+ module Group
4
+ module SIS
5
+ class StaffPersonal
6
+ require_relative 'personal_representer'
7
+ require_relative 'sis_representer'
8
+
9
+ include Virtus.model
10
+ include PersonalRepresenter
11
+ include SISRepresenter
12
+
13
+ attribute :title, String
14
+ attribute :employee_personal_ref_id, String
15
+
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,37 @@
1
+ require 'date'
2
+
3
+ module SIF
4
+ module Model
5
+ module Group
6
+ module SIS
7
+ class StudentPersonal
8
+ require_relative 'personal_representer'
9
+ require_relative 'sis_representer'
10
+
11
+ include Virtus.model
12
+ include PersonalRepresenter
13
+ include SISRepresenter
14
+
15
+ attribute :projected_graduation_year, Integer
16
+ attribute :on_time_graduation_year, Integer
17
+ attribute :graduation_date, Date
18
+ attribute :most_recent, String
19
+ attribute :acceptable_use_policy, String
20
+ attribute :idea, String
21
+ attribute :migrant, String
22
+ attribute :title1, String
23
+ attribute :gifted_talented, String
24
+ attribute :ell, String
25
+ attribute :homeless, String
26
+ attribute :section504, String
27
+ attribute :vocational_concentrator, String
28
+ attribute :immigrant, String
29
+ attribute :neglected_delinquent, String
30
+
31
+ attribute :alert_messages, Array[Common::AlertMessage]
32
+ attribute :medical_alert_messages, Array[Common::MedicalAlertMessage]
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,21 @@
1
+ module SIF
2
+ module Model
3
+ module Group
4
+ module SIS
5
+ class StudentSectionEnrollment
6
+ include Virtus.model
7
+ include SISRepresenter
8
+
9
+ attribute :student_personal_ref_id, String
10
+ attribute :section_info_ref_id, String
11
+ attribute :school_year, String
12
+ attribute :entry_date, Date
13
+ attribute :exit_date, Date
14
+ attribute :schedule_info_overrides, Common::ScheduleInfoOverride
15
+ attribute :credits_attempted, Common::CreditsAttempted
16
+
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,29 @@
1
+ require 'date'
2
+ require_relative 'sis_representer'
3
+
4
+ module SIF
5
+ module Model
6
+ module Group
7
+ module SIS
8
+ class TermInfo
9
+
10
+ include Virtus.model
11
+ include SISRepresenter
12
+
13
+ attribute :school_info_ref_id, String
14
+ attribute :school_year, String
15
+ attribute :start_date, Date
16
+ attribute :end_date, Date
17
+ attribute :description, String
18
+ attribute :relative_duration, Float
19
+ attribute :term_code, String
20
+ attribute :track, String
21
+ attribute :term_span, SIF::Model::Group::DataModel::TermSpan
22
+ attribute :marking_term, String
23
+ attribute :scheduling_term, String
24
+ attribute :attendance_term, String
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,16 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class Application < SIF::Represent
6
+
7
+ self.representation_wrap = 'SIF_Application'
8
+
9
+ property :vendor, :as => 'SIF_Vendor'
10
+ property :product, :as => 'SIF_Product'
11
+ property :version, :as => 'SIF_Version'
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class Condition < SIF::Represent
6
+
7
+ self.representation_wrap = 'SIF_Condition'
8
+
9
+ property :element, :as => 'SIF_Element'
10
+ property :operator, :as => 'SIF_Operator'
11
+ property :value, :as => 'SIF_Value'
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,18 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class ConditionGroup < SIF::Represent
6
+
7
+ self.representation_wrap = 'SIF_ConditionGroup'
8
+
9
+ property :type, :as => 'Type', :attribute => true
10
+
11
+ collection :conditions, :as => 'SIF_Conditions',
12
+ :class => SIF::Infra::Common::Condition,
13
+ :decorator => Condition
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,17 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class Message < SIF::Represent; end
6
+ class Data < SIF::Represent
7
+
8
+ self.representation_wrap = 'SIF_Data'
9
+
10
+ property :message, :as => 'SIF_Message',
11
+ :class => SIF::Infra::Common::Message,
12
+ :decorator => Message
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class Error < SIF::Represent
6
+
7
+ self.representation_wrap = 'SIF_Error'
8
+
9
+ property :category, :as => 'SIF_Category'
10
+ property :code, :as => 'SIF_Code'
11
+ property :desc, :as => 'SIF_Desc'
12
+ property :extended_desc, :as => 'SIF_ExtendedDesc'
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
File without changes
@@ -0,0 +1,15 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class EventObject < SIF::Represent
6
+
7
+ self.representation_wrap = 'SIF_EventObject'
8
+
9
+ property :object_name, :as => "ObjectName", :attribute => true
10
+ property :action, :as => "Action", :attribute => true
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,18 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class ExtendedQuery < SIF::Represent
6
+
7
+ self.representation_wrap = 'SIF_ExtendedQuery'
8
+
9
+ property :destination_provider, :as => 'SIF_DestinationProvider'
10
+ property :select, :as => 'SIF_Select'
11
+ property :from, :as => 'SIF_From'
12
+ property :where, :as => 'SIF_Where'
13
+ property :order_by, :as => 'SIF_OrderBy'
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,15 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class ExtendedQueryResults < SIF::Represent
6
+
7
+ self.representation_wrap = 'SIF_ExtendedQueryResults'
8
+
9
+ property :column_headers, :as => 'SIF_ColumnHeaders'
10
+ property :rows, :as => 'SIF_Rows'
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,23 @@
1
+ require_relative 'security'
2
+
3
+ module SIF
4
+ module Representation
5
+ module Infra
6
+ module Common
7
+ class Header < SIF::Represent
8
+
9
+ self.representation_wrap = 'SIF_Header'
10
+
11
+ property :msg_id, :as => 'SIF_MsgId'
12
+ property :timestamp, :as => 'SIF_Timestamp'
13
+ property :security, :as => 'SIF_Security',
14
+ :class => SIF::Infra::Common::Security,
15
+ :decorator => Security
16
+ property :source_id, :as => 'SIF_SourceId'
17
+ property :destination_id, :as => 'SIF_DestinationId'
18
+ # collection :contexts, :class => XML::Context
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,54 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class Message < SIF::Represent
6
+
7
+ remove_namespaces!
8
+
9
+ self.representation_wrap = 'SIF_Message'
10
+
11
+ property :xmlns, :attribute => true
12
+ property :version, :attribute => true, :as => :Version
13
+
14
+ property :ack, :as => 'SIF_Ack',
15
+ :class => SIF::Infra::Message::Ack,
16
+ :decorator => Infra::Message::Ack
17
+ property :event, :as => 'SIF_Event',
18
+ :class => SIF::Infra::Message::Event,
19
+ :decorator => Infra::Message::Event
20
+ property :provide, :as => 'SIF_Provide',
21
+ :class => SIF::Infra::Message::Provide,
22
+ :decorator => Infra::Message::Provide
23
+ property :provision, :as => 'SIF_Provision',
24
+ :class => SIF::Infra::Message::Provision,
25
+ :decorator => Infra::Message::Provision
26
+ property :register, :as => 'SIF_Register',
27
+ :class => SIF::Infra::Message::Register,
28
+ :decorator => Infra::Message::Register
29
+ property :request, :as => 'SIF_Request',
30
+ :class => SIF::Infra::Message::Request,
31
+ :decorator => Infra::Message::Request
32
+ property :response, :as => 'SIF_Response',
33
+ :class => SIF::Infra::Message::Response,
34
+ :decorator => Infra::Message::Response
35
+ property :subscribe, :as => 'SIF_Subscribe',
36
+ :class => SIF::Infra::Message::Subscribe,
37
+ :decorator => Infra::Message::Subscribe
38
+ property :system_control, :as => 'SIF_SystemControl',
39
+ :class => SIF::Infra::Message::SystemControl,
40
+ :decorator => Infra::Message::SystemControl
41
+ # property :unprovide, :as => 'SIF_Unprovide',
42
+ # :class => SIF::Infra::Message::Unprovide,
43
+ # :decorator => Infra::Message::Unprovide
44
+ # property :unregister, :as => 'SIF_Unregister',
45
+ # :class => SIF::Infra::Message::Unregister,
46
+ # :decorator => Infra::Message::Unregister
47
+ # property :unsubscribe, :as => 'SIF_Unsubscribe',
48
+ # :class => SIF::Infra::Message::Unsubscribe,
49
+ # :decorator => Infra::Message::Unsubscribe
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,14 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class Object < SIF::Represent
6
+
7
+ self.representation_wrap = 'SIF_Object'
8
+
9
+ property :object_name, :attribute => true, :as => 'ObjectName'
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,43 @@
1
+ require_relative 'event_object'
2
+
3
+ module SIF
4
+ module Representation
5
+ module Infra
6
+ module Common
7
+ class ObjectData < SIF::Represent
8
+
9
+ self.representation_wrap = 'SIF_ObjectData'
10
+
11
+ property :event_object, :as => 'SIF_EventObject',
12
+ :class => SIF::Infra::Common::EventObject,
13
+ :decorator => EventObject
14
+
15
+ # collection :lea_infos, :as => 'LEAInfo',
16
+ # :class => SIF::Model::Group::SIS::LEAInfo,
17
+ # :decorator => Model::Group::SIS::LEAInfo
18
+ collection :school_course_infos, :as => 'SchoolCourseInfo',
19
+ :class => SIF::Model::Group::SIS::SchoolCourseInfo,
20
+ :decorator => Model::Group::SIS::SchoolCourseInfo
21
+ collection :school_infos, :as => 'SchoolInfo',
22
+ :class => SIF::Model::Group::SIS::SchoolInfo,
23
+ :decorator => Model::Group::SIS::SchoolInfo
24
+ collection :staff_personals, :as => 'StaffPersonal',
25
+ :class => SIF::Model::Group::SIS::StaffPersonal,
26
+ :decorator => Model::Group::SIS::StaffPersonal
27
+ collection :student_personals, :as => 'StudentPersonal',
28
+ :class => SIF::Model::Group::SIS::StudentPersonal,
29
+ :decorator => Model::Group::SIS::StudentPersonal
30
+ collection :student_section_enrollments, :as => 'StudentSectionEnrollment',
31
+ :class => SIF::Model::Group::SIS::StudentSectionEnrollment,
32
+ :decorator => Model::Group::SIS::StudentSectionEnrollment
33
+ collection :term_infos, :as => 'TermInfo',
34
+ :class => SIF::Model::Group::SIS::TermInfo,
35
+ :decorator => Model::Group::SIS::TermInfo
36
+ collection :section_infos, :as => 'SectionInfo',
37
+ :class => SIF::Model::Group::SIS::SectionInfo,
38
+ :decorator => Model::Group::SIS::SectionInfo
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,15 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class OtherId < SIF::Represent
6
+
7
+ self.representation_wrap = 'SIF_OtherId'
8
+
9
+ property :type, :as => 'Type', :attribute => true
10
+ property :value, :content => true
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class Property < SIF::Represent
6
+
7
+ self.representation_wrap = 'SIF_Property'
8
+
9
+ property :name, :as => 'SIF_Name'
10
+ property :value, :as => 'SIF_Value'
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,22 @@
1
+ module SIF
2
+ module Representation
3
+ module Infra
4
+ module Common
5
+ class Protocol < SIF::Represent
6
+
7
+ self.representation_wrap = 'SIF_Ack'
8
+
9
+ property :original_source_id, :as => 'SIF_OriginalSourceId'
10
+ property :original_msg_id, :as => 'SIF_OriginalMsgId'
11
+
12
+ property :type, :as => 'Type', :attribute => true
13
+ property :secure, :as => 'Secure', :attribute => true
14
+ property :url, :as => 'SIF_URL'
15
+ collection :properties, :as => 'SIF_Property',
16
+ :class => SIF::Infra::Common::Property,
17
+ :decorator => Property
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end