org.xwiki.bridge.internal
Class DefaultAttachmentNameFactory

java.lang.Object
  extended by org.xwiki.bridge.internal.DefaultAttachmentNameFactory
All Implemented Interfaces:
AttachmentNameFactory

Deprecated. use AttachmentReferenceResolver instead since 2.2M1

@Component
@Singleton
@Deprecated
public class DefaultAttachmentNameFactory
extends java.lang.Object
implements AttachmentNameFactory

Implementation that supports the format defined in createAttachmentName(String).

Since:
2.0RC1
Version:
$Id$

Field Summary
static java.lang.String FILENAME_SEPARATOR
          Deprecated. Character to separate document name from filename, see createAttachmentName(String).
 
Constructor Summary
DefaultAttachmentNameFactory()
          Deprecated.  
 
Method Summary
 AttachmentName createAttachmentName(java.lang.String reference)
          Deprecated.  The supported formats are: wiki:space.page@filename filename If no "@" symbol is found then the reference is the attachment's filename and the document is the current document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILENAME_SEPARATOR

public static final java.lang.String FILENAME_SEPARATOR
Deprecated. 
Character to separate document name from filename, see createAttachmentName(String).

See Also:
Constant Field Values
Constructor Detail

DefaultAttachmentNameFactory

public DefaultAttachmentNameFactory()
Deprecated. 
Method Detail

createAttachmentName

public AttachmentName createAttachmentName(java.lang.String reference)
Deprecated. 
The supported formats are: If no "@" symbol is found then the reference is the attachment's filename and the document is the current document.

Specified by:
createAttachmentName in interface AttachmentNameFactory
Parameters:
reference - the attachment's name as a string using a textual format (eg wiki:space.page@attachment). The supported format is up to implementers of this method.
Returns:
the object representing an attachment reference
See Also:
AttachmentNameFactory.createAttachmentName(String)


Copyright © 2004-2011 XWiki. All Rights Reserved.