public static class

SharedEntity.Identifier

extends Object
implements SharedEntity
java.lang.Object
   ↳ com.atlassian.jira.sharing.SharedEntity.Identifier

Class Overview

Utility class for identifying a SharedEntity. This can be used instead of a "proper" implementation.

Summary

Public Constructors
SharedEntity.Identifier(Long id, TypeDescriptor<? extends SharedEntity> type, String ownerUserName)
This constructor is deprecated. Use #Identifier(Long, com.atlassian.jira.sharing.SharedEntity.TypeDescriptor, com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
SharedEntity.Identifier(Long id, TypeDescriptor<? extends SharedEntity> type, User owner)
This constructor is deprecated. Use #Identifier(Long, com.atlassian.jira.sharing.SharedEntity.TypeDescriptor, com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
SharedEntity.Identifier(Long id, TypeDescriptor<? extends SharedEntity> type, ApplicationUser owner)
Public Methods
boolean equals(Object o)
String getDescription()
A general description of the entity.
TypeDescriptor<SharedEntity> 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()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.favourites.Favourite
From interface com.atlassian.jira.sharing.SharedEntity

Public Constructors

public SharedEntity.Identifier (Long id, TypeDescriptor<? extends SharedEntity> type, String ownerUserName)

This constructor is deprecated.
Use #Identifier(Long, com.atlassian.jira.sharing.SharedEntity.TypeDescriptor, com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.

public SharedEntity.Identifier (Long id, TypeDescriptor<? extends SharedEntity> type, User owner)

This constructor is deprecated.
Use #Identifier(Long, com.atlassian.jira.sharing.SharedEntity.TypeDescriptor, com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.

public SharedEntity.Identifier (Long id, TypeDescriptor<? extends SharedEntity> type, ApplicationUser owner)

Public Methods

public boolean equals (Object o)

public String getDescription ()

A general description of the entity.

Returns
  • the description. May be null or empty.

public TypeDescriptor<SharedEntity> getEntityType ()

The type of entity it is. Examples include SearchRequest ("SearchRequest") and PortalPage ("PortalPage")

Returns
  • the type of entity.

public Long getFavouriteCount ()

The number of users who have marked this entity as one of their favourites.

Returns
  • long the user count

public Long getId ()

The id of the entity.

Returns
  • the id. May be null if not yet persisted. Some components may not accept a non-persisted entity.

public String getName ()

The name of the entity.

Returns
  • the name. Must not be null or empty.

public ApplicationUser getOwner ()

public String getOwnerUserName ()

public SharedEntity.SharePermissions getPermissions ()

The permissions for this entity.

Returns
  • the permissions object. Must not be null.

public int hashCode ()

public String toString ()