Modifier and Type | Method and Description |
---|---|
void |
DefaultFavouritesService.addFavourite(JiraServiceContext ctx,
SharedEntity entity) |
void |
FavouritesService.addFavourite(JiraServiceContext ctx,
SharedEntity entity)
Add the given entity as a favourite of the user passed in the context
|
void |
DefaultFavouritesService.addFavouriteInPosition(JiraServiceContext ctx,
SharedEntity entity,
long position) |
void |
FavouritesService.addFavouriteInPosition(JiraServiceContext ctx,
SharedEntity entity,
long position)
Add the given entity as a favourite of the user passed in the context and place it in the specified position.
|
boolean |
DefaultFavouritesService.isFavourite(ApplicationUser user,
SharedEntity entity) |
boolean |
FavouritesService.isFavourite(ApplicationUser user,
SharedEntity entity)
Check that the given entity is a favourite of the user passed in the context
|
void |
DefaultFavouritesService.removeFavourite(JiraServiceContext ctx,
SharedEntity entity) |
void |
FavouritesService.removeFavourite(JiraServiceContext ctx,
SharedEntity entity)
Remove the given entity as a favourite of the user passed in the context
|
Constructor and Description |
---|
DefaultFavouritesService(FavouritesManager<SharedEntity> favouritesManager) |
Constructor and Description |
---|
SharedEntityUpdatedMetricsEvent(SharedEntityUpdatedMetricsEvent.SharedEntityEventType type,
SharedEntity oldEntity,
SharedEntity newEntity,
ApplicationUser userWhichUpdates) |
Modifier and Type | Method and Description |
---|---|
SharedEntity |
AbstractSharedEntityEvent.getChangedEntity() |
SharedEntity |
AbstractSharedEntityEvent.getEntityFrom() |
SharedEntity |
AbstractSharedEntityEvent.getEntityTo() |
Constructor and Description |
---|
SharedEntityCreatedEvent(SharedEntity createdEntity) |
SharedEntityDeletedEvent(SharedEntity deletedEntity) |
SharedEntityUpdatedEvent(SharedEntity entityFrom,
SharedEntity entityTo) |
Modifier and Type | Interface and Description |
---|---|
interface |
FavouritesManager<S extends SharedEntity>
Manager for basic Favourites functionality.
|
Modifier and Type | Method and Description |
---|---|
boolean |
OfBizFavouritesStore.addFavourite(ApplicationUser user,
SharedEntity entity) |
boolean |
CachingFavouritesStore.addFavourite(ApplicationUser user,
SharedEntity entity) |
boolean |
FavouritesStore.addFavourite(ApplicationUser user,
SharedEntity entity)
Create Favourites association between User and entity
|
void |
DefaultFavouritesManager.addFavourite(ApplicationUser user,
SharedEntity entity) |
void |
DefaultFavouritesManager.addFavouriteInPosition(ApplicationUser user,
SharedEntity entity,
long position) |
void |
DefaultFavouritesManager.decreaseFavouriteSequence(ApplicationUser user,
SharedEntity entity) |
void |
DefaultFavouritesManager.increaseFavouriteSequence(ApplicationUser user,
SharedEntity entity) |
boolean |
OfBizFavouritesStore.isFavourite(ApplicationUser user,
SharedEntity entity) |
boolean |
CachingFavouritesStore.isFavourite(ApplicationUser user,
SharedEntity entity) |
boolean |
FavouritesStore.isFavourite(ApplicationUser user,
SharedEntity entity)
Checks to see if entity is a favourite of the user passed in.
|
boolean |
DefaultFavouritesManager.isFavourite(ApplicationUser user,
SharedEntity entity) |
void |
DefaultFavouritesManager.moveToEndFavouriteSequence(ApplicationUser user,
SharedEntity entity) |
void |
DefaultFavouritesManager.moveToStartFavouriteSequence(ApplicationUser user,
SharedEntity entity) |
boolean |
OfBizFavouritesStore.removeFavourite(ApplicationUser user,
SharedEntity entity) |
boolean |
CachingFavouritesStore.removeFavourite(ApplicationUser user,
SharedEntity entity) |
boolean |
FavouritesStore.removeFavourite(ApplicationUser user,
SharedEntity entity)
Remove Favourites association between User and entity
|
void |
DefaultFavouritesManager.removeFavourite(ApplicationUser user,
SharedEntity entity) |
void |
OfBizFavouritesStore.removeFavouritesForEntity(SharedEntity entity) |
void |
CachingFavouritesStore.removeFavouritesForEntity(SharedEntity entity) |
void |
FavouritesStore.removeFavouritesForEntity(SharedEntity entity)
Remove all favourite associations for a given entity.
|
void |
DefaultFavouritesManager.removeFavouritesForEntityDelete(SharedEntity entity) |
void |
FavouritesManager.removeFavouritesForEntityDelete(SharedEntity entity)
Remove all favourite associations for a given entity for entity deletion.
|
Modifier and Type | Method and Description |
---|---|
Collection<Long> |
DefaultFavouritesManager.getFavouriteIds(ApplicationUser user,
SharedEntity.TypeDescriptor<SharedEntity> entityType) |
void |
DefaultFavouritesManager.removeFavouritesForUser(ApplicationUser user,
SharedEntity.TypeDescriptor<SharedEntity> entityType) |
void |
OfBizFavouritesStore.updateSequence(ApplicationUser user,
List<? extends SharedEntity> favouriteEntities) |
void |
CachingFavouritesStore.updateSequence(ApplicationUser user,
List<? extends SharedEntity> favouriteEntities) |
void |
FavouritesStore.updateSequence(ApplicationUser user,
List<? extends SharedEntity> favouriteEntities)
Called to update the sequence of a list of favourite
shared entities |
Modifier and Type | Method and Description |
---|---|
Collection<SharedEntity> |
SharedEntityResolver.getDummySharedEntities(SharedEntityType entityType,
Set<Long> ids)
Returns a set of 'placeholder' SharedEntity's - they only have an id
|
Collection<SharedEntity> |
SharedEntityResolver.getSharedEntities(SharedEntityType entityType,
Set<Long> ids)
Returns a collection of SharedEntity's given ids
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultReplicatedIndexManager.deIndexSharedEntity(SharedEntity entity)
Deindexes the shared entity in the replicated index.
|
void |
ReplicatedIndexManager.deIndexSharedEntity(SharedEntity entity) |
void |
NullReplicatedIndexManager.deIndexSharedEntity(SharedEntity entity) |
void |
DefaultReplicatedIndexManager.indexSharedEntity(SharedEntity entity)
Reindexes the shared entity in the replicated index.
|
void |
ReplicatedIndexManager.indexSharedEntity(SharedEntity entity) |
void |
NullReplicatedIndexManager.indexSharedEntity(SharedEntity entity) |
Modifier and Type | Class and Description |
---|---|
class |
MockJqlSearchRequest
A mock search request to use when testing JQL code.
|
class |
SearchRequest
A shareable representation of a search for issues.
|
Modifier and Type | Method and Description |
---|---|
EnclosedIterable<SharedEntity> |
DefaultSearchRequestManager.getAllIndexableSharedEntities() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultSearchRequestManager.adjustFavouriteCount(SharedEntity entity,
int adjustmentValue) |
Modifier and Type | Class and Description |
---|---|
class |
PortalPage
This class represents a Dashboard page in JIRA.
|
Modifier and Type | Method and Description |
---|---|
EnclosedIterable<SharedEntity> |
DefaultPortalPageManager.getAllIndexableSharedEntities() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultPortalPageManager.adjustFavouriteCount(SharedEntity entity,
int adjustmentValue) |
PortalPage |
OfBizPortalPageStore.adjustFavouriteCount(SharedEntity portalPage,
int incrementValue) |
PortalPage |
CachingPortalPageStore.adjustFavouriteCount(SharedEntity portalPage,
int incrementValue) |
PortalPage |
PortalPageStore.adjustFavouriteCount(SharedEntity portalPage,
int incrementValue)
Updates the favourite count of the PortalPage in the database.
|
Modifier and Type | Field and Description |
---|---|
SharedEntity |
DashboardDeleted.dashboard |
Constructor and Description |
---|
DashboardDeleted(SharedEntity deleted,
ApplicationUser user) |
Modifier and Type | Class and Description |
---|---|
class |
IndexableSharedEntity<S extends SharedEntity>
Represents a
SharedEntity in a lightweight way that can be used for indexing. |
static class |
SharedEntity.TypeDescriptor<S extends SharedEntity>
The name and type of a
SharedEntity . |
interface |
SharedEntityAccessor<S extends SharedEntity>
Provides an abstraction for accessing SharedEntity objects.
|
Modifier and Type | Class and Description |
---|---|
class |
IndexableSharedEntity<S extends SharedEntity>
Represents a
SharedEntity in a lightweight way that can be used for indexing. |
static class |
SharedEntity.Identifier
Utility class for identifying a
SharedEntity . |
Modifier and Type | Method and Description |
---|---|
<S extends SharedEntity> |
SharedEntity.TypeDescriptor.Factory.create(String name)
should only be called by types that implement
SharedEntity |
<S extends SharedEntity> |
SharedEntity.getEntityType()
The type of entity it is.
|
<S extends SharedEntity> |
DefaultSharedEntityAccessorFactory.getSharedEntityAccessor(SharedEntity.TypeDescriptor<S> type) |
<S extends SharedEntity> |
SharedEntityAccessor.Factory.getSharedEntityAccessor(SharedEntity.TypeDescriptor<S> type)
Retrieves a
SharedEntityAccessor that can operate on the passed type. |
<S extends SharedEntity> |
DefaultSharedEntityAccessorFactory.getSharedEntityAccessor(String type) |
<S extends SharedEntity> |
SharedEntityAccessor.Factory.getSharedEntityAccessor(String type)
Retrieves a
SharedEntityAccessor that can operate on the passed type. |
<S extends SharedEntity> |
SharedEntity.TypeDescriptor.Factory.register(SharedEntity.TypeDescriptor<S> typeDescriptor) |
Modifier and Type | Method and Description |
---|---|
EnclosedIterable<SharedEntity> |
SharedEntityAccessor.getAllIndexableSharedEntities()
Get all
sharable entities this accessor can see for use in indexing. |
SharedEntity.TypeDescriptor<SharedEntity> |
SharedEntity.Identifier.getEntityType() |
Modifier and Type | Method and Description |
---|---|
void |
SharedEntityAccessor.adjustFavouriteCount(SharedEntity entity,
int adjustmentValue)
Adjusts the favourite counts for a given entity.
|
void |
DefaultShareManager.deletePermissions(SharedEntity entity) |
void |
ShareManager.deletePermissions(SharedEntity entity)
Delete all permissions associated with an entity
|
int |
CachingSharePermissionStore.deleteSharePermissions(SharedEntity entity) |
int |
OfBizSharePermissionStore.deleteSharePermissions(SharedEntity entity) |
int |
SharePermissionStore.deleteSharePermissions(SharedEntity entity)
Delete all
SharePermission instances associate with given entity. |
SharedEntity.SharePermissions |
CachingSharePermissionStore.getSharePermissions(SharedEntity entity) |
SharedEntity.SharePermissions |
OfBizSharePermissionStore.getSharePermissions(SharedEntity entity) |
SharedEntity.SharePermissions |
SharePermissionStore.getSharePermissions(SharedEntity entity)
Retrieve all
SharePermission instances associated with a given
SharedEntity |
SharedEntity.SharePermissions |
DefaultShareManager.getSharePermissions(SharedEntity entity) |
SharedEntity.SharePermissions |
ShareManager.getSharePermissions(SharedEntity entity)
Retrieve all
SharePermission instances associated with a passed in
SharedEntity |
boolean |
DefaultShareManager.hasPermission(ApplicationUser user,
SharedEntity entity)
Deprecated.
|
boolean |
ShareManager.hasPermission(ApplicationUser user,
SharedEntity entity)
Deprecated.
since 5.0 please use
#isSharedWith(com.atlassian.crowd.embedded.api.User, SharedEntity)
to get the same logic. Permission checks should be done in the service layer according to this information. |
boolean |
DefaultShareTypeValidatorUtils.hasValidSharePermissions(JiraServiceContext context,
SharedEntity entity) |
boolean |
ShareTypeValidatorUtils.hasValidSharePermissions(JiraServiceContext context,
SharedEntity entity)
Validates to see if a entity containing a Set of
SharePermission is valid. |
boolean |
DefaultShareManager.isSharedWith(ApplicationUser user,
SharedEntity sharedEntity) |
boolean |
ShareManager.isSharedWith(ApplicationUser user,
SharedEntity sharedEntity)
Whether this entity has been shared with the specified user.
|
boolean |
DefaultShareManager.isSharedWith(ApplicationUser user,
SharedEntity sharedEntity,
ShareRight shareRight) |
boolean |
ShareManager.isSharedWith(ApplicationUser user,
SharedEntity sharedEntity,
ShareRight shareRight)
Checks if provided user has share rights for given entity.
|
boolean |
DefaultShareTypeValidatorUtils.isValidSharePermission(JiraServiceContext context,
SharedEntity entity)
Deprecated.
|
boolean |
ShareTypeValidatorUtils.isValidSharePermission(JiraServiceContext context,
SharedEntity entity)
Deprecated.
use hasValidSharePermissions instead
|
SharedEntity.SharePermissions |
CachingSharePermissionStore.storeSharePermissions(SharedEntity entity) |
SharedEntity.SharePermissions |
OfBizSharePermissionStore.storeSharePermissions(SharedEntity entity) |
SharedEntity.SharePermissions |
SharePermissionStore.storeSharePermissions(SharedEntity entity)
Associate given entity with passed in Collection
SharePermission . |
SharedEntity.SharePermissions |
DefaultShareManager.updateSharePermissions(SharedEntity entity) |
SharedEntity.SharePermissions |
ShareManager.updateSharePermissions(SharedEntity entity)
Updates the
SharePermission associated with an entity. |
Constructor and Description |
---|
Identifier(Long id,
SharedEntity.TypeDescriptor<? extends SharedEntity> type,
ApplicationUser owner) |
Identifier(Long id,
SharedEntity.TypeDescriptor<? extends SharedEntity> type,
String ownerUserName)
Deprecated.
Use
#Identifier(Long, com.atlassian.jira.sharing.SharedEntity.TypeDescriptor, com.atlassian.jira.user.ApplicationUser) instead. Since v6.0. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultSharedEntitySearcher<S extends SharedEntity>
Default implementation of
SharedEntitySearcher . |
Modifier and Type | Method and Description |
---|---|
<S extends SharedEntity> |
MockSharedEntityIndexer.withSearcher(SharedEntity.TypeDescriptor<S> type,
java.util.function.Function<SharedEntitySearcher<S>,SharedEntitySearchResult<S>> searcherOperation) |
<S extends SharedEntity> |
SharedEntityIndexer.withSearcher(SharedEntity.TypeDescriptor<S> type,
java.util.function.Function<SharedEntitySearcher<S>,SharedEntitySearchResult<S>> searcherOperation) |
<S extends SharedEntity> |
DefaultSharedEntityIndexer.withSearcher(SharedEntity.TypeDescriptor<S> type,
java.util.function.Function<SharedEntitySearcher<S>,SharedEntitySearchResult<S>> searcherOperation) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.document.Document |
SharedEntityDocumentFactory.create(SharedEntity entity) |
Index.Result |
MockSharedEntityIndexer.deIndex(SharedEntity entity) |
Index.Result |
SharedEntityIndexer.deIndex(SharedEntity entity)
Delete a document from the index.
|
Index.Result |
DefaultSharedEntityIndexer.deIndex(SharedEntity entity) |
DefaultSharedEntityIndexer.EntityDocument |
DefaultSharedEntityIndexer.EntityDocumentFactory.get(SharedEntity entity)
Get the
DefaultSharedEntityIndexer.EntityDocument for the entity. |
Collection<org.apache.lucene.document.Field> |
SharedEntityFieldFactory.getField(SharedEntity entity) |
Collection<org.apache.lucene.document.Field> |
SharedEntityFieldFactory.Default.getField(SharedEntity entity) |
Collection<org.apache.lucene.document.Field> |
IsSharedFieldFactory.getField(SharedEntity entity) |
Collection<org.apache.lucene.document.Field> |
ShareTypePermissionsFieldFactory.getField(SharedEntity entity) |
Index.Result |
MockSharedEntityIndexer.index(SharedEntity entity) |
Index.Result |
SharedEntityIndexer.index(SharedEntity entity)
Add or update a document in the index.
|
Index.Result |
DefaultSharedEntityIndexer.index(SharedEntity entity) |
Index.Result |
MockSharedEntityIndexer.index(SharedEntity entity,
boolean shouldReplicate) |
Index.Result |
SharedEntityIndexer.index(SharedEntity entity,
boolean shouldReplicate)
Add or update a document in the index.
|
Index.Result |
DefaultSharedEntityIndexer.index(SharedEntity entity,
boolean shouldReplicate) |
Modifier and Type | Method and Description |
---|---|
default void |
SharedEntityIndexer.contributeToSnapshot(SharedEntity.TypeDescriptor<? extends SharedEntity> entityType,
BackupBuilder backupBuilder)
Contribute a set of files that represent shared entity index of
entityType to the given backupBuilder to include them in the backup being created when this method was called. |
void |
DefaultSharedEntityIndexer.contributeToSnapshot(SharedEntity.TypeDescriptor<? extends SharedEntity> entityType,
BackupBuilder backupBuilder) |
Index.Result |
MockSharedEntityIndexer.deIndex(Set<SharedEntity> sharedEntities,
boolean shouldReplicate) |
Index.Result |
SharedEntityIndexer.deIndex(Set<SharedEntity> sharedEntities,
boolean shouldReplicate)
Delete multiple documents in the index
|
Index.Result |
DefaultSharedEntityIndexer.deIndex(Set<SharedEntity> sharedEntities,
boolean shouldReplicate) |
Index.Result |
MockSharedEntityIndexer.index(Set<SharedEntity> sharedEntities,
boolean shouldReplicate) |
Index.Result |
SharedEntityIndexer.index(Set<SharedEntity> sharedEntities,
boolean shouldReplicate)
Add or update multiple documents in the index
|
Index.Result |
DefaultSharedEntityIndexer.index(Set<SharedEntity> sharedEntities,
boolean shouldReplicate) |
Modifier and Type | Interface and Description |
---|---|
interface |
SharedEntitySearcher<S extends SharedEntity>
Perform searches for
SharedEntity instances. |
class |
SharedEntitySearchResult<E extends SharedEntity>
A pair that contains the result status of SharedEntity search.
|
class |
TimedSearchResult<E extends SharedEntity>
Simple tuple to contain search results and timer information.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.document.Field |
ProjectShareQueryFactory.getField(SharedEntity entity,
SharePermission permission) |
org.apache.lucene.document.Field |
GlobalShareQueryFactory.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 |
PrivateShareQueryFactory.getField(SharedEntity entity,
SharePermission permission) |
org.apache.lucene.document.Field |
UserShareQueryFactory.getField(SharedEntity entity,
SharePermission permission) |
org.apache.lucene.document.Field |
ShareQueryFactory.getField(SharedEntity entity,
SharePermission permission)
Get the Field we will later search for.
|
Modifier and Type | Class and Description |
---|---|
class |
SharedEntitySearchViewHelper<E extends SharedEntity>
A class that makes searching for Shared Entities easier.
|
Copyright © 2002-2022 Atlassian. All Rights Reserved.