Ticket #856 (closed Enhancement: fixed)

Opened 9 years ago

Last modified 9 years ago

Enable workspace sharing modes on a per-user basis

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.8
Component: DeepaMehta Standard Distribution Version: 4.7
Keywords: Cc: dgf, Malte, JuergeN
Complexity: 3 Area:
Module: deepamehta-workspaces

Description

There should be configuration option for administrators to enable/disable workspace sharing modes on a per-user basis. E.g. only selected users should have the permission to create public and common workspaces.

Change History

comment:1 Changed 9 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Jörg Richter <jri@…>

In 5e112f26ee2d438b969859eec234e71c71422798/deepamehta:

Adds "Enabled Sharing Modes" config type (#856).

Adds an "Enabled Sharing Modes" configuration on a per-user(name) basis. It allows individual enabling/disabling of the 5 Workspace Sharing Modes. A user can only use the enabled Sharing Modes when creating a workspace.

A migration to add the default configuration to existing Usernames is provided.

Pending: client-side part.

See #856.

comment:3 Changed 9 years ago by Jörg Richter <jri@…>

In 3074e35e59b58891cbb1646a470f12bf2866f37a/deepamehta:

Add "Enabled Sharing Modes" config props (#856).

There are 5 new config properties in pom.xml resp. config.properties:

dm4.workspaces.private.enabled=true
dm4.workspaces.confidential.enabled=true
dm4.workspaces.collaborative.enabled=true
dm4.workspaces.public.enabled=true
dm4.workspaces.common.enabled=true

These are used as the default values when creating an user account.

Administrators can change these values interactively (using the webclient) on a per-user basis: choose "Configure" on a Username topic.

Note: when the config properties are edited before a fresh DM installation is started for the first time, the values apply also for the initially created "admin" account. "admin" however can login and change its own values interactively.

See #856.

comment:4 Changed 9 years ago by Jörg Richter <jri@…>

In e8ba03d2f2eb5ade669e8410ffb1b3f053b92989/deepamehta:

Workspace dialog shows only enabled modes (#856).

In the "New Workspace" dialog all sharing modes which are not enabled for the current user are not selectable.

The feature "Enable workspace sharing modes on a per-user basis" is now complete.

Access Control API


1 new convenience method:

Topic getUsernameTopic()

Returns the "Username" topic of the logged in user, or null if no user is logged in.

REST:

GET /accesscontrol/username

Webclient:

dm4c.get_plugin("de.deepamehta.accesscontrol").get_username_topic()

Config API


Webclient:

dm4c.get_plugin("de.deepamehta.config").get_config_topic(topic_id, config_type_uri)

Returns the config topic of the given type for the given topic.

See #856.

Last edited 9 years ago by jri (previous) (diff)

comment:5 Changed 9 years ago by Jörg Richter <jri@…>

In 6f82ec643bdf17cfa1308263f6cf1220460e68de/deepamehta:

Fix upgrading 4.7 -> 4.8-SNAPSHOT (#856).

See #856.

comment:6 Changed 9 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.