org.xwiki.wysiwyg.server.wiki
Class EntityReferenceConverter
java.lang.Object
org.xwiki.wysiwyg.server.wiki.EntityReferenceConverter
public class EntityReferenceConverter
- extends Object
Converts between client-side entity references and server-side entity references.
- Version:
- $Id: fdfc3a532aff50321c7f772d9dfefdf0b26f4b28 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityReferenceConverter
public EntityReferenceConverter()
convert
public EntityReference convert(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 EntityReference convert(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 WikiPageReference convert(DocumentReference documentReference)
- Parameters:
documentReference - a document reference
- Returns:
- the corresponding wiki page reference
convert
public DocumentReference convert(WikiPageReference reference)
- Parameters:
reference - a wiki page reference
- Returns:
- the corresponding document reference
convert
public AttachmentReference convert(AttachmentReference attachmentReference)
- Parameters:
attachmentReference - an attachment reference
- Returns:
- the corresponding client attachment reference
convert
public AttachmentReference convert(AttachmentReference clientAttachmentReference)
- Parameters:
clientAttachmentReference - a client attachment reference
- Returns:
- the corresponding server-side attachment reference
Copyright © 2004-2012 XWiki. All Rights Reserved.