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
Created by The eXo Platform SAS
Author : viet nguyen
viet.nguyen@exoplatform.com
Aug 12, 2010
|
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 entity link configuration object (URL, link 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 the 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 entity link configuration object (URL, link 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 - the origin of the linkdestination - the destination of the link
- Returns:
- the link configuration object that can be used to insert the link in the origin page
- 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 the given link reference and extracts a reference to the linked entity. The returned entity reference is
resolved relative to the given base entity reference.
- Specified by:
parseLinkReference in interface LinkService
- Parameters:
linkReferenceAsString - a link reference pointing to an entity of the specified typebaseReference - the entity reference used to resolve the linked entity reference
- Returns:
- a reference to the linked entity
- See Also:
LinkService.parseLinkReference(String,
org.xwiki.gwt.wysiwyg.client.wiki.EntityReference)
Copyright © 2013 eXo Platform SAS. All Rights Reserved.