org.exoplatform.wiki.service.wysiwyg
Class DefaultLinkService
java.lang.Object
org.exoplatform.wiki.service.wysiwyg.DefaultLinkService
- All Implemented Interfaces:
- LinkService
@Component
public class DefaultLinkService
- extends Object
- implements LinkService
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLinkService
public DefaultLinkService()
getEntityConfig
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)
- Creates an EntityConfig (URL and reference) for a link with the specified origin and
destination. The link reference in the returned EntityConfig is relative to the link origin.
- Specified by:
getEntityConfig in interface LinkService
- Parameters:
origin - Origin of the link.destination - Destination of the link.
- Returns:
- The entity link that can be used to insert the link in the origin.
- See Also:
LinkService.getEntityConfig(org.xwiki.gwt.wysiwyg.client.wiki.EntityReference,
org.xwiki.gwt.wysiwyg.client.wiki.ResourceReference)
parseLinkReference
public 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. The returned entity reference is
resolved that is relative to the given base entity reference.
- Specified by:
parseLinkReference in interface LinkService
- Parameters:
linkReferenceAsString - The link reference pointing to the entity.baseReference - The entity reference which is used for resolving the linked entity reference.
- Returns:
- The link reference to the entity.
- See Also:
LinkService.parseLinkReference(String,
org.xwiki.gwt.wysiwyg.client.wiki.EntityReference)
Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.