Modifier and Type | Method and Description |
---|---|
ServiceOutcome<SearchRequest> |
FilterPermissionHelper.addSharePermissionToSavedFilter(ApplicationUser user,
SearchRequest filter,
SharePermission sharePermission) |
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<SharePermission> |
SharePermissionFactory.fromBean(SharePermissionInputBean inputBean,
I18nHelper i18nHelper) |
Modifier and Type | Method and Description |
---|---|
FilterPermissionBean |
FilterPermissionBeanFactory.buildPermissionBean(ApplicationUser user,
SharePermission sharePermission) |
Modifier and Type | Class and Description |
---|---|
class |
SharePermissionImpl
Simple Bean implementation of
SharePermission . |
Modifier and Type | Method and Description |
---|---|
static SharePermission |
SharePermissionUtils.fromJsonObject(JSONObject json)
Return a SharePermission from a JSON object.
|
static SharePermission |
SharePermissionUtils.fromJsonObjectString(String jsonString)
Create a SharePermission from the passed JSON string.
|
Modifier and Type | Method and Description |
---|---|
Set<SharePermission> |
SharedEntity.SharePermissions.getPermissionSet() |
Iterator<SharePermission> |
SharedEntity.SharePermissions.iterator() |
Modifier and Type | Method and Description |
---|---|
int |
SharePermissionStore.deleteSharePermissionsLike(SharePermission permission)
Deletes
SharePermission 's that have the same "shape" as the provided share permission. |
void |
DefaultShareManager.deleteSharePermissionsLike(SharePermission permission) |
int |
CachingSharePermissionStore.deleteSharePermissionsLike(SharePermission permission) |
int |
OfBizSharePermissionStore.deleteSharePermissionsLike(SharePermission permission) |
void |
ShareManager.deleteSharePermissionsLike(SharePermission permission)
Deletes
SharePermission 's that have the same "shape" as the provided share permission. |
void |
DefaultSharePermissionReindexer.reindex(SharePermission permission) |
void |
SharePermissionReindexer.reindex(SharePermission permission)
Given a permission, re-index all entities that currently have that permission in the index.
|
static JSONObject |
SharePermissionUtils.toJson(SharePermission permission)
Convert the passed permission into a JSON object.
|
Modifier and Type | Method and Description |
---|---|
static JSONArray |
SharePermissionUtils.toJsonArray(Collection<SharePermission> permissions)
Converts the passed SharePermissions into a JSON array.
|
Constructor and Description |
---|
SharePermissions(Set<? extends SharePermission> permissions) |
Modifier and Type | Method and Description |
---|---|
SharedEntitySearchParametersBuilder |
SharedEntitySearchParametersBuilder.setSharePermission(SharePermission permission) |
Modifier and Type | Method and Description |
---|---|
Comparator<SharePermission> |
AbstractShareType.getComparator() |
Comparator<SharePermission> |
ShareType.getComparator()
Return a comparator that can order a
SharePermission of this type. |
Comparator<SharePermission> |
DefaultShareTypeFactory.getPermissionComparator() |
Comparator<SharePermission> |
ShareTypeFactory.getPermissionComparator()
Return a comparator that can order
SharePermission s for display. |
Modifier and Type | Method and Description |
---|---|
boolean |
GlobalShareTypeValidator.checkSharePermission(JiraServiceContext ctx,
SharePermission permission)
The user must have the global permission to share filters.
|
boolean |
GroupShareTypeValidator.checkSharePermission(JiraServiceContext ctx,
SharePermission permission) |
boolean |
AuthenticatedUserShareTypeValidator.checkSharePermission(JiraServiceContext ctx,
SharePermission permission)
The user must have the authenticated user permission to share filters.
|
boolean |
ProjectShareTypeValidator.checkSharePermission(JiraServiceContext ctx,
SharePermission permission)
checks that the user has browse permission for the given project if no role is given, else checks that the
user is part of that role for the given project.
|
boolean |
UserShareTypeValidator.checkSharePermission(JiraServiceContext ctx,
SharePermission permission)
Checks if current user has proper permissions and user to be shared with exists
|
boolean |
ShareTypeValidator.checkSharePermission(JiraServiceContext ctx,
SharePermission permission)
Checks if the passed SharePermission is valid for the associated ShareType.
|
int |
ProjectSharePermissionComparator.comparePermissions(SharePermission perm1,
SharePermission perm2) |
org.apache.lucene.document.Field |
UserShareQueryFactory.getField(SharedEntity entity,
SharePermission permission) |
org.apache.lucene.document.Field |
PrivateShareQueryFactory.getField(SharedEntity entity,
SharePermission permission) |
org.apache.lucene.document.Field |
GlobalShareQueryFactory.getField(SharedEntity entity,
SharePermission permission) |
org.apache.lucene.document.Field |
ProjectShareQueryFactory.getField(SharedEntity entity,
SharePermission permission) |
org.apache.lucene.document.Field |
AuthenticatedUserShareQueryFactory.getField(SharedEntity entity,
SharePermission permission) |
org.apache.lucene.document.Field |
GroupShareQueryFactory.getField(SharedEntity entity,
SharePermission permission) |
org.apache.lucene.document.Field |
ShareQueryFactory.getField(SharedEntity entity,
SharePermission permission)
Get the Field we will later search for.
|
String |
GlobalShareTypeRenderer.getSimpleDescription(SharePermission permission,
JiraAuthenticationContext authenticationContext) |
String |
ProjectShareTypeRenderer.getSimpleDescription(SharePermission permission,
JiraAuthenticationContext authenticationContext) |
String |
AuthenticatedUserShareTypeRenderer.getSimpleDescription(SharePermission permission,
JiraAuthenticationContext authenticationContext) |
String |
UserShareTypeRenderer.getSimpleDescription(SharePermission permission,
JiraAuthenticationContext userCtx) |
String |
GroupShareTypeRenderer.getSimpleDescription(SharePermission permission,
JiraAuthenticationContext authenticationContext) |
String |
ShareTypeRenderer.getSimpleDescription(SharePermission permission,
JiraAuthenticationContext userCtx)
Return a simple text only description of the share.
|
boolean |
ProjectShareTypePermissionChecker.hasPermission(ApplicationUser user,
SharePermission permission)
If a role has been passed in, checks to see if the user is in that role for the given project.
|
boolean |
GlobalShareTypePermissionChecker.hasPermission(ApplicationUser user,
SharePermission permission)
All JIRA users are able to see/use globally shared
SharedEntity so this
will always return true, regardless of user passed in. |
boolean |
GroupShareTypePermissionChecker.hasPermission(ApplicationUser user,
SharePermission permission)
Checks to see if user is part of the group specified in the permission
|
boolean |
UserShareTypePermissionChecker.hasPermission(ApplicationUser userToBeChecked,
SharePermission permission)
Checks if specified user is the same as in share permission
|
boolean |
AuthenticatedUserShareTypePermissionChecker.hasPermission(ApplicationUser user,
SharePermission permission)
All JIRA authenticated users are able to see/use shared
SharedEntity so this
will always return true, if the user is not null. |
boolean |
ShareTypePermissionChecker.hasPermission(ApplicationUser user,
SharePermission permission)
Checks if the passed user is given rights by the ShareType to user/view a
SharedEntity with the passed
permission. |
String |
GlobalShareTypeRenderer.renderPermission(SharePermission permission,
JiraAuthenticationContext authenticationContext) |
String |
ProjectShareTypeRenderer.renderPermission(SharePermission permission,
JiraAuthenticationContext authenticationContext) |
String |
AuthenticatedUserShareTypeRenderer.renderPermission(SharePermission permission,
JiraAuthenticationContext authenticationContext) |
String |
UserShareTypeRenderer.renderPermission(SharePermission permission,
JiraAuthenticationContext userCtx) |
String |
GroupShareTypeRenderer.renderPermission(SharePermission permission,
JiraAuthenticationContext authenticationContext) |
String |
ShareTypeRenderer.renderPermission(SharePermission permission,
JiraAuthenticationContext userCtx)
Return HTML that shows the configured share.
|
Constructor and Description |
---|
GroupSharePermission(SharePermission permission) |
ProjectSharePermission(SharePermission permission) |
UserSharePermission(SharePermission permission) |
Constructor and Description |
---|
AbstractShareType(ShareType.Name type,
boolean singleton,
int priority,
ShareTypeRenderer renderer,
ShareTypeValidator validator,
ShareTypePermissionChecker permissionChecker,
ShareQueryFactory<? extends ShareTypeSearchParameter> queryFactory,
Comparator<SharePermission> comparator) |
Modifier and Type | Method and Description |
---|---|
Set<SharePermission> |
EditFilter.getSharePermissions() |
Copyright © 2002-2019 Atlassian. All Rights Reserved.