OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

regrep message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [farrukh-13] Fix AuditableEvent so multiple actions can be part ofsame event



This issue has been added to our RegRep4 wiki page at:

<http://wiki.oasis-open.org/regrep/documents/plan/regrep4>

Currently an AuditableEvent allows only one action. If a request does an 
update as well as insert, it results in separate 2 separate auditable 
events. The fix is to modify rim.xsd so an AuditableEvent has 1 or more 
Actions where an Action may have 1 or more affectedObjects.

below is a listing of old and proposed new schema for regrep 4. Please 
share your thoughts.

*Current Schema*

<complexType name="AuditableEventType">
    <annotation>
      <documentation xml:lang="en">An Event that forms an audit trail in 
ebXML Registry.</documentation>
    </annotation>
    <complexContent>
      <extension base="tns:RegistryObjectType">
        <sequence>
          <!-- List of all objects that have been effected by this event -->
          <element maxOccurs="1" minOccurs="1" name="affectedObjects" 
type="tns:ObjectRefListType"/>
        </sequence>
        <attribute name="eventType" type="tns:referenceURI" use="required"/>
        <attribute name="timestamp" type="dateTime" use="required"/>
        <attribute name="user" type="tns:referenceURI" use="required"/>
        <attribute name="requestId" type="tns:referenceURI" use="required"/>
      </extension>
    </complexContent>

*Proposed Schema*

  <complexType abstract="true" name="ActionType">
    <annotation>
      <documentation>Abstract Base type for all types of 
Actions.</documentation>
    </annotation>
      <sequence>
        <!-- List of all objects affected by this event-->
        <element maxOccurs="1" minOccurs="1" name="affectedObjects" 
type="tns:RegistryObjectListType"/>
      </sequence>
      <attribute name="action" type="tns:referenceURI" use="required"/>
  </complexType>
 
  <complexType name="AuditableEventType">
    <annotation>
      <documentation xml:lang="en">An Event that forms an audit trail in 
ebXML Registry.</documentation>
    </annotation>
    <complexContent>
      <extension base="tns:RegistryObjectType">
        <sequence>
          <!-- List of all actions within this event -->
          <element maxOccurs="unbounded" minOccurs="1" name="actions" 
type="tns:ActionType"/>
        </sequence>
        <attribute name="timestamp" type="dateTime" use="required"/>
        <attribute name="user" type="tns:referenceURI" use="required"/>
        <attribute name="requestId" type="tns:referenceURI" use="required"/>
      </extension>
    </complexContent>
  </complexType>
  <element name="AuditableEvent" type="tns:AuditableEventType" 
substitutionGroup="tns:Identifiable"/>

-- 
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]