Interface ContributionLocatorByLocalIdAndType

    • Method Detail

      • isContributionLocatorOfType

        boolean isContributionLocatorOfType​(String type)

        Indicates if the implementation is able to locate a contribution of the given type.

        The main interest of this method is to increase the performance into mechanism of locating.

        Parameters:
        type - a contribution type.
        Returns:
        true if implementation is able to locate a contribution of the given type, false otherwise.
      • getContributionIdentifierFromLocalIdAndType

        Optional<ContributionIdentifier> getContributionIdentifierFromLocalIdAndType​(String localId,
                                                                                     String type)

        Gets the full ContributionIdentifier of a Contribution from a local identifier and a type.

        A local identifier is an identifier which is unique into the context of a component.
        In a higher scope level, application level so, there is no guarantee that the local identifier could be unique.
        That is why the type is a mandatory data for the contribution location search. Indeed, a local id could not be unique at application level, but a couple localId / type has to (publication services for example).

        Parameters:
        localId - a local identifier.
        type - a type of contribution.
        Returns:
        the optional full ContributionIdentifier.