Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Latest commit

 

History

History
35 lines (31 loc) · 1.15 KB

File metadata and controls

35 lines (31 loc) · 1.15 KB

CircleCI Maintainability Test Coverage Gem Version

DOR Rights Auth

Creates objects with the following structure after parsing rightsMetadata XML

# Rights for an object or File
class EntityRights
  @world = Rights
  @group {
    :stanford => Rights
  }
  @agent {
    'app1' => Rights,
    'app2' => Rights
  }
  @location {
    :spec => Rights
  }
end

# Rights for the entire object, and all files
# This is the object used by apps (stacks and purl)
class Dor::RightsAuth
  @object_level = EntityRights
  @file {
    'file1' => EntityRights,
    'file2' => EntityRights
  }
end