Skip to content

sul-dlss/dor-rights-auth

Repository files navigation

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