com.atlassian.jira.issue.link
Interface IssueLinkTypeManager

All Known Implementing Classes:
DefaultIssueLinkTypeManager

public interface IssueLinkTypeManager

Manages IssueLinkTypes.


Method Summary
 void createIssueLinkType(java.lang.String name, java.lang.String outward, java.lang.String inward, java.lang.String style)
           
 IssueLinkType getIssueLinkType(java.lang.Long id)
           
 java.util.Collection<IssueLinkType> getIssueLinkTypes()
           
 java.util.Collection<IssueLinkType> getIssueLinkTypesByInwardDescription(java.lang.String desc)
          Returns a collection of IssueLinkTypes with the given description as the inward description.
 java.util.Collection<IssueLinkType> getIssueLinkTypesByName(java.lang.String name)
          Returns a collection of IssueLinkTypes with the given name.
 java.util.Collection<IssueLinkType> getIssueLinkTypesByOutwardDescription(java.lang.String desc)
          Returns a collection of IssueLinkTypes with the given description as the outward description.
 java.util.Collection<IssueLinkType> getIssueLinkTypesByStyle(java.lang.String style)
           
 void removeIssueLinkType(java.lang.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, java.lang.String name, java.lang.String outward, java.lang.String inward)
           
 

Method Detail

createIssueLinkType

void createIssueLinkType(java.lang.String name,
                         java.lang.String outward,
                         java.lang.String inward,
                         java.lang.String style)

updateIssueLinkType

void updateIssueLinkType(IssueLinkType issueLinkType,
                         java.lang.String name,
                         java.lang.String outward,
                         java.lang.String inward)

removeIssueLinkType

void removeIssueLinkType(java.lang.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. It simply removes the record from the datastore. Use IssueLinkTypeDestroyer to 'nicely' remove the issue link type taking care of exiting issue links.

Parameters:
issueLinkTypeId - the id of the IssueLinkType to remove

getIssueLinkTypes

java.util.Collection<IssueLinkType> getIssueLinkTypes()

getIssueLinkType

IssueLinkType getIssueLinkType(java.lang.Long id)

getIssueLinkTypesByName

java.util.Collection<IssueLinkType> getIssueLinkTypesByName(java.lang.String name)
Returns a collection of IssueLinkTypes 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.

Parameters:
name - The name to search for Issue Link Types by.
Returns:
a collection of IssueLinkTypes, or an empty collection if name isn't a link type. TODO: Reconsider this method. The GUI enforces unique names.

getIssueLinkTypesByInwardDescription

java.util.Collection<IssueLinkType> getIssueLinkTypesByInwardDescription(java.lang.String desc)
Returns a collection of IssueLinkTypes 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.

Parameters:
desc - the inward description to search on
Returns:
the collection of matched issue link types; never null.
Since:
v4.0

getIssueLinkTypesByOutwardDescription

java.util.Collection<IssueLinkType> getIssueLinkTypesByOutwardDescription(java.lang.String desc)
Returns a collection of IssueLinkTypes 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.

Parameters:
desc - the outward description to search on
Returns:
the collection of matched issue link types; never null.
Since:
v4.0

getIssueLinkTypesByStyle

java.util.Collection<IssueLinkType> getIssueLinkTypesByStyle(java.lang.String style)


Copyright © 2002-2010 Atlassian. All Rights Reserved.