| Package | Description |
|---|---|
| com.atlassian.confluence.api.impl.service.permissions | |
| com.atlassian.confluence.api.model.people | |
| com.atlassian.confluence.api.model.permissions |
Model objects for user and group permission and validation checks, for use with
OperationService. |
| com.atlassian.confluence.api.service.permissions | |
| com.atlassian.confluence.functest.rest.admin |
These REST resources are replacements for admin-level functest RPC calls and should only
be run by a sys-admin in a websudo session.
|
| com.atlassian.confluence.functest.rest.admin.model | |
| com.atlassian.confluence.it.api | |
| com.atlassian.confluence.rest.client | |
| com.atlassian.confluence.test.api.model.person | |
| com.atlassian.confluence.test.rest.api | |
| com.atlassian.confluence.test.rpc | |
| com.atlassian.confluence.test.rpc.api.permissions | |
| com.atlassian.confluence.webdriver.pageobjects.component.dialog | |
| com.atlassian.confluence.webdriver.pageobjects.component.popup |
| Modifier and Type | Method and Description |
|---|---|
void |
ContentRestrictionServiceImpl.addDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
void |
ContentRestrictionServiceImpl.deleteDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
protected Optional<ContentPermission> |
ContentRestrictionServiceImpl.getPreExistingContentPermissionForSubject(ContentEntityObject ceo,
String permissionType,
Subject subject)
Gets pre-existing
ContentPermission (singular, optional) for the Subject and OperationKey (as String permissionType) specified. |
boolean |
ContentRestrictionServiceImpl.hasDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
ValidationResult |
DefaultContentRestrictionServiceValidator.validateAddDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
ValidationResult |
DefaultContentRestrictionServiceValidator.validateDeleteDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
ValidationResult |
DefaultContentRestrictionServiceValidator.validateHasDirectRestrictionsForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
| Modifier and Type | Class and Description |
|---|---|
class |
Anonymous |
class |
Group
Represents a group that may contain zero or more users.
|
class |
KnownUser |
class |
Person |
class |
UnknownUser |
class |
User |
| Modifier and Type | Method and Description |
|---|---|
Map<SubjectType,PageResponse<Subject>> |
ContentRestriction.getRestrictions() |
Map<SubjectType,PageResponse<Subject>> |
SpacePermission.getSubjects() |
| Modifier and Type | Method and Description |
|---|---|
SpacePermission.SpacePermissionsBuilder |
SpacePermission.SpacePermissionsBuilder.permissions(Map<SubjectType,PageResponse<Subject>> permissions) |
ContentRestriction.ContentRestrictionBuilder |
ContentRestriction.ContentRestrictionBuilder.restrictions(Map<SubjectType,PageResponse<Subject>> restrictions) |
| Modifier and Type | Method and Description |
|---|---|
void |
ContentRestrictionService.addDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Adds singular direct
ContentRestriction for operationKey and subject to the content identified by contentId parameter. |
void |
ContentRestrictionService.deleteDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Deletes singular direct
ContentRestriction for operationKey and subject from the content identified by contentId parameter. |
boolean |
ContentRestrictionService.hasDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Returns
true if the User or Group specified by the subject parameter has restriction(s) for the operationKey operation
which are specified directly on the Content identified by contentId parameter. |
ValidationResult |
ContentRestrictionService.Validator.validateAddDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Validates that:
OperationKey supplied is supported
Subject supplied is either User or a Group and does exist
Content specified exists AND can be viewed by the currently logged-in user
Currently logged-in user is allowed to alter ContentRestrictions on and edit the content specified
|
ValidationResult |
ContentRestrictionService.Validator.validateDeleteDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Validates that:
OperationKey supplied is supported
Subject supplied is either User or a Group
Content specified exists AND can be viewed by the currently logged-in user
Currently logged-in user is allowed to alter ContentRestrictions on and edit the content specified
|
ValidationResult |
ContentRestrictionService.Validator.validateHasDirectRestrictionsForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Validates that:
OperationKey supplied is supported
Subject supplied is either User or a Group
Content specified exists AND can be viewed by the currently logged-in user
|
| Modifier and Type | Method and Description |
|---|---|
void |
PermissionsResource.revokeAllGlobalPermissions(Subject subject)
Revoke all global permissions for a group, user, or anonymous.
|
void |
PermissionsResource.revokeAllSpacePermissions(String spaceKey,
Subject subject)
Revoke all permissions on a space for a user, group or anonymous.
|
| Modifier and Type | Method and Description |
|---|---|
Subject |
SubjectPermissionChange.getSubject()
Get the subject whose permission is being changed
|
| Modifier and Type | Method and Description |
|---|---|
SubjectPermissionChange.Builder |
SubjectPermissionChange.Builder.subject(Subject subject) |
| Modifier and Type | Method and Description |
|---|---|
Space |
CustomContentHelperRpc.createSpaceWithAddonPermissions(Space space,
Map<Subject,List<OperationKey>> operations) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentRestrictionServiceImpl.addDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentRestrictionService.addDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Adds singular direct
ContentRestriction for operationKey and subject to the content identified by contentId parameter. |
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentRestrictionServiceImpl.deleteDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
com.atlassian.util.concurrent.Promise<Void> |
RemoteContentRestrictionService.deleteDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Deletes singular direct
ContentRestriction for operationKey and subject from the content identified by contentId parameter. |
com.atlassian.util.concurrent.Promise<Boolean> |
RemoteContentRestrictionServiceImpl.hasDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject) |
com.atlassian.util.concurrent.Promise<Boolean> |
RemoteContentRestrictionService.hasDirectRestrictionForSubject(ContentId contentId,
OperationKey operationKey,
Subject subject)
Returns
true if the User or Group specified by the subject parameter has restriction(s) for the operationKey operation
which are specified directly on the Content identified by contentId parameter. |
| Modifier and Type | Class and Description |
|---|---|
class |
UserWithDetails
A user object but with additional details that were omitted from the superclass User but required by some webdriver APIs.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PermissionsRest.addGlobalPermissions(Subject subject,
GlobalPermission... permissions) |
void |
PermissionsRest.addSpacePermissions(Space space,
Subject subject,
SpacePermission... permissions) |
void |
PermissionsRest.removeAllGlobalPermissions(Subject subject) |
void |
PermissionsRest.removeAllSpacePermissions(Space space,
Subject subject) |
void |
PermissionsRest.removeGlobalPermissions(Subject subject,
GlobalPermission... permissions) |
void |
PermissionsRest.removeSpacePermissions(Space space,
Subject subject,
SpacePermission... permissions) |
| Modifier and Type | Method and Description |
|---|---|
static String |
PermissionTypeConverter.getNameField(Subject subject)
Returns the name of the field that stores the Entity name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PermissionsRpc.grantAllPermissions(Subject subject,
Space space)
Deprecated.
Old XMLRPC method. Use
PermissionsRest instead. |
void |
PermissionsRpc.grantAllPermissionsExceptAdmin(Subject subject,
Space space)
Deprecated.
Old XMLRPC method. Use
PermissionsRest instead. |
void |
PermissionsRpc.grantContentPermission(Content content,
Subject subject,
OperationKey operationKey) |
void |
PermissionsRpc.grantContentPermission(Subject subject,
OperationKey operationKey,
Content content) |
void |
PermissionsRpc.grantPermission(GlobalPermission permission,
Subject subject)
Deprecated.
Old XMLRPC method. Use
PermissionsRest instead. |
void |
PermissionsRpc.grantPermission(SpacePermission permission,
Space space,
Subject subject)
Deprecated.
Old XMLRPC method. Use
PermissionsRest instead. |
void |
PermissionsRpc.grantPermission(SpacePermission permission,
String spaceKey,
Subject subject)
Deprecated.
Old XMLRPC method. Use
PermissionsRest instead. |
void |
PermissionsRpc.grantPermissions(Space space,
Subject subject,
SpacePermission... permissions)
Deprecated.
Old XMLRPC method. Use
PermissionsRest instead. |
void |
PermissionsRpc.revokeContentPermission(Subject subject,
OperationKey operationKey,
ContentId contentId) |
void |
PermissionsRpc.revokePermission(GlobalPermission permission,
Subject subject)
Deprecated.
Old XMLRPC method. Use
PermissionsRest instead. |
void |
PermissionsRpc.revokePermission(SpacePermission permission,
Space space,
Subject subject)
Deprecated.
Old XMLRPC method. Use
PermissionsRest instead. |
void |
PermissionsRpc.revokePermissions(Space space,
Subject subject,
SpacePermission... permissions)
Deprecated.
Old XMLRPC method. Use
PermissionsRest instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
PermissionsRpc.grantContentPermissions(ContentId contentId,
List<? extends Subject> subjects,
OperationKey operationKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
PageRestrictionsDialogV2.addUserOrGroup(Subject subject) |
abstract void |
PageRestrictionsDialog.addUserOrGroup(Subject subject)
Add an entity to the restriction dialog under the current mode
|
void |
OldPageRestrictionsDialog.addUserOrGroup(Subject subject) |
void |
PageRestrictionsDialogV2.addUserOrGroup(Subject subject,
int index) |
abstract void |
PageRestrictionsDialog.addUserOrGroup(Subject subject,
int index)
Add an entity to the new restriction dialog under the current mode.
|
void |
OldPageRestrictionsDialog.addUserOrGroup(Subject subject,
int index) |
com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> |
PageRestrictionsDialogV2.canRestrictionBeRemoved(Subject subject) |
abstract com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> |
PageRestrictionsDialog.canRestrictionBeRemoved(Subject subject)
Checks if an entity can be removed from the restrictions dialog
|
com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> |
OldPageRestrictionsDialog.canRestrictionBeRemoved(Subject subject) |
boolean |
PageRestrictionsDialogV2.hasRestriction(Subject subject,
OperationKey operationKey) |
abstract boolean |
PageRestrictionsDialog.hasRestriction(Subject subject,
OperationKey operationKey)
Checks if an entity appears in the restrictions dialog with the specified permission
|
boolean |
OldPageRestrictionsDialog.hasRestriction(Subject subject,
OperationKey operationKey) |
com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> |
PageRestrictionsDialogV2.hasRestrictionTimed(Subject subject,
OperationKey operationKey) |
abstract com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> |
PageRestrictionsDialog.hasRestrictionTimed(Subject subject,
OperationKey operationKey)
Checks if an entity appears in the restrictions dialog with the specified permission
|
com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> |
OldPageRestrictionsDialog.hasRestrictionTimed(Subject subject,
OperationKey operationKey) |
void |
PageRestrictionsDialogV2.removeRestriction(Subject subject) |
abstract void |
PageRestrictionsDialog.removeRestriction(Subject subject) |
void |
OldPageRestrictionsDialog.removeRestriction(Subject subject) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.pageobjects.elements.query.TimedCondition |
PageInheritedRestrictionsPopup.hasRestrictionTimed(Subject subject) |
Copyright © 2003–2017 Atlassian. All rights reserved.