Versions Compared

Key

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

Object Services

Title (Goal)Support Fedora 3-style object classes (content models) - Object Services
Primary ActorRepository architect & implementer 
ScopeData architecture and access
LevelHigh 
Story (A paragraph or two describing what happens)
  1. As a repository manager,
    1. I will be able to associate services with "content models"
      1. Example services include the generation of image derivatives, and the serving of images
  2. As a repository user,
    1. I will be able to access resources via services that are associated with defined "content models"

...

  1. How do we handle the creation process so that the object does not go through validation before all mandatory children are ingested? Can we use transactions? 

Issues / limitations

...

  1. A mixin can define a mandatory type, but the mixin itself is not mandatory. If some editor removes the mixin, that would break the thumbnail method. In order to prevent that, access policies can be defined for who can remove or add a certain mixin; but for basic functionality not meant to be ever removed, a primary type would solve the problem more easily and elegantly

 

  •  Stefano Cossu: tests should be made with transactions for Challenge #1 when https://www.pivotaltracker.com/s/projects/684825/stories/64058980 is fixed. If I am able to create a node with a primary type or mix-in that defines a mandatory child , and that child as well within a transaction, and the validation is performed ONLY after the transaction is committed, this would solve the issue. 

...