public class SimpleSiteStructure extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SimpleSiteStructure.AttachmentRepresentation |
static class |
SimpleSiteStructure.ContentRepresentation |
static interface |
SimpleSiteStructure.ExportableItem |
static class |
SimpleSiteStructure.IdentifiedRepresentation |
static class |
SimpleSiteStructure.PageRepresentation |
static class |
SimpleSiteStructure.SpaceRepresentation |
static class |
SimpleSiteStructure.UserRepresentation
The representation of a Confluence user in the export file
|
Constructor and Description |
---|
SimpleSiteStructure() |
Modifier and Type | Method and Description |
---|---|
void |
add(SimpleSiteStructure.ExportableItem rep) |
void |
addAttachmentData(String name,
InputStream inputStream) |
static SimpleSiteStructure |
createFromStream(InputStream str)
Utility method to create a SimpleSiteStructure as represented by the supplied InputStream.
|
Set<SimpleSiteStructure.AttachmentRepresentation> |
getAllAttachments() |
String |
getAttachmentData(SimpleSiteStructure.AttachmentRepresentation attachment,
int version) |
SimpleSiteStructure.PageRepresentation |
getPageFromSpaceWithTitle(String spaceKey,
String title) |
boolean |
hasAnonymizedUser(String username) |
boolean |
hasPage(AbstractPageEntity page) |
boolean |
hasUserWithEmail(String username) |
public void add(SimpleSiteStructure.ExportableItem rep)
rep
- the object to be stored in the structure.public SimpleSiteStructure.PageRepresentation getPageFromSpaceWithTitle(String spaceKey, String title)
spaceKey
- the key of the space the page is found intitle
- the title of the pagepublic boolean hasUserWithEmail(String username)
public boolean hasAnonymizedUser(String username)
public boolean hasPage(AbstractPageEntity page)
public Set<SimpleSiteStructure.AttachmentRepresentation> getAllAttachments()
public static SimpleSiteStructure createFromStream(InputStream str) throws Exception
str
- the stream to parse.Exception
public void addAttachmentData(String name, InputStream inputStream) throws IOException
IOException
public String getAttachmentData(SimpleSiteStructure.AttachmentRepresentation attachment, int version)
Copyright © 2003–2021 Atlassian. All rights reserved.