Sha256: 226acb3c44c9ff00ad14145473e59dcc9e773112567737f9eb0fa216a7038bcb

Contents?: true

Size: 1.48 KB

Versions: 2

Compression:

Stored size: 1.48 KB

Contents

# frozen_string_literal: true

module Cocina
  module Models
    class AdminPolicyAdministrative < Struct
      # This is an XML expression of the default access (see defaultAccess)
      attribute :defaultObjectRights, Types::Strict::String.default('<?xml version="1.0" encoding="UTF-8"?><rightsMetadata><access type="discover"><machine><world/></machine></access><access type="read"><machine><world/></machine></access><use><human type="useAndReproduction"/><human type="creativeCommons"/><machine type="creativeCommons" uri=""/><human type="openDataCommons"/><machine type="openDataCommons" uri=""/></use><copyright><human/></copyright></rightsMetadata>').meta(omittable: true)
      attribute :defaultAccess, AdminPolicyDefaultAccess.optional.meta(omittable: true)
      attribute :registrationWorkflow, Types::Strict::Array.of(Types::Strict::String).default([].freeze)
      # An additional workflow to start for objects managed by this admin policy once the end-accession workflow step is complete
      # example: wasCrawlPreassemblyWF
      attribute :disseminationWorkflow, Types::Strict::String.meta(omittable: true)
      attribute :collectionsForRegistration, Types::Strict::Array.of(Types::Strict::String).default([].freeze)
      # example: druid:bc123df4567
      attribute :hasAdminPolicy, Types::Strict::String
      # example: druid:bc123df4567
      attribute :hasAgreement, Types::Strict::String
      attribute :roles, Types::Strict::Array.of(AccessRole).default([].freeze)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocina-models-0.65.1 lib/cocina/models/admin_policy_administrative.rb
cocina-models-0.65.0 lib/cocina/models/admin_policy_administrative.rb