@Deprecated public class AtomCollection extends Object implements Blog.Collection
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(String ct)
Deprecated.
Determines if collection will accept a content-type.
|
List<String> |
getAccepts()
Deprecated.
Content-types accepted by collection.
|
Blog |
getBlog()
Deprecated.
Get blog that contains this collection.
|
List<BlogEntry.Category> |
getCategories()
Deprecated.
Return categories allowed by colletion.
|
Iterator<BlogEntry> |
getEntries()
Deprecated.
Get iterator over entries/resources in this collection.
|
String |
getTitle()
Deprecated.
Title of collection.
|
String |
getToken()
Deprecated.
Token that can be used to fetch collection.
|
BlogEntry |
newEntry()
Deprecated.
Create but do not save new entry in collection.
|
BlogResource |
newResource(String name,
String contentType,
byte[] bytes)
Deprecated.
Create but do not save new resource in collection.
|
String |
saveEntry(BlogEntry entry)
Deprecated.
Save or update a BlogEntry in this collection by adding it to this collection and then
calling it's entry.save() method.
|
String |
saveResource(BlogResource res)
Deprecated.
Save or update resource in this collection
|
public String getTitle()
getTitle
in interface Blog.Collection
public String getToken()
getToken
in interface Blog.Collection
public List<String> getAccepts()
getAccepts
in interface Blog.Collection
public boolean accepts(String ct)
accepts
in interface Blog.Collection
ct
- Content-type to be considered.public Iterator<BlogEntry> getEntries() throws BlogClientException
getEntries
in interface Blog.Collection
BlogClientException
- On error fetching entries/resources.public BlogEntry newEntry() throws BlogClientException
newEntry
in interface Blog.Collection
BlogClientException
- On error creating entry.public BlogResource newResource(String name, String contentType, byte[] bytes) throws BlogClientException
newResource
in interface Blog.Collection
name
- Name of new resource.contentType
- MIME content-type of new resource.bytes
- Data for new resource.BlogClientException
- On error creating entry.public String saveResource(BlogResource res) throws BlogClientException
saveResource
in interface Blog.Collection
res
- BlogResource to be saved.BlogClientException
- On error saving resource.public String saveEntry(BlogEntry entry) throws BlogClientException
saveEntry
in interface Blog.Collection
entry
- BlogEntry to be saved.BlogClientException
- On error saving entry.public Blog getBlog()
getBlog
in interface Blog.Collection
public List<BlogEntry.Category> getCategories()
getCategories
in interface Blog.Collection
Copyright © 2021. All rights reserved.