Ticket #203 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

Fix article delete and setState

Reported by: ronald Assigned to: ronald
Priority: low Milestone:
Component: topaz Version: 0.5-SNAPSHOT
Keywords: article Cc:
Blocking: Blocked By:

Description

Currently delete(purge=false) has two problems:

  1. It doesn't clean out the RDF from the triplestore
  2. It just sets the state on the Fedora object to "D".

Additionally, setState() directly manipulates the Fedora object state - this should probably be a separate flag in the RDF.

And lastly, nothing currently actually looks at or honours the state. This means that neither a delete(purge=false) nor a setState(disabled) has any effect in terms being able to access and view the article or any parts of it.

Dependency Graph

Change History

11/11/06 21:23:31 changed by ronald

Probable solution:

  • setState() manipulates a flag in RDF. With #102 closed, we can add a xacml rule to restrict access in certain states.
  • delete(purge=false) removes all RDF and all datastreams on all objects that are part of the article. The fedora object state is set to "D" and a datastream with an informative message (the tombstone) is added to all those objects.

11/18/06 20:03:23 changed by ronald

(In [1176]) Addresses #203:

  • fix article.setState() to allow arbitrary user states
  • add parameter to article.getArticles() to allow for querying by state
  • fixed article.getArticles() to allow query by both author and category (was either/or before)
  • return article state in ObjectInfo? and getArticles() result
  • add policies to restrict access to non-active articles

11/18/06 21:07:29 changed by ronald

  • status changed from new to closed.
  • resolution set to fixed.

(In [1177]) Closes #203: remove the 'purge' flag from delete(). The semantics of a 'tombstone' are not precisely clear and are most likely application dependent, and hence it's up to the application to implement such a beast.

Also made delete a little more robust in the face of missing fedora objects.

08/07/07 16:25:51 changed by

  • milestone deleted.

Milestone Bugs deleted