|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>
org.apache.abdera.examples.appserver.employee.EmployeeCollectionAdapter
public class EmployeeCollectionAdapter
| Constructor Summary | |
|---|---|
EmployeeCollectionAdapter()
|
|
| Method Summary | |
|---|---|
void |
deleteEntry(String resourceName,
RequestContext request)
Delete an entry |
String |
getAuthor(RequestContext request)
The author of this collection. |
List<Person> |
getAuthors(Employee entry,
RequestContext request)
Get the authors for an entry. |
Object |
getContent(Employee entry,
RequestContext request)
Get the content for the entry. |
Iterable<Employee> |
getEntries(RequestContext request)
Get the listing of entries requested |
Employee |
getEntry(String resourceName,
RequestContext request)
Get a specific entry |
String |
getId(Employee entry)
Gets the UUID for the specified entry. |
String |
getId(RequestContext request)
A unique ID for this feed. |
String |
getName(Employee entry)
Get the name of the entry resource (used to construct links) |
String |
getTitle(Employee entry)
Get the title fo the entry |
String |
getTitle(RequestContext request)
The title of our collection. |
Date |
getUpdated(Employee entry)
Get the value to use in the atom:updated element |
Employee |
postEntry(String title,
IRI id,
String summary,
Date updated,
List<Person> authors,
Content content,
RequestContext request)
Create a new entry |
void |
putEntry(Employee employee,
String title,
Date updated,
List<Person> authors,
String summary,
Content content,
RequestContext request)
Update an entry. |
| Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter |
|---|
addContent, addEntryDetails, addFeedDetails, addMediaContent, buildGetMediaResponse, createMediaEntry, createNonMediaEntry, deleteEntry, deleteMedia, deleteMedia, getContentType, getEntry, getEntryFromCollectionProvider, getFeed, getFeedIriForEntry, getLink, getLink, getLink, getLink, getMedia, getMediaName, getMediaStream, getQueryParameters, getSummary, headEntry, headMedia, isMediaEntry, postEntry, postMedia, postMedia, putEntry, putMedia, putMedia |
| Methods inherited from class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter |
|---|
asCollectionElement, buildCreateEntryResponse, buildGetEntryResponse, buildGetFeedResponse, buildHeadEntryResponse, buildPostMediaEntryResponse, compensate, createErrorResponse, createFeedBase, end, extensionRequest, getAccepts, getCategories, getCategoriesInfo, getEntryFromRequest, getHref, getHref, getResourceName, optionsEntry, optionsMedia, setHref, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmployeeCollectionAdapter()
| Method Detail |
|---|
public String getId(RequestContext request)
getId in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapterpublic String getTitle(RequestContext request)
public String getAuthor(RequestContext request)
getAuthor in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapterpublic Iterable<Employee> getEntries(RequestContext request)
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
getEntries in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>
public Employee getEntry(String resourceName,
RequestContext request)
throws ResponseContextException
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
getEntry in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>resourceName - The entry to getrequest - The request context
ResponseContextExceptionpublic String getName(Employee entry)
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
getName in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>public String getId(Employee entry)
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
getId in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>public String getTitle(Employee entry)
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
getTitle in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>public Date getUpdated(Employee entry)
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
getUpdated in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>
public List<Person> getAuthors(Employee entry,
RequestContext request)
throws ResponseContextException
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
getAuthors in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>ResponseContextException
public Object getContent(Employee entry,
RequestContext request)
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
getContent in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>
public Employee postEntry(String title,
IRI id,
String summary,
Date updated,
List<Person> authors,
Content content,
RequestContext request)
throws ResponseContextException
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
postEntry in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>title - The title of the entry (assumes that type="text")id - The value of the atom:id elementsummary - The summary of the entryupdated - The value of the atom:updated elementauthors - Listing of atom:author elementsrequest - The request context
ResponseContextException
public void putEntry(Employee employee,
String title,
Date updated,
List<Person> authors,
String summary,
Content content,
RequestContext request)
throws ResponseContextException
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
putEntry in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>employee - The entry to updatetitle - The new title of the entryupdated - The new value of atom:updatedauthors - To new listing of authorssummary - The new summarycontent - The new contentrequest - The request context
ResponseContextException
public void deleteEntry(String resourceName,
RequestContext request)
throws ResponseContextException
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter
deleteEntry in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Employee>resourceName - The entry to deleterequest - The request context
ResponseContextException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||