org.exoplatform.wiki.service.wysiwyg
Class EntityReferenceConverter

java.lang.Object
  extended by org.exoplatform.wiki.service.wysiwyg.EntityReferenceConverter

public class EntityReferenceConverter
extends Object


Constructor Summary
EntityReferenceConverter()
           
 
Method Summary
 org.xwiki.gwt.wysiwyg.client.wiki.AttachmentReference convert(org.xwiki.model.reference.AttachmentReference attachmentReference)
           
 org.xwiki.model.reference.AttachmentReference convert(org.xwiki.gwt.wysiwyg.client.wiki.AttachmentReference clientAttachmentReference)
           
 org.xwiki.gwt.wysiwyg.client.wiki.WikiPageReference convert(org.xwiki.model.reference.DocumentReference documentReference)
           
 org.xwiki.model.reference.EntityReference convert(org.xwiki.gwt.wysiwyg.client.wiki.EntityReference clientEntityReference)
          Converts an entity reference received from the client to an entity reference to be used on the server.
 org.xwiki.gwt.wysiwyg.client.wiki.EntityReference convert(org.xwiki.model.reference.EntityReference serverEntityReference)
          Converts an entity reference used on the server side to an entity reference to be sent to the client.
 org.xwiki.model.reference.DocumentReference convert(org.xwiki.gwt.wysiwyg.client.wiki.WikiPageReference reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityReferenceConverter

public EntityReferenceConverter()
Method Detail

convert

public org.xwiki.model.reference.EntityReference convert(org.xwiki.gwt.wysiwyg.client.wiki.EntityReference clientEntityReference)
Converts an entity reference received from the client to an entity reference to be used on the server.

Parameters:
clientEntityReference - a client-side entity reference
Returns:
a server-side entity reference

convert

public org.xwiki.gwt.wysiwyg.client.wiki.EntityReference convert(org.xwiki.model.reference.EntityReference serverEntityReference)
Converts an entity reference used on the server side to an entity reference to be sent to the client.

Parameters:
serverEntityReference - a server-side entity reference
Returns:
the corresponding client-side entity reference

convert

public org.xwiki.gwt.wysiwyg.client.wiki.WikiPageReference convert(org.xwiki.model.reference.DocumentReference documentReference)
Parameters:
documentReference - a document reference
Returns:
the corresponding wiki page reference

convert

public org.xwiki.model.reference.DocumentReference convert(org.xwiki.gwt.wysiwyg.client.wiki.WikiPageReference reference)
Parameters:
reference - a wiki page reference
Returns:
the corresponding document reference

convert

public org.xwiki.gwt.wysiwyg.client.wiki.AttachmentReference convert(org.xwiki.model.reference.AttachmentReference attachmentReference)
Parameters:
attachmentReference - an attachment reference
Returns:
the corresponding client attachment reference

convert

public org.xwiki.model.reference.AttachmentReference convert(org.xwiki.gwt.wysiwyg.client.wiki.AttachmentReference clientAttachmentReference)
Parameters:
clientAttachmentReference - a client attachment reference
Returns:
the corresponding server-side attachment reference


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.