public class IndexableSharedEntity<S extends SharedEntity> extends Object implements SharedEntity
SharedEntity
in a lightweight way that can be used for indexing.
Like SearchRequest
s, 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()
SharedEntity
getId
in interface SharedEntity
public String getName()
SharedEntity
getName
in interface SharedEntity
public String getDescription()
SharedEntity
getDescription
in interface SharedEntity
public ApplicationUser getOwner()
getOwner
in interface SharedEntity
public String getOwnerUserName()
getOwnerUserName
in interface SharedEntity
public SharedEntity.TypeDescriptor<S> getEntityType()
SharedEntity
getEntityType
in interface SharedEntity
public SharedEntity.SharePermissions getPermissions()
SharedEntity
getPermissions
in interface SharedEntity
public void setPermissions(SharedEntity.SharePermissions permissions)
public Long getFavouriteCount()
Favourite
getFavouriteCount
in interface Favourite
Copyright © 2002-2022 Atlassian. All Rights Reserved.