com.atlassian.jira.sharing.SharedEntityAccessor<S extends com.atlassian.jira.sharing.SharedEntity> |
![]()
|
Provides an abstraction for accessing SharedEntity objects. This class abstracts away the details of the SharedEntity implementation to those components that need it.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SharedEntityAccessor.Factory | Factory to retrieve a SharedEntityAccessor for a given SharedEntity
|
||||||||||
SharedEntityAccessor.RetrievalDescriptor | Used when getting a Collection of shared entities . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adjusts the favourite counts for a given entity.
| |||||||||||
Used to get
sharable entities from a search result. | |||||||||||
Used to get
sharable entities from a search result. | |||||||||||
This method is deprecated.
This has been moved to the PortalPageManager and deprecated for SearchRequestManager. Since v5.2.
| |||||||||||
Get all
sharable entities this accessor can see for use in indexing. | |||||||||||
This is called to get
SharedEntity by id If the user is allows to see it | |||||||||||
This will call back to ask for a
SharedEntity based on id. | |||||||||||
Returns the type that this object can work with.
| |||||||||||
Returns true if the user has permission to use the
SharedEntity |
Adjusts the favourite counts for a given entity. This resulting value must always be greater or equal to one.
entity | the entity to adjust |
---|---|
adjustmentValue | the value to adjust by. |
Used to get sharable entities
from a search result.
descriptor | retrieval descriptor |
---|
EnclosedIterable
of SharedEntity
's
Used to get sharable entities
from a search result.
The entities returned may be modified by the user parameter (e.g. permissions or clause sanitisation).
searcher | the user performing the search |
---|---|
descriptor | retrieval descriptor |
EnclosedIterable
of SharedEntity
's
This method is deprecated.
This has been moved to the PortalPageManager and deprecated for SearchRequestManager. Since v5.2.
Get all sharable entities
this accessor can see.
EnclosedIterable
of SharedEntity
'sGet all sharable entities
this accessor can see for use in indexing.
EnclosedIterable
of SharedEntity
's
This is called to get SharedEntity
by id If the user is allows to see it
user | the user in play |
---|---|
entityId | the id of the SharedEntity |
SharedEntity
if it exists and the user can see it and null otherwise
This will call back to ask for a SharedEntity
based on id.
entityId | the id of the SharedEntity |
---|
SharedEntity
or null if it cant be found
Returns the type that this object can work with.
Returns true if the user has permission to use the SharedEntity
user | the user in play |
---|---|
entity | the SharedEntity to check |