Sha256: d3f8d02d1b7f83da21c29d8bc3be8d320c1dadee06d52318a36242e1546aec67

Contents?: true

Size: 713 Bytes

Versions: 11

Compression:

Stored size: 713 Bytes

Contents

module Hydra::AccessControls
  class AccessControlList < ActiveFedora::Base
    belongs_to :access_to, predicate: ::ACL.accessTo, class_name: 'ActiveFedora::Base'
    # has_many :admin_policies, class_name: 'Hydra::AdminPolicy'
    property :mode, predicate: ::ACL.mode, class_name: 'Hydra::AccessControls::Mode'
    property :agent, predicate: ::ACL.agent, class_name: 'Hydra::AccessControls::Agent'
    # property :agentClass, predicate: ACL.agentClass

    # [acl:accessTo <card>; acl:mode acl:Read; acl:agentClass foaf:Agent].
    # [acl:accessTo <card>; acl:mode acl:Read, acl:Write;  acl:agent <card#i>].
  end

  class Mode < ActiveTriples::Resource
  end
  class Agent < ActiveTriples::Resource
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hydra-access-controls-9.1.3 app/models/hydra/access_controls/access_control_list.rb
hydra-access-controls-9.1.2 app/models/hydra/access_controls/access_control_list.rb
hydra-access-controls-9.1.1 app/models/hydra/access_controls/access_control_list.rb
hydra-access-controls-9.1.0 app/models/hydra/access_controls/access_control_list.rb
hydra-access-controls-9.0.1 app/models/hydra/access_controls/access_control_list.rb
hydra-access-controls-9.0.0 app/models/hydra/access_controls/access_control_list.rb
hydra-access-controls-9.0.0.rc3 app/models/hydra/access_controls/access_control_list.rb
hydra-access-controls-9.0.0.rc2 app/models/hydra/access_controls/access_control_list.rb
hydra-access-controls-9.0.0.rc1 app/models/hydra/access_controls/access_control_list.rb
hydra-access-controls-9.0.0.beta2 app/models/hydra/access_controls/access_control_list.rb
hydra-access-controls-9.0.0.beta1 app/models/hydra/access_controls/access_control_list.rb