public class DefaultJiraPropertySetFactory extends Object implements JiraPropertySetFactory
OFBizPropertySet
CachingOfBizPropertySet.| Constructor and Description |
|---|
DefaultJiraPropertySetFactory()
Deprecated.
This is a component. Get it injected or ask the ComponentAccessor for it instead of constructing it.
|
DefaultJiraPropertySetFactory(JiraCachingPropertySetManager jiraCachingPropertySetManager,
OfBizPropertyEntryStore ofBizPropertyEntryStore)
Constructor for use by the DI container.
|
| Modifier and Type | Method and Description |
|---|---|
com.opensymphony.module.propertyset.PropertySet |
buildCachingDefaultPropertySet(String entityName)
Returns a caching
PropertySet for the given entity name and an assumed
entity ID of 1. |
com.opensymphony.module.propertyset.PropertySet |
buildCachingDefaultPropertySet(String entityName,
boolean bulkLoad)
This is the old form of
JiraPropertySetFactory.buildCachingDefaultPropertySet(String). |
com.opensymphony.module.propertyset.PropertySet |
buildCachingPropertySet(com.opensymphony.module.propertyset.PropertySet propertySet,
boolean bulkLoad)
Returns a
PropertySet that caches the return values of the PropertySet that is provided. |
com.opensymphony.module.propertyset.PropertySet |
buildCachingPropertySet(String entityName,
Long entityId)
Returns a caching
PropertySet for the given entity name and ID. |
com.opensymphony.module.propertyset.PropertySet |
buildCachingPropertySet(String entityName,
Long entityId,
boolean bulkLoad)
This is the old form of
JiraPropertySetFactory.buildCachingPropertySet(String, Long). |
com.opensymphony.module.propertyset.PropertySet |
buildMemoryPropertySet(String entityName,
Long entityId)
Returns an in-memory copy of a property set from the database.
|
com.opensymphony.module.propertyset.PropertySet |
buildNoncachingPropertySet(String entityName)
Returns a non-caching
PropertySet for the given entity name and an assumed
entity ID of 1. |
com.opensymphony.module.propertyset.PropertySet |
buildNoncachingPropertySet(String entityName,
Long entityId)
Returns a non-caching
PropertySet for the given entity name and ID. |
@Deprecated public DefaultJiraPropertySetFactory()
public DefaultJiraPropertySetFactory(JiraCachingPropertySetManager jiraCachingPropertySetManager, OfBizPropertyEntryStore ofBizPropertyEntryStore)
jiraCachingPropertySetManager - required@Nonnull public com.opensymphony.module.propertyset.PropertySet buildNoncachingPropertySet(String entityName)
JiraPropertySetFactoryPropertySet for the given entity name and an assumed
entity ID of 1.buildNoncachingPropertySet in interface JiraPropertySetFactoryentityName - the entity name for the entity that owns this property setPropertySet@Nonnull public com.opensymphony.module.propertyset.PropertySet buildNoncachingPropertySet(String entityName, Long entityId)
JiraPropertySetFactoryPropertySet for the given entity name and ID.buildNoncachingPropertySet in interface JiraPropertySetFactoryentityName - the entity name for the entity that owns this property setentityId - the entity ID for the entity that owns this property setPropertySet@Nonnull public com.opensymphony.module.propertyset.PropertySet buildCachingDefaultPropertySet(String entityName)
JiraPropertySetFactoryPropertySet for the given entity name and an assumed
entity ID of 1.buildCachingDefaultPropertySet in interface JiraPropertySetFactoryentityName - the entity name for the entity that owns this property setPropertySet@Nonnull public com.opensymphony.module.propertyset.PropertySet buildCachingDefaultPropertySet(String entityName, boolean bulkLoad)
JiraPropertySetFactoryJiraPropertySetFactory.buildCachingDefaultPropertySet(String).
Its bulkLoad option is no longer significant.buildCachingDefaultPropertySet in interface JiraPropertySetFactoryentityName - the entity name for the entity that owns this property setbulkLoad - IgnoredPropertySet@Nonnull public com.opensymphony.module.propertyset.PropertySet buildCachingPropertySet(String entityName, Long entityId, boolean bulkLoad)
JiraPropertySetFactoryJiraPropertySetFactory.buildCachingPropertySet(String, Long).
Its bulkLoad option is no longer significant.buildCachingPropertySet in interface JiraPropertySetFactoryentityName - the entity name for the entity that owns this property setentityId - the entity ID for the entity that owns this property setbulkLoad - IgnoredPropertySet@Nonnull public com.opensymphony.module.propertyset.PropertySet buildCachingPropertySet(String entityName, Long entityId)
JiraPropertySetFactoryPropertySet for the given entity name and ID.buildCachingPropertySet in interface JiraPropertySetFactoryentityName - the entity name for the entity that owns this property setentityId - the entity ID for the entity that owns this property setPropertySet@Nonnull public com.opensymphony.module.propertyset.PropertySet buildCachingPropertySet(com.opensymphony.module.propertyset.PropertySet propertySet, boolean bulkLoad)
JiraPropertySetFactoryPropertySet that caches the return values of the PropertySet that is provided.
This can be used to provide short-term caching around another property set implementation, but its use
is now discouraged.
WARNING: These property sets are not cluster-safe and generally not safe to hold
onto for extended time periods. They do not share cache state with any other cached property set,
even if exactly the same delegate propertySet is supplied to this method multiple times.
buildCachingPropertySet in interface JiraPropertySetFactorypropertySet - the PropertySet to which requests should be delegated when the request is not cachedbulkLoad - If true, then all properties will be loaded into the cache during initialisation of the
property set.PropertySet which wraps the supplied property set with a short term, non-cluster-safe cache@Nonnull public com.opensymphony.module.propertyset.PropertySet buildMemoryPropertySet(String entityName, Long entityId)
JiraPropertySetFactorybuildMemoryPropertySet in interface JiraPropertySetFactoryentityName - the entity name for the entity that owns this property setentityId - the entity ID for the entity that owns this property setPropertySet held completely in memory. Changes will not be
written to the database.Copyright © 2002-2017 Atlassian. All Rights Reserved.