@Deprecated public class ClientCollection extends Collection
Modifier and Type | Field and Description |
---|---|
private AuthStrategy |
authStrategy
Deprecated.
|
private org.apache.commons.httpclient.HttpClient |
httpClient
Deprecated.
|
private ClientAtomService |
service
Deprecated.
|
private ClientWorkspace |
workspace
Deprecated.
|
private boolean |
writable
Deprecated.
|
ENTRY_TYPE
Constructor and Description |
---|
ClientCollection(org.jdom2.Element e,
ClientWorkspace workspace,
java.lang.String baseURI)
Deprecated.
|
ClientCollection(java.lang.String href,
AuthStrategy authStrategy)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addAuthentication(org.apache.commons.httpclient.HttpMethodBase method)
Deprecated.
|
void |
addEntry(ClientEntry entry)
Deprecated.
Save to collection a new entry that was created by a createEntry() or createMediaEntry() and
save it to the server.
|
ClientEntry |
createEntry()
Deprecated.
Create new entry associated with collection, but do not save to server.
|
ClientMediaEntry |
createMediaEntry(java.lang.String title,
java.lang.String slug,
java.lang.String contentType,
byte[] bytes)
Deprecated.
Create new media entry assocaited with collection, but do not save.
|
ClientMediaEntry |
createMediaEntry(java.lang.String title,
java.lang.String slug,
java.lang.String contentType,
java.io.InputStream is)
Deprecated.
Create new media entry assocaited with collection, but do not save.
|
java.util.Iterator<ClientEntry> |
getEntries()
Deprecated.
Get iterator over entries in this collection.
|
ClientEntry |
getEntry(java.lang.String uri)
Deprecated.
Get full entry specified by entry edit URI.
|
(package private) org.apache.commons.httpclient.HttpClient |
getHttpClient()
Deprecated.
Package access to httpClient to allow use by ClientEntry and ClientMediaEntry.
|
Workspace |
getWorkspace()
Deprecated.
Get workspace or null if collection is not associated with a workspace.
|
boolean |
isWritable()
Deprecated.
Determines if collection is writable.
|
protected void |
parseCollectionElement(org.jdom2.Element element)
Deprecated.
|
accepts, addAccept, addCategories, collectionToElement, elementToCollection, getAccepts, getCategories, getHref, getHrefResolved, getHrefResolved, getTitle, getTitleType, setAccepts, setHref, setTitle, setTitleType
private final boolean writable
private org.apache.commons.httpclient.HttpClient httpClient
private AuthStrategy authStrategy
private ClientWorkspace workspace
private ClientAtomService service
ClientCollection(org.jdom2.Element e, ClientWorkspace workspace, java.lang.String baseURI) throws ProponoException
ProponoException
ClientCollection(java.lang.String href, AuthStrategy authStrategy) throws ProponoException
ProponoException
void addAuthentication(org.apache.commons.httpclient.HttpMethodBase method) throws ProponoException
ProponoException
org.apache.commons.httpclient.HttpClient getHttpClient()
public java.util.Iterator<ClientEntry> getEntries() throws ProponoException
ProponoException
public ClientEntry getEntry(java.lang.String uri) throws ProponoException
ProponoException
public Workspace getWorkspace()
public boolean isWritable()
public ClientEntry createEntry() throws ProponoException
ProponoException
- if collecton is not writable.public ClientMediaEntry createMediaEntry(java.lang.String title, java.lang.String slug, java.lang.String contentType, byte[] bytes) throws ProponoException
title
- Title to used for uploaded file.slug
- String to be used in file-name of stored filecontentType
- MIME content-type of file.bytes
- Data to be uploaded as byte array.ProponoException
- if collecton is not writablepublic ClientMediaEntry createMediaEntry(java.lang.String title, java.lang.String slug, java.lang.String contentType, java.io.InputStream is) throws ProponoException
title
- Title to used for uploaded file.slug
- String to be used in file-name of stored filecontentType
- MIME content-type of file.is
- Data to be uploaded as InputStream.ProponoException
- if collecton is not writablepublic void addEntry(ClientEntry entry) throws ProponoException
entry
- Entry to be saved.ProponoException
- on error, if collection is not writable or if entry is partial.protected void parseCollectionElement(org.jdom2.Element element) throws ProponoException
parseCollectionElement
in class Collection
ProponoException