public class MappingsResolverImpl extends Object implements MappingsResolver
Constructor and Description |
---|
MappingsResolverImpl(com.sdl.delivery.configuration.Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
PublicationMapping |
getPublicationIdForIdentifier(String publicationIdentifier)
Returns publication id based on the property of publication entry.
|
PublicationMapping |
getPublicationMappingFromUrl(int namespaceId,
String urlPath)
Returns publication id and root path of the page url.
|
PublicationMapping |
getPublicationMappingFromUrl(String urlPath)
Returns publication id and root path of the page url.
|
public MappingsResolverImpl(com.sdl.delivery.configuration.Configuration configuration)
public PublicationMapping getPublicationMappingFromUrl(String urlPath)
MappingsResolver
getPublicationMappingFromUrl
in interface MappingsResolver
urlPath
- Full and absolute url to the page.public PublicationMapping getPublicationMappingFromUrl(int namespaceId, String urlPath)
MappingsResolver
getPublicationMappingFromUrl
in interface MappingsResolver
namespaceId
- Publication namespace id.urlPath
- Full and absolute url to the page.public PublicationMapping getPublicationIdForIdentifier(String publicationIdentifier)
MappingsResolver
getPublicationIdForIdentifier
in interface MappingsResolver
publicationIdentifier
- The publication property used for identifying specific publication.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries