Sha256: 45a0188609947ce12c27c269fc7125a43b1f140b601182c357a700508fa86fb2

Contents?: true

Size: 1.7 KB

Versions: 111

Compression:

Stored size: 1.7 KB

Contents

module Ddr
  module Auth
    module Roles
      module RoleTypes

        CURATOR = RoleType.new(
          "Curator",
          "The Curator role conveys responsibility for curating a resource " \
          "and delegating responsibilities to other agents.",
          Permissions::ALL
        )

        EDITOR = RoleType.new(
          "Editor",
          "The Editor role conveys reponsibility for managing the content, " \
          "description and structural arrangement of a resource.",
          [ Permissions::READ, Permissions::DOWNLOAD, Permissions::ADD_CHILDREN,
            Permissions::UPDATE, Permissions::REPLACE, Permissions::ARRANGE ]
        )

        METADATA_EDITOR = RoleType.new(
          "MetadataEditor",
          "The Metadata Editor role conveys responsibility for " \
          "managing the description of a resource.",
          [ Permissions::READ, Permissions::DOWNLOAD, Permissions::UPDATE ]
        )

        CONTRIBUTOR = RoleType.new(
          "Contributor",
          "The Contributor role conveys responsibility for adding related " \
          "resources to a resource, such as works to a collection.",
          [ Permissions::READ, Permissions::ADD_CHILDREN ]
        )

        DOWNLOADER = RoleType.new(
          "Downloader",
          "The Downloader role conveys access to the \"master\" file " \
          "(original content bitstream) of a resource.",
          [ Permissions::READ, Permissions::DOWNLOAD ]
        )

        VIEWER = RoleType.new(
          "Viewer",
          "The Viewer role conveys access to the description and \"access\" " \
          "files (e.g., derivative bitstreams) of a resource.",
          [ Permissions::READ ]
        )

      end
    end
  end
end

Version data entries

111 entries across 111 versions & 2 rubygems

Version Path
ddr-models-2.7.5 lib/ddr/auth/roles/role_types.rb
ddr-models-2.7.4 lib/ddr/auth/roles/role_types.rb
ddr-models-2.7.3 lib/ddr/auth/roles/role_types.rb
ddr-models-2.7.2 lib/ddr/auth/roles/role_types.rb
ddr-models-2.7.1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.7.0 lib/ddr/auth/roles/role_types.rb
ddr-models-2.7.0.rc1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.6.2 lib/ddr/auth/roles/role_types.rb
ddr-models-2.6.1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.6.0 lib/ddr/auth/roles/role_types.rb
ddr-models-2.6.0.rc4 lib/ddr/auth/roles/role_types.rb
ddr-models-2.6.0.rc3 lib/ddr/auth/roles/role_types.rb
ddr-models-2.6.0.rc2 lib/ddr/auth/roles/role_types.rb
ddr-models-2.6.0.rc1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.5.3 lib/ddr/auth/roles/role_types.rb
ddr-models-2.5.2 lib/ddr/auth/roles/role_types.rb
ddr-models-2.5.1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.5.0 lib/ddr/auth/roles/role_types.rb
ddr-models-2.5.0.rc1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.4.16 lib/ddr/auth/roles/role_types.rb