Sha256: a98f44cda1b4b10383d2ab9e3bd0d2c4c57cb43638b7c93e262c6c3af1e6c84c
Contents?: true
Size: 1.26 KB
Versions: 9
Compression:
Stored size: 1.26 KB
Contents
module Ddr module Models class Base < ActiveFedora::Base include Describable include Governable include AccessControllable include Licensable include HasProperties include HasThumbnail include EventLoggable include FixityCheckable include FileManagement include Indexing include Hydra::Validations include HasAdminMetadata after_destroy do notify_event :deletion end def copy_admin_policy_or_permissions_from(other) copy_permissions_from(other) unless copy_admin_policy_from(other) end def association_query(association) # XXX Ideally we would include a clause to limit by AF model, but this should suffice ActiveFedora::SolrService.construct_query_for_rel(reflections[association].options[:property] => internal_uri) end # e.g., "Collection duke:1" def model_pid [self.class.to_s, pid].join(" ") end # @override ActiveFedora::Core # See ActiveFedora overrides in engine initializers def adapt_to_cmodel super rescue ::TypeError raise ContentModelError, "Cannot adapt to nil content model." end def has_extracted_text? false end end end end
Version data entries
9 entries across 9 versions & 1 rubygems