Sha256: 252f4f2c18946cab887dd928f66975a11e86ee11220f09145f018805eee1a094

Contents?: true

Size: 930 Bytes

Versions: 70

Compression:

Stored size: 930 Bytes

Contents

# GenericContent:  EXAMPLE Model that conforms to the Hydra genericContent and genericMetadata cModels 
require 'deprecation'
class GenericContent < ActiveFedora::Base
  extend Deprecation

  # Uses the Hydra Rights Metadata Schema for tracking access permissions & copyright
  #  FIXME:  should this have   "include Hydra::ModelMixins::CommonMetadata" instead?
  has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata 

  # A place to put extra metadata values, e.g. the user id of the object depositor (for permissions)
  has_metadata :name => "properties", :type => Hydra::Datastream::Properties
  
  # adds helpful methods for basic hydra objects.  
  # FIXME:  redundate with  GenericContent include above??
  include Hydra::ModelMethods
  
  def initialize( attrs={} )
    Deprecation.warn(GenericContent, "GenericContent is deprecated and will be removed in hydra-head 5.x")
    super
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
hydra-core-8.2.0 spec/support/app/models/generic_content.rb
hydra-core-5.4.1 spec/support/app/models/generic_content.rb
hydra-core-8.1.0 spec/support/app/models/generic_content.rb
hydra-core-8.0.0 spec/support/app/models/generic_content.rb
hydra-core-8.0.0.beta1 spec/support/app/models/generic_content.rb
hydra-core-7.2.2 spec/support/app/models/generic_content.rb
hydra-core-7.2.1 spec/support/app/models/generic_content.rb
hydra-core-7.2.0 spec/support/app/models/generic_content.rb
hydra-core-7.1.0 spec/support/app/models/generic_content.rb
hydra-core-7.1.0.rc2 spec/support/app/models/generic_content.rb
hydra-core-7.1.0.rc1 spec/support/app/models/generic_content.rb
hydra-core-7.0.2 spec/support/app/models/generic_content.rb
hydra-core-6.4.2 spec/support/app/models/generic_content.rb
hydra-core-7.0.1 spec/support/app/models/generic_content.rb
hydra-core-7.0.0 spec/support/app/models/generic_content.rb
hydra-core-7.0.0.rc1 spec/support/app/models/generic_content.rb
hydra-core-7.0.0.pre3 spec/support/app/models/generic_content.rb
hydra-core-7.0.0.pre2 spec/support/app/models/generic_content.rb
hydra-core-7.0.0.pre1 spec/support/app/models/generic_content.rb
hydra-core-6.4.1 spec/support/app/models/generic_content.rb