Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1.

...

 Export all audit events

...

Service endpoint

http://domain/rest/node_id/fcr:exportAudit

Request parameters

Name

Description

Type

Mandatory

Options/Examples

toDate

Audit events occurred till the date specified

Timestamp

No

2012-08-03T10:02:00.169Z

fromDate

Audit events occurred since the date specifed

Timestamp

No

2012-08-01T10:02:00.169Z

format

The encoding format for the response

String

No

Application/rdf+xml (default)

Text/xml

 

Example:

http://localhost:8080/fcrepo-webapp-4.0.0/rest/1d/d0/f3/16/1dd0f316-7b8c-4f10-8e40-b0c15e5f7401/fcr:exportAudit?format=application/rdf+xml&toDate=2012-08-03T10:02:00.169Z&fromDate=2012-08-01T10:02:00.169Z

Response

TBA

2. Export all audit events associated with a node where the events were created by a certain user

Service endpoint

http://domain/rest/node_id/fcr:exportAudit

Request parameters

Name

Description

Type

Mandatory

Options/Examples

toDate

Audit events occurred till the date specified

Timestamp

No

2012-08-03T10:02:00.169Z

fromDate

Audit events occurred since the date specified

Timestamp

No

2012-08-01T10:02:00.169Z

format

The encoding format for the response

String

No

Application/rdf+xml (default)

Text/xml

agent

The identifier of the user who created the event(s)

String

No

johnSmith, fedoraAdmin

 

Example

http://localhost:8080/fcrepo-webapp-4.0.0/rest/1d/d0/f3/16/1dd0f316-7b8c-4f10-8e40-b0c15e5f7401/fcr:exportAudit?format=application/rdf+xml&toDate=2012-08-03T10:02:00.169Z&fromDate=2012-08-01T10:02:00.169Z&agent=fedoraAdmin

Response

TBA

3. Export all audit events of a particular type associated with a node

Service endpoint

http://domain/rest/node_id/fcr:exportAudit

Request parameters

Name

Description

Type

Mandatory

Options/Examples

toDate

Audit events occurred till the date specified

Timestamp

No

2012-08-03T10:02:00.169Z

fromDate

Audit events occurred since the date specified

Timestamp

No

2012-08-01T10:02:00.169Z

format

The encoding format for the response

String

No

Application/rdf+xml (default)

Text/xml

eventType

The type of the event requested

String

No

e.g. Ingest, Update - taken from a control vocabulary or an RDF ontology (TBC)

 

Example

http://localhost:8080/fcrepo-webapp-4.0.0/rest/1d/d0/f3/16/1dd0f316-7b8c-4f10-8e40-b0c15e5f7401/fcr:exportAudit?format=application/rdf+xml&toDate=2012-08-03T10:02:00.169Z&fromDate=2012-08-01T10:02:00.169Z&eventType=Ingest

Response

occurred/captured in the repository

This query is expected to return all audit events recorded in a Fedora 4 repository. The query results may be filtered by:

  • a specific date range, within which the events occurred,
  • a certain type of events,
  • a particular user associated with the events, or
  • any combination of the above

Example: TBA

2. Export all audit events associated with a resource

This query is expected to return all audit events associated with a specific Fedora 4 resource. As with the query 1, the results of this query may also be filtered by:

  • a specific date range, within which the events occurred,
  • a certain type of events,
  • a particular user associated with the events, or
  • any combination of the above

Example: TBA

 

Additional queries/use cases

  • Adding custom event
  • Deleting custom event

...