Sha256: 12a07cb2a0b50d03c272073d9bca1d15c65df73cd17ea33bb3f20cc94fde4904
Contents?: true
Size: 1.03 KB
Versions: 5
Compression:
Stored size: 1.03 KB
Contents
module Ddr module Models class Base < ActiveFedora::Base include Describable include Governable include AccessControllable include Licensable include HasProperties include HasThumbnail include ActiveFedora::Auditable include EventLoggable include FixityCheckable include FileManagement include Indexing include PermanentIdentification include HasRoleAssignments include Hydra::Validations include HasWorkflow 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
5 entries across 5 versions & 1 rubygems