public class IndexableSharedEntity<S extends SharedEntity> extends Object implements SharedEntity
SharedEntity in a lightweight way that can be used for indexing.
Like SearchRequests, you can set the share permissions after construction
because they might not always be available at that time.
SharedEntity.Identifier, SharedEntity.SharePermissions, SharedEntity.TypeDescriptor<S extends SharedEntity>| Constructor and Description |
|---|
IndexableSharedEntity(Long id,
String name,
String description,
SharedEntity.TypeDescriptor<S> entityType,
ApplicationUser owner,
Long favouriteCount) |
IndexableSharedEntity(Long id,
String name,
String description,
SharedEntity.TypeDescriptor<S> entityType,
ApplicationUser owner,
Long favouriteCount,
SharedEntity.SharePermissions permissions) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDescription()
A general description of the entity.
|
SharedEntity.TypeDescriptor<S> |
getEntityType()
The type of entity it is.
|
Long |
getFavouriteCount()
The number of users who have marked this entity as one of their favourites.
|
Long |
getId()
The id of the entity.
|
String |
getName()
The name of the entity.
|
ApplicationUser |
getOwner() |
String |
getOwnerUserName() |
SharedEntity.SharePermissions |
getPermissions()
The permissions for this entity.
|
int |
hashCode() |
void |
setPermissions(SharedEntity.SharePermissions permissions) |
public IndexableSharedEntity(Long id, String name, String description, SharedEntity.TypeDescriptor<S> entityType, ApplicationUser owner, Long favouriteCount)
public IndexableSharedEntity(Long id, String name, String description, SharedEntity.TypeDescriptor<S> entityType, ApplicationUser owner, Long favouriteCount, SharedEntity.SharePermissions permissions)
public Long getId()
SharedEntitygetId in interface SharedEntitypublic String getName()
SharedEntitygetName in interface SharedEntitypublic String getDescription()
SharedEntitygetDescription in interface SharedEntitypublic ApplicationUser getOwner()
getOwner in interface SharedEntitypublic String getOwnerUserName()
getOwnerUserName in interface SharedEntitypublic SharedEntity.TypeDescriptor<S> getEntityType()
SharedEntitygetEntityType in interface SharedEntitypublic SharedEntity.SharePermissions getPermissions()
SharedEntitygetPermissions in interface SharedEntitypublic void setPermissions(SharedEntity.SharePermissions permissions)
public Long getFavouriteCount()
FavouritegetFavouriteCount in interface FavouriteCopyright © 2002-2024 Atlassian. All Rights Reserved.