Uses of Interface
com.atlassian.confluence.api.model.people.Subject
Packages that use Subject
Package
Description
Model objects for user and group permission and validation checks, for use with
OperationService
.This package contains the code which communicates with Confluence via REST API.
-
Uses of Subject in com.atlassian.confluence.api.impl.service.permissions
Methods in com.atlassian.confluence.api.impl.service.permissions with parameters of type SubjectModifier and TypeMethodDescriptionvoid
ContentRestrictionServiceImpl.addDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) void
ContentRestrictionServiceImpl.deleteDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) protected @NonNull Optional<ContentPermission>
ContentRestrictionServiceImpl.getPreExistingContentPermissionForSubject
(@Nullable ContentEntityObject ceo, @Nullable String permissionType, @Nullable Subject subject) Gets pre-existingContentPermission
(singular, optional) for theSubject
andOperationKey
(as String permissionType) specified.boolean
ContentRestrictionServiceImpl.hasDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) DefaultContentRestrictionServiceValidator.validateAddDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) DefaultContentRestrictionServiceValidator.validateDeleteDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) DefaultContentRestrictionServiceValidator.validateHasDirectRestrictionsForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) -
Uses of Subject in com.atlassian.confluence.api.model.people
Classes in com.atlassian.confluence.api.model.people that implement Subject -
Uses of Subject in com.atlassian.confluence.api.model.permissions
Methods in com.atlassian.confluence.api.model.permissions that return SubjectMethods in com.atlassian.confluence.api.model.permissions that return types with arguments of type SubjectModifier and TypeMethodDescriptionContentRestriction.getRestrictions()
Presents information about the restriction in a form ofMap<SubjectType, PageResponse<Subject>>
Methods in com.atlassian.confluence.api.model.permissions with parameters of type SubjectModifier and TypeMethodDescriptionvoid
GlobalPermission.setSubject
(Subject subject) void
SpacePermission.setSubject
(Subject subject) Method parameters in com.atlassian.confluence.api.model.permissions with type arguments of type SubjectModifier and TypeMethodDescriptionContentRestriction.ContentRestrictionBuilder.restrictions
(@Nullable Map<SubjectType, PageResponse<Subject>> restrictions) -
Uses of Subject in com.atlassian.confluence.api.service.permissions
Methods in com.atlassian.confluence.api.service.permissions with parameters of type SubjectModifier and TypeMethodDescriptionvoid
ContentRestrictionService.addDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) Adds singular directContentRestriction
foroperationKey
andsubject
to the content identified bycontentId
parameter.void
ContentRestrictionService.deleteDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) Deletes singular directContentRestriction
foroperationKey
andsubject
from the content identified bycontentId
parameter.boolean
ContentRestrictionService.hasDirectRestrictionForSubject
(ContentId contentId, OperationKey operationKey, Subject subject) Returnstrue
if the User or Group specified by thesubject
parameter has restriction(s) for theoperationKey
operation which are specified directly on the Content identified bycontentId
parameter.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 specifiedContentRestrictionService.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 specifiedContentRestrictionService.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 -
Uses of Subject in com.atlassian.confluence.functest.rest.admin.model
Methods in com.atlassian.confluence.functest.rest.admin.model that return SubjectModifier and TypeMethodDescriptionSubjectPermissionChange.getSubject()
Get the subject whose permission is being changedMethods in com.atlassian.confluence.functest.rest.admin.model with parameters of type SubjectModifier and TypeMethodDescription -
Uses of Subject in com.atlassian.confluence.rest.client
Methods in com.atlassian.confluence.rest.client with parameters of type SubjectModifier and TypeMethodDescriptionRemoteContentRestrictionService.addDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject) Adds singular directContentRestriction
foroperationKey
andsubject
to the content identified bycontentId
parameter.RemoteContentRestrictionServiceImpl.addDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject) RemoteContentRestrictionService.deleteDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject) Deletes singular directContentRestriction
foroperationKey
andsubject
from the content identified bycontentId
parameter.RemoteContentRestrictionServiceImpl.deleteDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject) RemoteContentRestrictionService.hasDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject) Returnstrue
if the User or Group specified by thesubject
parameter has restriction(s) for theoperationKey
operation which are specified directly on the Content identified bycontentId
parameter.RemoteContentRestrictionServiceImpl.hasDirectRestrictionForSubjectCompletionStage
(ContentId contentId, OperationKey operationKey, Subject subject)