|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.issue.link.DefaultIssueLinkTypeManager
public class DefaultIssueLinkTypeManager
Constructor Summary | |
---|---|
DefaultIssueLinkTypeManager(OfBizDelegator delegator,
com.atlassian.event.api.EventPublisher eventPublisher)
|
Method Summary | |
---|---|
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 IssueLinkType s with the given description as the inward description. |
Collection |
getIssueLinkTypesByName(String name)
Returns a collection of IssueLinkType s with the given name. |
Collection<IssueLinkType> |
getIssueLinkTypesByOutwardDescription(String desc)
Returns a collection of IssueLinkType s with the given description as the outward description. |
Collection |
getIssueLinkTypesByStyle(String style)
|
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 |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
void |
updateIssueLinkType(IssueLinkType issueLinkType,
String name,
String outward,
String inward)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIssueLinkTypeManager(OfBizDelegator delegator, com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail |
---|
public void start() throws Exception
Startable
start
in interface Startable
Exception
- Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
public void createIssueLinkType(String name, String outward, String inward, String style)
createIssueLinkType
in interface IssueLinkTypeManager
public IssueLinkType getIssueLinkType(Long id)
IssueLinkTypeManager
getIssueLinkType
in interface IssueLinkTypeManager
id
- the id
public IssueLinkType getIssueLinkType(Long id, boolean excludeSystemLinks)
getIssueLinkType
in interface IssueLinkTypeManager
id
- the id of the issue link typeexcludeSystemLinks
- whether or not to exclude system links
IssueLinkTypeManager.getIssueLinkType(Long)
public Collection getIssueLinkTypesByName(String name)
IssueLinkTypeManager
IssueLinkType
s 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 IssueLinkTypeManager
name
- The name to search for Issue Link Types by.
IssueLinkType
s, 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)
IssueLinkTypeManager
IssueLinkType
s 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 IssueLinkTypeManager
desc
- the inward description to search on
public Collection<IssueLinkType> getIssueLinkTypesByOutwardDescription(String desc)
IssueLinkTypeManager
IssueLinkType
s 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 IssueLinkTypeManager
desc
- the outward description to search on
public Collection getIssueLinkTypesByStyle(String style)
getIssueLinkTypesByStyle
in interface IssueLinkTypeManager
public void updateIssueLinkType(IssueLinkType issueLinkType, String name, String outward, String inward)
updateIssueLinkType
in interface IssueLinkTypeManager
public void removeIssueLinkType(Long issueLinkTypeId)
IssueLinkTypeManager
IssueLinkTypeDestroyer
to 'nicely'
remove the issue link type taking care of existing issue links.
removeIssueLinkType
in interface IssueLinkTypeManager
issueLinkTypeId
- the id of the IssueLinkType
to removepublic Collection<IssueLinkType> getIssueLinkTypes()
getIssueLinkTypes
in interface IssueLinkTypeManager
public Collection<IssueLinkType> getIssueLinkTypes(boolean excludeSystemLinks)
getIssueLinkTypes
in interface IssueLinkTypeManager
excludeSystemLinks
- whether or not to exclude system links
IssueLinkTypeManager.getIssueLinkTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |