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-core-1.1.2 lib/ddr/auth/roles/role_types.rb
ddr-core-1.1.1 lib/ddr/auth/roles/role_types.rb
ddr-core-1.1.0 lib/ddr/auth/roles/role_types.rb
ddr-core-1.0.0 lib/ddr/auth/roles/role_types.rb
ddr-core-0.3.0 lib/ddr/auth/roles/role_types.rb
ddr-core-0.2.2 lib/ddr/auth/roles/role_types.rb
ddr-core-0.2.1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.11.0 lib/ddr/auth/roles/role_types.rb
ddr-models-2.10.2 lib/ddr/auth/roles/role_types.rb
ddr-models-2.10.1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.10.0 lib/ddr/auth/roles/role_types.rb
ddr-models-2.10.0.rc2 lib/ddr/auth/roles/role_types.rb
ddr-models-2.10.0.rc1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.9.2 lib/ddr/auth/roles/role_types.rb
ddr-models-2.9.1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.9.0 lib/ddr/auth/roles/role_types.rb
ddr-models-2.9.0.rc1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.8.0 lib/ddr/auth/roles/role_types.rb
ddr-models-2.8.0.rc1 lib/ddr/auth/roles/role_types.rb
ddr-models-2.7.6 lib/ddr/auth/roles/role_types.rb