Class DefaultContributionLocator

    • Constructor Detail

      • DefaultContributionLocator

        public DefaultContributionLocator()
    • Method Detail

      • locateByLocalIdAndType

        public Optional<ContributionIdentifier> locateByLocalIdAndType​(String localId,
                                                                       String type)
        Description copied from interface: ContributionLocator

        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).

        Specified by:
        locateByLocalIdAndType in interface ContributionLocator
        Parameters:
        localId - a local identifier.
        type - a type of contribution.
        Returns:
        the optional full ContributionIdentifier.