@Deprecated public class AtomCollection extends java.lang.Object implements Blog.Collection
Modifier and Type | Field and Description |
---|---|
private Blog |
blog
Deprecated.
|
private java.util.List<BlogEntry.Category> |
categories
Deprecated.
|
private ClientCollection |
clientCollection
Deprecated.
|
Constructor and Description |
---|
AtomCollection(AtomBlog blog,
ClientCollection col)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(java.lang.String ct)
Deprecated.
Determines if collection will accept a content-type.
|
(package private) void |
deleteEntry(BlogEntry entry)
Deprecated.
|
java.util.List<java.lang.String> |
getAccepts()
Deprecated.
Content-types accepted by collection.
|
Blog |
getBlog()
Deprecated.
Get blog that contains this collection.
|
java.util.List<BlogEntry.Category> |
getCategories()
Deprecated.
Return categories allowed by colletion.
|
(package private) ClientCollection |
getClientCollection()
Deprecated.
|
java.util.Iterator<BlogEntry> |
getEntries()
Deprecated.
Get iterator over entries/resources in this collection.
|
java.lang.String |
getTitle()
Deprecated.
Title of collection.
|
java.lang.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(java.lang.String name,
java.lang.String contentType,
byte[] bytes)
Deprecated.
Create but do not save new resource in collection.
|
java.lang.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.
|
java.lang.String |
saveResource(BlogResource res)
Deprecated.
Save or update resource in this collection
|
(package private) void |
setBlog(AtomBlog blog)
Deprecated.
|
(package private) void |
setCategories(java.util.List<BlogEntry.Category> categories)
Deprecated.
|
private Blog blog
private java.util.List<BlogEntry.Category> categories
private ClientCollection clientCollection
AtomCollection(AtomBlog blog, ClientCollection col)
public java.lang.String getTitle()
getTitle
in interface Blog.Collection
public java.lang.String getToken()
getToken
in interface Blog.Collection
public java.util.List<java.lang.String> getAccepts()
getAccepts
in interface Blog.Collection
public boolean accepts(java.lang.String ct)
accepts
in interface Blog.Collection
ct
- Content-type to be considered.public java.util.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(java.lang.String name, java.lang.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 java.lang.String saveResource(BlogResource res) throws BlogClientException
saveResource
in interface Blog.Collection
res
- BlogResource to be saved.BlogClientException
- On error saving resource.public java.lang.String saveEntry(BlogEntry entry) throws BlogClientException
saveEntry
in interface Blog.Collection
entry
- BlogEntry to be saved.BlogClientException
- On error saving entry.void deleteEntry(BlogEntry entry) throws BlogClientException
BlogClientException
public Blog getBlog()
getBlog
in interface Blog.Collection
void setBlog(AtomBlog blog)
public java.util.List<BlogEntry.Category> getCategories()
getCategories
in interface Blog.Collection
void setCategories(java.util.List<BlogEntry.Category> categories)
ClientCollection getClientCollection()