Package io.wcm.handler.link.type
Class InternalCrossScopeLinkType
- java.lang.Object
-
- io.wcm.handler.link.spi.LinkType
-
- io.wcm.handler.link.type.InternalCrossScopeLinkType
-
@Deprecated @Model(adaptables={org.apache.sling.api.SlingHttpServletRequest.class,org.apache.sling.api.resource.Resource.class}) @ProviderType public final class InternalCrossScopeLinkType extends LinkType
Deprecated.Please useInternalCrossContextLinkType
instead.Implementation ofLinkType
for internal links with supports links between different configuration scopes (which normally relates to different sites/languages). Internal links are links to content pages inside the CMS.This link type ensures that links that are referenced from other configuration scopes (sites/languages) are resolved using the URL handler configuration of the target scope, e.g. with the Site URL from the other site.
-
-
Field Summary
Fields Modifier and Type Field Description static @NotNull java.lang.String
ID
Deprecated.Link type ID
-
Constructor Summary
Constructors Constructor Description InternalCrossScopeLinkType()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
accepts(@NotNull LinkRequest linkRequest)
Deprecated.Checks whether a link reference can be handled by this link typeboolean
accepts(@NotNull java.lang.String linkRef)
Deprecated.Checks whether a link reference string can be handled by this link type@NotNull java.lang.String
getId()
Deprecated.java.lang.String
getPrimaryLinkRefProperty()
Deprecated.static @NotNull org.apache.sling.api.resource.Resource
getSyntheticLinkResource(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull java.lang.String pageRef)
Deprecated.static @NotNull org.apache.sling.api.resource.Resource
getSyntheticLinkResource(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull java.lang.String path, @NotNull java.lang.String pageRef)
Deprecated.Get synthetic link resource for this link type.@NotNull Link
resolveLink(@NotNull Link link)
Deprecated.Resolves a linkjava.lang.String
toString()
Deprecated.-
Methods inherited from class io.wcm.handler.link.spi.LinkType
getEditComponentResourceType, getLabel, hasRichTextPlugin
-
-
-
-
Field Detail
-
ID
@NotNull public static final @NotNull java.lang.String ID
Deprecated.Link type ID- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
@NotNull public @NotNull java.lang.String getId()
Deprecated.
-
getPrimaryLinkRefProperty
public java.lang.String getPrimaryLinkRefProperty()
Deprecated.- Specified by:
getPrimaryLinkRefProperty
in classLinkType
- Returns:
- Name of the property in which the primary link reference is stored
-
accepts
public boolean accepts(@NotNull @NotNull java.lang.String linkRef)
Deprecated.Description copied from class:LinkType
Checks whether a link reference string can be handled by this link type
-
accepts
public boolean accepts(@NotNull @NotNull LinkRequest linkRequest)
Deprecated.Description copied from class:LinkType
Checks whether a link reference can be handled by this link type
-
resolveLink
@NotNull public @NotNull Link resolveLink(@NotNull @NotNull Link link)
Deprecated.Description copied from class:LinkType
Resolves a link- Specified by:
resolveLink
in classLinkType
- Parameters:
link
- Link metadata- Returns:
- Resolved link metadata. Never null.
-
getSyntheticLinkResource
@NotNull public static @NotNull org.apache.sling.api.resource.Resource getSyntheticLinkResource(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull @NotNull java.lang.String path, @NotNull @NotNull java.lang.String pageRef)
Deprecated.Get synthetic link resource for this link type.- Parameters:
resourceResolver
- Resource resolverpath
- Resource path. Can be a non-existing path, but the path should be located somewhere within the applications content paths to make sure the handler configuration looked up via context-aware services is the expected one.pageRef
- Path to target page- Returns:
- Synthetic link resource
-
getSyntheticLinkResource
@Deprecated @NotNull public static @NotNull org.apache.sling.api.resource.Resource getSyntheticLinkResource(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull @NotNull java.lang.String pageRef)
Deprecated.Get synthetic link resource for this link type.- Parameters:
resourceResolver
- Resource resolverpageRef
- Path to target page- Returns:
- Synthetic link resource
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-