Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-10801

Add contextId (siteId) field to Event

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0, 1.5.0, 1.5.1, 2.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.x, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.x, 2.3.0, 2.3.1, 2.3.x, 2.4.0, 2.4.1, 2.4.x, 2.5.0, 2.5.2, trunk
    • Fix Version/s: 2.6.0
    • Labels:
      None
    • Environment:
      Any

      Description

      Currently, there is no efficient and deterministic way to know in which context (siteId) an event was generated. The current work-around for this is to parse the Ref field and try to guess the context.

      Events can be sakai scoped (with new contextId field set to null) or site scoped (contextId set to siteId). This would probably involve adding a column to SAKAI_EVENT and a setter a getter for it in the Event class.
      1. SAK-10801.patch
        6 kB
        Andrew Poland
      2. search.diff
        1 kB
        Stephen Marquard

        Issue Links

          Activity

          Repository Revision Date User Message
          Sakai Trunk Repository #47258 Fri Jun 06 14:11:36 CDT 2008 stephen.marquard@uct.ac.za Branch for SAK-10801 - Add contextId (siteId) field to Event
          Files Changed
          ADD /event/branches/SAK-10801 (from /event/trunk)
          Repository Revision Date User Message
          Sakai Trunk Repository #47271 Fri Jun 06 15:15:38 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Pass 1 - use reference, failing that tool placement to find context
          Files Changed
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTracking.java
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/BaseEventTrackingService.java
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/sql/mysql/sakai_event.sql
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlMySql.java
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlDefault.java
          MODIFY /event/branches/SAK-10801/event-api/api/src/java/org/sakaiproject/event/api/Event.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47288 Sat Jun 07 14:30:33 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Read back events from db, allow event clients to set context
          Files Changed
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTracking.java
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/BaseEventTrackingService.java
          MODIFY /event/branches/SAK-10801/event-api/api/src/java/org/sakaiproject/event/api/EventTrackingService.java
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlDefault.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47289 Sat Jun 07 14:39:36 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Branch to match API updates
          Files Changed
          ADD /memory/branches/SAK-10801 (from /memory/trunk)
          Repository Revision Date User Message
          Sakai Trunk Repository #47290 Sat Jun 07 14:40:39 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Branch to match API updates in event branch
          Files Changed
          ADD /entitybroker/branches/SAK-10801 (from /entitybroker/trunk)
          Repository Revision Date User Message
          Sakai Trunk Repository #47291 Sat Jun 07 15:03:22 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Add new mock methods
          Files Changed
          MODIFY /memory/branches/SAK-10801/memory-impl/impl/src/test/org/sakai/memory/impl/test/MockEventTrackingService.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47292 Sat Jun 07 15:07:43 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Add new mock methods
          Files Changed
          MODIFY /entitybroker/branches/SAK-10801/impl/src/test/org/sakaiproject/entitybroker/impl/mocks/FakeEvent.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47295 Sun Jun 08 04:54:18 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Add new methods to static cover
          Files Changed
          MODIFY /event/branches/SAK-10801/event-api/api/src/java/org/sakaiproject/event/cover/EventTrackingService.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47297 Sun Jun 08 09:36:40 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Add support for all dbs
          Files Changed
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlMsSql.java
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/BaseEventTrackingService.java
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/sql/hsqldb/sakai_event.sql
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/sql/mysql/sakai_event.sql
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlDb2.java
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/sql/db2/sakai_event.sql
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlMySql.java
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlOracle.java
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/sql/mssql/sakai_event.sql
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/sql/oracle/sakai_event.sql
          Repository Revision Date User Message
          Sakai Trunk Repository #47462 Sat Jun 14 11:46:29 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Simplify API, avoid static cover, field length to 255
          Files Changed
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/BaseEventTrackingService.java
          MODIFY /event/branches/SAK-10801/event-impl/pack/src/webapp/WEB-INF/components.xml
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/sql/hsqldb/sakai_event.sql
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/sql/mysql/sakai_event.sql
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/sql/db2/sakai_event.sql
          MODIFY /event/branches/SAK-10801/event-api/api/src/java/org/sakaiproject/event/api/EventTrackingService.java
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/sql/mssql/sakai_event.sql
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/sql/oracle/sakai_event.sql
          Repository Revision Date User Message
          Sakai Trunk Repository #47463 Sat Jun 14 11:49:27 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Remove extra method from static cover
          Files Changed
          MODIFY /event/branches/SAK-10801/event-api/api/src/java/org/sakaiproject/event/cover/EventTrackingService.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47464 Sat Jun 14 11:55:11 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Add services to test class
          Files Changed
          MODIFY /event/branches/SAK-10801/event-impl/impl/src/java/org/sakaiproject/event/impl/EventTrackingTest.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47465 Sat Jun 14 12:13:22 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Don't need extra method
          Files Changed
          MODIFY /memory/branches/SAK-10801/memory-impl/impl/src/test/org/sakai/memory/impl/test/MockEventTrackingService.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47466 Sat Jun 14 12:21:43 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Add additional method in test class for new event API
          Files Changed
          MODIFY /search/trunk/search-impl/impl/src/test/org/sakaiproject/search/mock/MockEventTrackingService.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47467 Sat Jun 14 12:24:31 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Add contextId (siteId) field to Event (merge to trunk)
          Files Changed
          MODIFY /event/trunk/event-impl/impl/src/java/org/sakaiproject/event/impl/BaseEventTrackingService.java
          MODIFY /event/trunk/event-impl/pack/src/webapp/WEB-INF/components.xml
          MODIFY /event/trunk/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlDb2.java
          MODIFY /event/trunk/event-impl/impl/src/sql/db2/sakai_event.sql
          MODIFY /event/trunk/event-impl/impl/src/java/org/sakaiproject/event/impl/EventTrackingTest.java
          MODIFY /event/trunk/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlOracle.java
          MODIFY /event/trunk/event-api/api/src/java/org/sakaiproject/event/api/Event.java
          MODIFY /event/trunk/event-impl/impl/src/sql/oracle/sakai_event.sql
          MODIFY /event/trunk/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlMsSql.java
          MODIFY /event/trunk/event-impl/impl/src/sql/hsqldb/sakai_event.sql
          MODIFY /event/trunk/event-api/api/src/java/org/sakaiproject/event/cover/EventTrackingService.java
          MODIFY /event/trunk/event-impl/impl/src/sql/mysql/sakai_event.sql
          MODIFY /event/trunk/event-api/api/src/java/org/sakaiproject/event/api/EventTrackingService.java
          MODIFY /event/trunk/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlMySql.java
          MODIFY /event/trunk/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTrackingServiceSqlDefault.java
          MODIFY /event/trunk/event-impl/impl/src/sql/mssql/sakai_event.sql
          MODIFY /event/trunk/event-impl/impl/src/java/org/sakaiproject/event/impl/ClusterEventTracking.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47468 Sat Jun 14 12:28:59 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Add additional method in test class for new event API
          Files Changed
          MODIFY /memory/trunk/memory-impl/impl/src/test/org/sakai/memory/impl/test/MockEventTrackingService.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47469 Sat Jun 14 12:47:20 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Db conversions: CONTEXT field in SAKAI_EVENT
          Files Changed
          MODIFY /reference/trunk/docs/conversion/sakai_2_6_0_mysql_conversion.sql
          MODIFY /reference/trunk/docs/conversion/sakai_2_6_0_oracle_conversion.sql
          Repository Revision Date User Message
          Sakai Trunk Repository #47471 Sun Jun 15 02:09:37 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Update FakeEvent for event API change
          Files Changed
          MODIFY /entitybroker/trunk/impl/src/test/org/sakaiproject/entitybroker/impl/mocks/FakeEvent.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47472 Sun Jun 15 03:11:20 CDT 2008 stephen.marquard@uct.ac.za SAK-10801 Implement getContext() for event API changes
          Files Changed
          MODIFY /content/trunk/content-impl-providers/impl/src/java/org/sakaiproject/content/providers/ResourceEventVoterHelper.java
          Repository Revision Date User Message
          Sakai Trunk Repository #47496 Mon Jun 16 09:57:52 CDT 2008 stephen.marquard@uct.ac.za Cleanup branch for merged SAK-10801
          Files Changed
          DEL /memory/branches/SAK-10801
          Repository Revision Date User Message
          Sakai Trunk Repository #47497 Mon Jun 16 09:58:24 CDT 2008 stephen.marquard@uct.ac.za Cleanup branch for merged SAK-10801
          Files Changed
          DEL /entitybroker/branches/SAK-10801
          Repository Revision Date User Message
          Sakai Trunk Repository #47498 Mon Jun 16 09:59:11 CDT 2008 stephen.marquard@uct.ac.za Cleanup branch for merged SAK-10801
          Files Changed
          DEL /event/branches/SAK-10801

            People

            • Assignee:
              Stephen Marquard
              Reporter:
              Nuno Fernandes
            • Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development