Class AssociationType

  • All Implemented Interfaces:
    IExtendedResource, IResource

    @OslcNamespace("http://www.sodius.com/ns/process#")
    @OslcResourceShape(title="Association Type Resource Shape",
                       describes="http://www.sodius.com/ns/process#AssociationType")
    public class AssociationType
    extends AbstractResource
    Describes a type of ProjectAreaAssociation.

    An association type gives access to a set of LinkTypes between 2 projects.

    Here is a link listing existing OSLC association types:

    • Jazz wiki: https://jazz.net/wiki/bin/view/Main/CALM2010LinkTypes

    The set of supported association types can be restricted to a subset using a ProcessScope instance, that all methods returning association types in this class will use.

    Since:
    1.3.0
    See Also:
    ProcessScope
    • Constructor Detail

      • AssociationType

        public AssociationType()
      • AssociationType

        public AssociationType​(AssociationType associationType)
    • Method Detail

      • forDomains

        public static Collection<AssociationType> forDomains​(URI localDomain,
                                                             URI friendDomain)
                                                      throws LinkingTypesStoreException
        Returns the supported association types between the 2 given domains.
        Parameters:
        localDomain - the domain of the local project
        friendDomain - the domain of the friend's project
        Returns:
        the supported association types
        Throws:
        LinkingTypesStoreException - if an error prevents link types from being retrieved - added in 3.13.0.
        Since:
        3.13.0
      • setIdentifier

        public void setIdentifier​(String identifier)
      • setTitle

        public void setTitle​(String title)
      • setDirection

        public void setDirection​(String direction)
      • setSourceDomain

        public void setSourceDomain​(Domain sourceDomain)
        Sets the source domain of the association.
        Parameters:
        sourceDomain - the domain - updated to the full domain (with title and abbreviated title) in 3.13.0
        Since:
        3.13.0
      • setTargetDomain

        public void setTargetDomain​(Domain targetDomain)
        Sets the target domain of the association.
        Parameters:
        targetDomain - the domain - updated to the full domain (with title and abbreviated title) in 3.13.0
        Since:
        3.13.0