@Component public class DefaultLinkService extends Object implements LinkService
| Constructor and Description |
|---|
DefaultLinkService() |
| Modifier and Type | Method and Description |
|---|---|
org.xwiki.gwt.wysiwyg.client.wiki.EntityConfig |
getEntityConfig(org.xwiki.gwt.wysiwyg.client.wiki.EntityReference origin,
org.xwiki.gwt.wysiwyg.client.wiki.ResourceReference destination)
Creates an EntityConfig (URL and reference) for a link with the specified origin and
destination.
|
org.xwiki.gwt.wysiwyg.client.wiki.ResourceReference |
parseLinkReference(String linkReferenceAsString,
org.xwiki.gwt.wysiwyg.client.wiki.EntityReference baseReference)
Parses a given link reference and extracts a reference to the linked entity.
|
public org.xwiki.gwt.wysiwyg.client.wiki.EntityConfig getEntityConfig(org.xwiki.gwt.wysiwyg.client.wiki.EntityReference origin,
org.xwiki.gwt.wysiwyg.client.wiki.ResourceReference destination)
getEntityConfig in interface LinkServiceorigin - Origin of the link.destination - Destination of the link.LinkService.getEntityConfig(org.xwiki.gwt.wysiwyg.client.wiki.EntityReference,
org.xwiki.gwt.wysiwyg.client.wiki.ResourceReference)public org.xwiki.gwt.wysiwyg.client.wiki.ResourceReference parseLinkReference(String linkReferenceAsString, org.xwiki.gwt.wysiwyg.client.wiki.EntityReference baseReference)
parseLinkReference in interface LinkServicelinkReferenceAsString - The link reference pointing to the entity.baseReference - The entity reference which is used for resolving the linked entity reference.LinkService.parseLinkReference(String,
org.xwiki.gwt.wysiwyg.client.wiki.EntityReference)Copyright © 2003–2018 eXo Platform SAS. All rights reserved.