Blog.Collection
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,AtomCollection> |
collections
Deprecated.
|
private AtomCollection |
entriesCollection
Deprecated.
|
private java.lang.String |
name
Deprecated.
|
private AtomCollection |
resourcesCollection
Deprecated.
|
private ClientAtomService |
service
Deprecated.
|
private ClientWorkspace |
workspace
Deprecated.
|
Constructor and Description |
---|
AtomBlog(ClientAtomService service,
ClientWorkspace workspace)
Deprecated.
Create AtomBlog using specified HTTPClient, user account and workspace, called by
AtomConnection.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
deleteEntry(BlogEntry entry)
Deprecated.
|
(package private) void |
deleteResource(BlogResource resource)
Deprecated.
|
java.util.List<BlogEntry.Category> |
getCategories()
Deprecated.
Returns list of available BlogEntry.Category in primary entries collection.
|
Blog.Collection |
getCollection(java.lang.String token)
Deprecated.
Get collection by token.
|
java.util.List<Blog.Collection> |
getCollections()
Deprecated.
Gets listing of entry and resource collections available in the blog, including the primary
collections.
|
java.util.Iterator<BlogEntry> |
getEntries()
Deprecated.
Get iterator over entries in primary entries collection (the first collection that accepts
entries).
|
BlogEntry |
getEntry(java.lang.String token)
Deprecated.
Get a single BlogEntry (or BlogResource) by token.
|
java.lang.String |
getName()
Deprecated.
Name of this blog.
|
java.util.Iterator<BlogEntry> |
getResources()
Deprecated.
Get entries in primary resources collection (the first collection that accepts anything other
than entries).
|
(package private) ClientAtomService |
getService()
Deprecated.
|
java.lang.String |
getToken()
Deprecated.
Token can be used to fetch this blog again from getBlog() method.
|
(package private) ClientWorkspace |
getWorkspace()
Deprecated.
|
BlogEntry |
newEntry()
Deprecated.
Create but do not save it to server new BlogEntry in primary entries collection (the first
collection found that accepts entries).
|
BlogResource |
newResource(java.lang.String name,
java.lang.String contentType,
byte[] bytes)
Deprecated.
Create but do not save it to server new BlogResource in primary resources collection (the
first collection found that accepts resources).
|
(package private) java.lang.String |
saveEntry(BlogEntry entry)
Deprecated.
|
(package private) java.lang.String |
saveResource(BlogResource res)
Deprecated.
|
(package private) void |
setService(ClientAtomService service)
Deprecated.
|
(package private) void |
setWorkspace(ClientWorkspace workspace)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
String display of blog, returns name.
|
private java.lang.String name
private ClientAtomService service
private ClientWorkspace workspace
private AtomCollection entriesCollection
private AtomCollection resourcesCollection
private final java.util.Map<java.lang.String,AtomCollection> collections
AtomBlog(ClientAtomService service, ClientWorkspace workspace)
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getToken()
public BlogEntry newEntry() throws BlogClientException
newEntry
in interface Blog
BlogClientException
- On error or if there is no primary entries collection.public BlogEntry getEntry(java.lang.String token) throws BlogClientException
getEntry
in interface Blog
token
- Token from blog entry's getToken() method.BlogClientException
public java.util.Iterator<BlogEntry> getEntries() throws BlogClientException
getEntries
in interface Blog
BlogClientException
- On failure or if there is no primary entries collection.public java.util.Iterator<BlogEntry> getResources() throws BlogClientException
getResources
in interface Blog
BlogClientException
- On failure or if there is no primary resources collection.java.lang.String saveEntry(BlogEntry entry) throws BlogClientException
BlogClientException
void deleteEntry(BlogEntry entry) throws BlogClientException
BlogClientException
public java.util.List<BlogEntry.Category> getCategories() throws BlogClientException
getCategories
in interface Blog
BlogClientException
- On error or if there is no primary entries collection.public BlogResource newResource(java.lang.String name, java.lang.String contentType, byte[] bytes) throws BlogClientException
newResource
in interface Blog
name
- Name of resource to be saved.contentType
- MIME content type of resource data.bytes
- Bytes of resource data.BlogClientException
- On error or if there is no primary respurces collection.java.lang.String saveResource(BlogResource res) throws BlogClientException
BlogClientException
void deleteResource(BlogResource resource) throws BlogClientException
BlogClientException
public java.util.List<Blog.Collection> getCollections() throws BlogClientException
getCollections
in interface Blog
BlogClientException
- On error fetching collections.public Blog.Collection getCollection(java.lang.String token) throws BlogClientException
getCollection
in interface Blog
token
- Token from a collection's getToken() method.BlogClientException
- On error fetching collection.ClientAtomService getService()
void setService(ClientAtomService service)
ClientWorkspace getWorkspace()
void setWorkspace(ClientWorkspace workspace)