Class WorkspaceConfiguration

java.lang.Object
com.structurizr.configuration.WorkspaceConfiguration

public final class WorkspaceConfiguration
extends java.lang.Object
A wrapper for configuration options related to the workspace.
  • Method Summary

    Modifier and Type Method Description
    void addUser​(java.lang.String username, Role role)
    Adds a user, with the specified username and role.
    java.util.Set<User> getUsers()
    Gets the set of users should have read-write or read-only access to the workspace.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getUsers

      public java.util.Set<User> getUsers()
      Gets the set of users should have read-write or read-only access to the workspace.
      Returns:
      a Set of User objects (could be empty)
    • addUser

      public void addUser​(java.lang.String username, Role role)
      Adds a user, with the specified username and role.
      Parameters:
      username - the username (e.g. an e-mail address)
      role - the user's role