|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 SearchRequest
s, 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(java.lang.Long id,
java.lang.String name,
java.lang.String description,
SharedEntity.TypeDescriptor<S> entityType,
java.lang.String ownerUserName,
java.lang.Long favouriteCount)
|
|
IndexableSharedEntity(java.lang.Long id,
java.lang.String name,
java.lang.String description,
SharedEntity.TypeDescriptor<S> entityType,
java.lang.String ownerUserName,
java.lang.Long favouriteCount,
SharedEntity.SharePermissions permissions)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDescription()
A general description of the entity. |
SharedEntity.TypeDescriptor<S> |
getEntityType()
The type of entity it is. |
java.lang.Long |
getFavouriteCount()
The number of users who have marked this entity as one of their favourites. |
java.lang.Long |
getId()
The id of the entity. |
java.lang.String |
getName()
The name of the entity. |
java.lang.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(java.lang.Long id, java.lang.String name, java.lang.String description, SharedEntity.TypeDescriptor<S> entityType, java.lang.String ownerUserName, java.lang.Long favouriteCount)
public IndexableSharedEntity(java.lang.Long id, java.lang.String name, java.lang.String description, SharedEntity.TypeDescriptor<S> entityType, java.lang.String ownerUserName, java.lang.Long favouriteCount, SharedEntity.SharePermissions permissions)
Method Detail |
---|
public java.lang.Long getId()
SharedEntity
getId
in interface SharedEntity
public java.lang.String getName()
SharedEntity
getName
in interface SharedEntity
public java.lang.String getDescription()
SharedEntity
getDescription
in interface SharedEntity
public SharedEntity.TypeDescriptor<S> getEntityType()
SharedEntity
getEntityType
in interface SharedEntity
public java.lang.String getOwnerUserName()
SharedEntity
getOwnerUserName
in interface SharedEntity
public SharedEntity.SharePermissions getPermissions()
SharedEntity
getPermissions
in interface SharedEntity
public void setPermissions(SharedEntity.SharePermissions permissions)
public java.lang.Long getFavouriteCount()
Favourite
getFavouriteCount
in interface Favourite
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |