lib/hydra/datastream/rights_metadata.rb in hydra-access-controls-8.0.0.beta1 vs lib/hydra/datastream/rights_metadata.rb in hydra-access-controls-8.0.0
- old
+ new
@@ -1,11 +1,10 @@
require 'active_support/core_ext/string'
module Hydra
module Datastream
# Implements Hydra RightsMetadata XML terminology for asserting access permissions
class RightsMetadata < ActiveFedora::OmDatastream
- extend Deprecation
set_terminology do |t|
t.root(:path=>"rightsMetadata", :xmlns=>"http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1", :schema=>"http://github.com/projecthydra/schemas/tree/v1/rightsMetadata.xsd")
t.copyright {
## BEGIN possible delete, justin 2012-06-22
@@ -150,14 +149,9 @@
# @return Hash in format {group_name => group_permissions, group_name => group_permissions}
def groups
return quick_search_by_type(:group)
end
- def individuals
- Deprecation.warn(RightsMetadata, "The method `individuals' is deprecated and will be removed from Hydra::Datastream::RightsMetadata in hydra-head 8.0. Use `users' instead.", caller)
- users
- end
-
# Reports on which users have which permissions
# @return Hash in format {user_name => user_permissions, user_name => user_permissions}
def users
return quick_search_by_type(:person)
end