public class DefaultIssueLinkTypeManager extends Object implements IssueLinkTypeManager
| Constructor and Description |
|---|
DefaultIssueLinkTypeManager(OfBizDelegator delegator,
QueryDslAccessor dbConnectionManager,
com.atlassian.cache.CacheManager cacheManager,
IssueLinkingHandler issueLinkingHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
createIssueLinkType(String name,
String outward,
String inward,
String style) |
IssueLinkType |
getIssueLinkType(Long id)
Returns a user-defined (non-system) issue link type object for the specified ID.
|
IssueLinkType |
getIssueLinkType(Long id,
boolean excludeSystemLinks) |
Collection<IssueLinkType> |
getIssueLinkTypes()
Find only the user defined link types
|
Collection<IssueLinkType> |
getIssueLinkTypes(boolean excludeSystemLinks) |
Collection<IssueLinkType> |
getIssueLinkTypesByInwardDescription(String desc)
Returns a collection of
IssueLinkTypes with the given description as the inward description. |
Collection<IssueLinkType> |
getIssueLinkTypesByName(String name)
Returns a collection of
IssueLinkTypes with the given name. |
Collection<IssueLinkType> |
getIssueLinkTypesByOutwardDescription(String desc)
Returns a collection of
IssueLinkTypes with the given description as the outward description. |
Collection<IssueLinkType> |
getIssueLinkTypesByStyle(String style) |
Map<Long,IssueLinkType> |
loadIssueLinkTypes() |
void |
onClearCache(ClearCacheEvent event) |
void |
removeIssueLinkType(Long issueLinkTypeId)
This method removed the issue link type from the database
WARNING: This method DOES NOT check if there are any existing issue links of this issue link type. |
void |
updateIssueLinkType(IssueLinkType issueLinkType,
String name,
String outward,
String inward) |
public DefaultIssueLinkTypeManager(OfBizDelegator delegator, QueryDslAccessor dbConnectionManager, com.atlassian.cache.CacheManager cacheManager, IssueLinkingHandler issueLinkingHandler)
@EventListener public void onClearCache(ClearCacheEvent event)
public void createIssueLinkType(String name, String outward, String inward, String style)
createIssueLinkType in interface IssueLinkTypeManagerpublic IssueLinkType getIssueLinkType(Long id)
IssueLinkTypeManagergetIssueLinkType in interface IssueLinkTypeManagerid - the idpublic IssueLinkType getIssueLinkType(Long id, boolean excludeSystemLinks)
getIssueLinkType in interface IssueLinkTypeManagerid - the id of the issue link typeexcludeSystemLinks - whether or not to exclude system linksIssueLinkTypeManager.getIssueLinkType(Long)public Collection<IssueLinkType> getIssueLinkTypesByName(String name)
IssueLinkTypeManagerIssueLinkTypes with the given name.
Actually this collection should always have either one or zero elements - it is illegal to have two link types
with the same name.getIssueLinkTypesByName in interface IssueLinkTypeManagername - The name to search for Issue Link Types by.IssueLinkTypes, or an empty collection if name isn't a link type.
TODO: Reconsider this method. The GUI enforces unique names.public Collection<IssueLinkType> getIssueLinkTypesByInwardDescription(String desc)
IssueLinkTypeManagerIssueLinkTypes with the given description as the inward description.
There is no restriction on inward and outward descriptions being unique across issue link types, which is why this
may return more than one IssueLinkType.
getIssueLinkTypesByInwardDescription in interface IssueLinkTypeManagerdesc - the inward description to search onpublic Collection<IssueLinkType> getIssueLinkTypesByOutwardDescription(String desc)
IssueLinkTypeManagerIssueLinkTypes with the given description as the outward description.
There is no restriction on inward and outward descriptions being unique across issue link types, which is why this
may return more than one IssueLinkType.
getIssueLinkTypesByOutwardDescription in interface IssueLinkTypeManagerdesc - the outward description to search onpublic Collection<IssueLinkType> getIssueLinkTypesByStyle(String style)
getIssueLinkTypesByStyle in interface IssueLinkTypeManagerpublic void updateIssueLinkType(IssueLinkType issueLinkType, String name, String outward, String inward)
updateIssueLinkType in interface IssueLinkTypeManagerpublic void removeIssueLinkType(Long issueLinkTypeId)
IssueLinkTypeManagerIssueLinkTypeDestroyer to 'nicely'
remove the issue link type taking care of existing issue links.removeIssueLinkType in interface IssueLinkTypeManagerissueLinkTypeId - the id of the IssueLinkType to removepublic Collection<IssueLinkType> getIssueLinkTypes()
getIssueLinkTypes in interface IssueLinkTypeManagerpublic Collection<IssueLinkType> getIssueLinkTypes(boolean excludeSystemLinks)
getIssueLinkTypes in interface IssueLinkTypeManagerexcludeSystemLinks - whether or not to exclude system linksIssueLinkTypeManager.getIssueLinkTypes()public Map<Long,IssueLinkType> loadIssueLinkTypes()
Copyright © 2002-2023 Atlassian. All Rights Reserved.