public class AttachmentDiff extends Object
AttachmentDiff
that can be used by the scripts.Constructor and Description |
---|
AttachmentDiff(AttachmentDiff diff,
XWikiContext context)
Wraps the given unsafe attachment difference.
|
Modifier and Type | Method and Description |
---|---|
String |
getFileName() |
Attachment |
getNewAttachment() |
String |
getNewVersion()
Deprecated.
|
Attachment |
getOrigAttachment() |
String |
getOrigVersion()
Deprecated.
|
String |
getType() |
String |
toString() |
public AttachmentDiff(AttachmentDiff diff, XWikiContext context)
diff
- the unsafe attachment differencecontext
- the XWiki context needed to create the safe versions of XWikiAttachment
public String getFileName()
public String getType()
public Attachment getOrigAttachment()
public Attachment getNewAttachment()
@Deprecated public String getOrigVersion()
AttachmentDiff
.@Deprecated public String getNewVersion()
AttachmentDiff
.Copyright © 2004–2022 XWiki. All rights reserved.