Package org.silverpeas.core.contribution
Class DefaultContributionLocator
- java.lang.Object
-
- org.silverpeas.core.contribution.DefaultContributionLocator
-
- All Implemented Interfaces:
ContributionLocator
@Service @Singleton public class DefaultContributionLocator extends Object implements ContributionLocator
- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description DefaultContributionLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ContributionIdentifier>
locateByLocalIdAndType(String localId, String type)
Gets the fullContributionIdentifier
of aContribution
from a local identifier and a type.
-
-
-
Method Detail
-
locateByLocalIdAndType
public Optional<ContributionIdentifier> locateByLocalIdAndType(String localId, String type)
Description copied from interface:ContributionLocator
Gets the full
ContributionIdentifier
of aContribution
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 interfaceContributionLocator
- Parameters:
localId
- a local identifier.type
- a type of contribution.- Returns:
- the optional full
ContributionIdentifier
.
-
-