1 16 package org.roller.presentation.atomapi; 17 18 import java.io.InputStream ; 19 import java.util.Date ; 20 21 import com.sun.syndication.feed.atom.Entry; 22 23 34 public interface AtomHandler 35 { 36 37 public String getAuthenticatedUsername(); 38 39 42 public AtomService getIntrospection(String [] pathInfo) throws Exception ; 43 44 48 public AtomCollection getCollection(String [] pathInfo) throws Exception ; 49 50 57 public AtomCollection getCollection( 58 String [] pathInfo, Date start, Date end, int offset) 59 throws Exception ; 60 61 65 public Entry postEntry(String [] pathInfo, Entry entry) throws Exception ; 66 67 71 public Entry getEntry(String [] pathInfo) throws Exception ; 72 73 77 public Entry putEntry(String [] pathInfo, Entry entry) throws Exception ; 78 79 83 public void deleteEntry(String [] pathInfo) throws Exception ; 84 85 91 public String postResource(String [] pathInfo, String name, String contentType, 92 InputStream is) throws Exception ; 93 94 98 public void putResource(String [] pathInfo, String contentType, 99 InputStream is) throws Exception ; 100 101 105 public void deleteResource(String [] pathInfo) throws Exception ; 106 107 111 public String getResourceFilePath(String [] pathInfo) throws Exception ; 112 113 public boolean isIntrospectionURI(String [] pathInfo); 114 115 public boolean isCollectionURI(String [] pathInfo); 116 public boolean isEntryCollectionURI(String [] pathInfo); 117 public boolean isResourceCollectionURI(String [] pathInfo); 118 public boolean isCategoryCollectionURI(String [] pathInfo); 119 120 public boolean isEntryURI(String [] pathInfo); 121 public boolean isResourceURI(String [] pathInfo); 122 public boolean isCategoryURI(String [] pathInfo); 123 } 124 125 | Popular Tags |