public interface ModeShapeRoles
readonly
, readwrite
, and admin
. If
the Credentials
; passed into Repository.login(Credentials)
(or the Subject
from the
AccessControlContext
, if one of the no-credential login(...)
methods are used) have any of these roles,
the session will have the corresponding access to all workspaces within the repository.
The mapping from the roles to the actions that they allow is provided below, for any values of path
.
Action Name | readonly | readwrite | admin |
read | Allows | Allows | Allows |
add_node | Allows | Allows | |
set_property | Allows | Allows | |
remove | Allows | Allows | |
register_namespace | Allows | ||
register_type | Allows | ||
unlock_any | Allows | ||
create_workspace | Allows | ||
delete_workspace | Allows |
static final String READONLY
static final String READWRITE
static final String ADMIN
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.