|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.sharing.IndexableSharedEntity<S>
public class IndexableSharedEntity<S extends SharedEntity>
Represents a 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.atlassian.jira.sharing.SharedEntity |
|---|
SharedEntity.Identifier, SharedEntity.SharePermissions, SharedEntity.TypeDescriptor<S extends SharedEntity> |
| Constructor Summary | |
|---|---|
IndexableSharedEntity(Long id,
String name,
String description,
SharedEntity.TypeDescriptor<S> entityType,
String ownerUserName,
Long favouriteCount)
|
|
IndexableSharedEntity(Long id,
String name,
String description,
SharedEntity.TypeDescriptor<S> entityType,
String ownerUserName,
Long favouriteCount,
SharedEntity.SharePermissions permissions)
|
|
| Method Summary | |
|---|---|
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. |
String |
getOwnerUserName()
The user name of the owner of the entity. |
SharedEntity.SharePermissions |
getPermissions()
The permissions for this entity. |
int |
hashCode()
|
void |
setPermissions(SharedEntity.SharePermissions permissions)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexableSharedEntity(Long id,
String name,
String description,
SharedEntity.TypeDescriptor<S> entityType,
String ownerUserName,
Long favouriteCount)
public IndexableSharedEntity(Long id,
String name,
String description,
SharedEntity.TypeDescriptor<S> entityType,
String ownerUserName,
Long favouriteCount,
SharedEntity.SharePermissions permissions)
| Method Detail |
|---|
public Long getId()
SharedEntity
getId in interface SharedEntitypublic String getName()
SharedEntity
getName in interface SharedEntitypublic String getDescription()
SharedEntity
getDescription in interface SharedEntitypublic SharedEntity.TypeDescriptor<S> getEntityType()
SharedEntity
getEntityType in interface SharedEntitypublic String getOwnerUserName()
SharedEntity
getOwnerUserName in interface SharedEntitypublic SharedEntity.SharePermissions getPermissions()
SharedEntity
getPermissions in interface SharedEntitypublic void setPermissions(SharedEntity.SharePermissions permissions)
public Long getFavouriteCount()
Favourite
getFavouriteCount in interface Favouritepublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||