com.liferay.portal.kernel.atom
Interface AtomCollectionAdapter<E>
- All Known Implementing Classes:
- BaseAtomCollectionAdapter, BaseMediaAtomCollectionAdapter, BlogsEntryAtomCollectionAdapter, FileEntryAtomCollectionAdapter, FolderAtomCollectionAdapter, JournalArticleAtomCollectionProvider, UserAtomCollectionAdapter
public interface AtomCollectionAdapter<E>
Method Summary |
void |
deleteEntry(String resourceName,
AtomRequestContext atomRequestContext)
|
String |
getCollectionName()
|
E |
getEntry(String resourceName,
AtomRequestContext atomRequestContext)
|
List<String> |
getEntryAuthors(E entry)
|
AtomEntryContent |
getEntryContent(E entry,
AtomRequestContext atomRequestContext)
|
String |
getEntryId(E entry)
|
String |
getEntrySummary(E entry)
|
String |
getEntryTitle(E entry)
|
Date |
getEntryUpdated(E entry)
|
Iterable<E> |
getFeedEntries(AtomRequestContext atomRequestContext)
|
String |
getFeedTitle(AtomRequestContext atomRequestContext)
|
String |
getMediaContentType(E entry)
|
String |
getMediaName(E entry)
|
InputStream |
getMediaStream(E entry)
|
E |
postEntry(String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
|
E |
postMedia(String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext)
|
void |
putEntry(E entry,
String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
|
void |
putMedia(E entry,
String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext)
|
SC_BAD_CONTENT
static final int SC_BAD_CONTENT
- See Also:
- Constant Field Values
SC_BAD_REQUEST
static final int SC_BAD_REQUEST
- See Also:
- Constant Field Values
SC_CONFLICT
static final int SC_CONFLICT
- See Also:
- Constant Field Values
SC_CREATED
static final int SC_CREATED
- See Also:
- Constant Field Values
SC_FORBIDDEN
static final int SC_FORBIDDEN
- See Also:
- Constant Field Values
SC_INTERNAL_SERVER_ERROR
static final int SC_INTERNAL_SERVER_ERROR
- See Also:
- Constant Field Values
SC_NOT_FOUND
static final int SC_NOT_FOUND
- See Also:
- Constant Field Values
SC_NOT_MODIFIED
static final int SC_NOT_MODIFIED
- See Also:
- Constant Field Values
SC_OK
static final int SC_OK
- See Also:
- Constant Field Values
SC_UNAUTHORIZED
static final int SC_UNAUTHORIZED
- See Also:
- Constant Field Values
deleteEntry
void deleteEntry(String resourceName,
AtomRequestContext atomRequestContext)
throws AtomException
- Throws:
AtomException
getCollectionName
String getCollectionName()
getEntry
E getEntry(String resourceName,
AtomRequestContext atomRequestContext)
throws AtomException
- Throws:
AtomException
getEntryAuthors
List<String> getEntryAuthors(E entry)
getEntryContent
AtomEntryContent getEntryContent(E entry,
AtomRequestContext atomRequestContext)
getEntryId
String getEntryId(E entry)
getEntrySummary
String getEntrySummary(E entry)
getEntryTitle
String getEntryTitle(E entry)
getEntryUpdated
Date getEntryUpdated(E entry)
getFeedEntries
Iterable<E> getFeedEntries(AtomRequestContext atomRequestContext)
throws AtomException
- Throws:
AtomException
getFeedTitle
String getFeedTitle(AtomRequestContext atomRequestContext)
getMediaContentType
String getMediaContentType(E entry)
getMediaName
String getMediaName(E entry)
throws AtomException
- Throws:
AtomException
getMediaStream
InputStream getMediaStream(E entry)
throws AtomException
- Throws:
AtomException
postEntry
E postEntry(String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
throws AtomException
- Throws:
AtomException
postMedia
E postMedia(String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext)
throws AtomException
- Throws:
AtomException
putEntry
void putEntry(E entry,
String title,
String summary,
String content,
Date date,
AtomRequestContext atomRequestContext)
throws AtomException
- Throws:
AtomException
putMedia
void putMedia(E entry,
String mimeType,
String slug,
InputStream inputStream,
AtomRequestContext atomRequestContext)
throws AtomException
- Throws:
AtomException