Sha256: d627875844a20e4bcba4f275b84a74457be82a44f9cfb4b67673244af8a5e8a7
Contents?: true
Size: 932 Bytes
Versions: 6
Compression:
Stored size: 932 Bytes
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 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 end end end
Version data entries
6 entries across 6 versions & 1 rubygems