org.mule.module.atom
Class CustomerAdapter
java.lang.Object
org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
org.mule.module.atom.CustomerAdapter
- All Implemented Interfaces:
- org.apache.abdera.protocol.server.CollectionAdapter, org.apache.abdera.protocol.server.CollectionInfo, org.apache.abdera.protocol.server.MediaCollectionAdapter, org.apache.abdera.protocol.server.Transactional
public class CustomerAdapter
- extends org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
Method Summary |
void |
deleteEntry(String resourceName,
org.apache.abdera.protocol.server.RequestContext request)
|
String |
getAuthor(org.apache.abdera.protocol.server.RequestContext request)
|
List<org.apache.abdera.model.Person> |
getAuthors(Customer entry,
org.apache.abdera.protocol.server.RequestContext request)
|
org.apache.abdera.protocol.server.ResponseContext |
getCategories(org.apache.abdera.protocol.server.RequestContext request)
|
Object |
getContent(Customer entry,
org.apache.abdera.protocol.server.RequestContext request)
|
Iterable<Customer> |
getEntries(org.apache.abdera.protocol.server.RequestContext request)
|
Customer |
getEntry(String resourceName,
org.apache.abdera.protocol.server.RequestContext request)
|
Customer |
getEntryFromId(String id,
org.apache.abdera.protocol.server.RequestContext request)
|
String |
getId(Customer entry)
|
String |
getId(org.apache.abdera.protocol.server.RequestContext request)
|
String |
getName(Customer entry)
|
String |
getTitle(Customer entry)
|
String |
getTitle(org.apache.abdera.protocol.server.RequestContext request)
|
Date |
getUpdated(Customer entry)
|
Customer |
postEntry(String title,
org.apache.abdera.i18n.iri.IRI id,
String summary,
Date updated,
List<org.apache.abdera.model.Person> authors,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext request)
|
void |
putEntry(Customer entry,
String title,
Date updated,
List<org.apache.abdera.model.Person> authors,
String summary,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext request)
|
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, 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, 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 |
CustomerAdapter
public CustomerAdapter()
getId
public String getId(org.apache.abdera.protocol.server.RequestContext request)
- Specified by:
getId
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
getCategories
public org.apache.abdera.protocol.server.ResponseContext getCategories(org.apache.abdera.protocol.server.RequestContext request)
- Specified by:
getCategories
in interface org.apache.abdera.protocol.server.CollectionAdapter
- Overrides:
getCategories
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
postEntry
public Customer postEntry(String title,
org.apache.abdera.i18n.iri.IRI id,
String summary,
Date updated,
List<org.apache.abdera.model.Person> authors,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Specified by:
postEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
deleteEntry
public void deleteEntry(String resourceName,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Specified by:
deleteEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
getAuthor
public String getAuthor(org.apache.abdera.protocol.server.RequestContext request)
- Specified by:
getAuthor
in class org.apache.abdera.protocol.server.impl.AbstractCollectionAdapter
getAuthors
public List<org.apache.abdera.model.Person> getAuthors(Customer entry,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Overrides:
getAuthors
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
getContent
public Object getContent(Customer entry,
org.apache.abdera.protocol.server.RequestContext request)
- Specified by:
getContent
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
getEntries
public Iterable<Customer> getEntries(org.apache.abdera.protocol.server.RequestContext request)
- Specified by:
getEntries
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
getEntry
public Customer getEntry(String resourceName,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Specified by:
getEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
getEntryFromId
public Customer getEntryFromId(String id,
org.apache.abdera.protocol.server.RequestContext request)
getId
public String getId(Customer entry)
- Specified by:
getId
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
getName
public String getName(Customer entry)
- Specified by:
getName
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
getTitle
public String getTitle(org.apache.abdera.protocol.server.RequestContext request)
getTitle
public String getTitle(Customer entry)
- Specified by:
getTitle
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
getUpdated
public Date getUpdated(Customer entry)
- Specified by:
getUpdated
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
putEntry
public void putEntry(Customer entry,
String title,
Date updated,
List<org.apache.abdera.model.Person> authors,
String summary,
org.apache.abdera.model.Content content,
org.apache.abdera.protocol.server.RequestContext request)
throws org.apache.abdera.protocol.server.context.ResponseContextException
- Specified by:
putEntry
in class org.apache.abdera.protocol.server.impl.AbstractEntityCollectionAdapter<Customer>
- Throws:
org.apache.abdera.protocol.server.context.ResponseContextException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.