public class SimpleSiteStructure extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SimpleSiteStructure.AttachmentRepresentation |
static class |
SimpleSiteStructure.ContentRepresentation |
static class |
SimpleSiteStructure.IdentifiedRepresentation |
static class |
SimpleSiteStructure.PageRepresentation |
static class |
SimpleSiteStructure.SpaceRepresentation |
Constructor and Description |
---|
SimpleSiteStructure() |
Modifier and Type | Method and Description |
---|---|
void |
add(SimpleSiteStructure.IdentifiedRepresentation 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 |
hasPage(AbstractPageEntity page) |
public void add(SimpleSiteStructure.IdentifiedRepresentation 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 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–2016 Atlassian. All rights reserved.