Class: Dor::AdminPolicyObject

Inherits:
Abstract
  • Object
show all
Defined in:
lib/dor/models/admin_policy_object.rb

Direct Known Subclasses

Hydrus::AdminPolicyObject

Constant Summary collapse

CREATIVE_COMMONS_USE_LICENSES =
ActiveSupport::Deprecation::DeprecatedConstantProxy.new('CREATIVE_COMMONS_USE_LICENSES', 'Dor::CreativeCommonsLicenseService')
OPEN_DATA_COMMONS_USE_LICENSES =
ActiveSupport::Deprecation::DeprecatedConstantProxy.new('OPEN_DATA_COMMONS_USE_LICENSES', 'Dor::OpenDataLicenseService')

Constants included from Processable

Processable::STEPS

Constants included from Identifiable

Identifiable::CATKEY_TYPE_ID, Identifiable::PREVIOUS_CATKEY_TYPE_ID

Instance Method Summary collapse

Methods inherited from Abstract

#to_solr

Methods included from Preservable

#build_provenanceMetadata_datastream, #sdr_ingest_transfer

Methods included from Processable

#build_datastream, #cleanup, #create_workflow, #initialize_workflow, #milestones, #status, #status_info

Methods included from Versionable

#allows_modification?, #close_version, #current_version, #new_version_open?, #open_new_version, #start_version, #submit_version

Methods included from Describable

#build_descMetadata_datastream, #fetch_descMetadata_datastream, #full_title, #generate_dublin_core, #generate_public_desc_md, get_collection_title, #set_desc_metadata_using_label, #stanford_mods

Methods included from Rightsable

#build_rightsMetadata_datastream, #world_doc

Methods included from Governable

#add_collection, #initiate_apo_workflow, #reapplyAdminPolicyObjectDefaults, #remove_collection, #reset_to_apo_default, #rights, #set_read_rights, #unshelve_and_unpublish

Methods included from Eventable

#add_event

Methods included from Identifiable

#adapt_to_cmodel, #add_other_Id, #add_tag, #catkey, #catkey=, #content_type_tag, #druid_regex, #pid_regex, #previous_catkeys, #remove_druid_prefix, #remove_other_Id, #remove_tag, #source_id, #source_id=, #tags, #update_other_Id, #update_tag

Instance Method Details

#agreementObject



41
42
43
# File 'lib/dor/models/admin_policy_object.rb', line 41

def agreement
  agreement_object ? agreement_object.pid : ''
end

#agreement=(val) ⇒ Object

Raises:

  • (ArgumentError)


45
46
47
48
49
# File 'lib/dor/models/admin_policy_object.rb', line 45

def agreement=(val)
  raise ArgumentError, 'agreement must have a valid druid' if val.blank?

  self.agreement_object = Dor.find val.to_s, cast: true
end