@Deprecated public class ClientCollection extends Collection
ENTRY_TYPE| Modifier and Type | Method and Description |
|---|---|
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(String title,
String slug,
String contentType,
byte[] bytes)
Deprecated.
Create new media entry assocaited with collection, but do not save.
|
ClientMediaEntry |
createMediaEntry(String title,
String slug,
String contentType,
InputStream is)
Deprecated.
Create new media entry assocaited with collection, but do not save.
|
Iterator<ClientEntry> |
getEntries()
Deprecated.
Get iterator over entries in this collection.
|
ClientEntry |
getEntry(String uri)
Deprecated.
Get full entry specified by entry edit URI.
|
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, setTitleTypepublic Iterator<ClientEntry> getEntries() throws ProponoException
ProponoExceptionpublic ClientEntry getEntry(String uri) throws ProponoException
ProponoExceptionpublic Workspace getWorkspace()
public boolean isWritable()
public ClientEntry createEntry() throws ProponoException
ProponoException - if collecton is not writable.public ClientMediaEntry createMediaEntry(String title, String slug, 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(String title, String slug, String contentType, 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 CollectionProponoExceptionCopyright © 2023. All rights reserved.