abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r628528 - in /incubator/abdera/java/trunk: adapters/jcr/src/main/java/org/apache/abdera/protocol/server/adapters/jcr/ examples/src/main/java/org/apache/abdera/examples/appserver/custom/ examples/src/main/java/org/apache/abdera/examples/apps...
Date Sun, 17 Feb 2008 18:56:19 GMT
Author: jmsnell
Date: Sun Feb 17 10:56:17 2008
New Revision: 628528

URL: http://svn.apache.org/viewvc?rev=628528&view=rev
Log:
per https://issues.apache.org/jira/browse/ABDERA-123

Modified:
    incubator/abdera/java/trunk/adapters/jcr/src/main/java/org/apache/abdera/protocol/server/adapters/jcr/JcrCollectionAdapter.java
    incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/custom/SimpleAdapter.java
    incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/defaultprovider/CustomerAdapter.java
    incubator/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/filter/SimpleAdapter.java
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/managed/ManagedCollectionAdapter.java
    incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/basic/SampleBasicAdapter.java
    incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/SimpleAdapter.java
    incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/customer/CustomerAdapter.java
    incubator/abdera/java/trunk/spring/src/test/java/org/apache/abdera/spring/TestAdapter.java

Modified: incubator/abdera/java/trunk/adapters/jcr/src/main/java/org/apache/abdera/protocol/server/adapters/jcr/JcrCollectionAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/adapters/jcr/src/main/java/org/apache/abdera/protocol/server/adapters/jcr/JcrCollectionAdapter.java?rev=628528&r1=628527&r2=628528&view=diff
==============================================================================
--- incubator/abdera/java/trunk/adapters/jcr/src/main/java/org/apache/abdera/protocol/server/adapters/jcr/JcrCollectionAdapter.java
(original)
+++ incubator/abdera/java/trunk/adapters/jcr/src/main/java/org/apache/abdera/protocol/server/adapters/jcr/JcrCollectionAdapter.java
Sun Feb 17 10:56:17 2008
@@ -9,7 +9,6 @@
 import javax.activation.MimeType;
 import javax.jcr.Credentials;
 import javax.jcr.ItemExistsException;
-import javax.jcr.NamespaceException;
 import javax.jcr.Node;
 import javax.jcr.NodeIterator;
 import javax.jcr.PathNotFoundException;
@@ -19,7 +18,6 @@
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 import javax.jcr.Value;
-import javax.jcr.ValueFormatException;
 import javax.jcr.Workspace;
 
 import org.apache.abdera.i18n.iri.IRI;
@@ -36,10 +34,6 @@
 import org.apache.abdera.protocol.util.PoolManager;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.jackrabbit.core.nodetype.NodeTypeDef;
-import org.apache.jackrabbit.core.nodetype.NodeTypeManagerImpl;
-import org.apache.jackrabbit.core.nodetype.NodeTypeRegistry;
-import org.apache.jackrabbit.core.nodetype.xml.NodeTypeReader;
 import org.apache.jackrabbit.api.JackrabbitNodeTypeManager;
 
 public class JcrCollectionAdapter extends AbstractEntityCollectionAdapter<Node> {
@@ -377,7 +371,7 @@
   }
 
   @Override
-  public String getAuthor() throws ResponseContextException {
+  public String getAuthor(RequestContext request) throws ResponseContextException {
     return author;
   }
 

Modified: incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/custom/SimpleAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/custom/SimpleAdapter.java?rev=628528&r1=628527&r2=628528&view=diff
==============================================================================
--- incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/custom/SimpleAdapter.java
(original)
+++ incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/custom/SimpleAdapter.java
Sun Feb 17 10:56:17 2008
@@ -45,7 +45,7 @@
   extends AbstractCollectionAdapter {
   
   @Override
-  public String getAuthor() throws ResponseContextException {
+  public String getAuthor(RequestContext request) throws ResponseContextException {
     return "Simple McGee";
   }
 

Modified: incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/defaultprovider/CustomerAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/defaultprovider/CustomerAdapter.java?rev=628528&r1=628527&r2=628528&view=diff
==============================================================================
--- incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/defaultprovider/CustomerAdapter.java
(original)
+++ incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/defaultprovider/CustomerAdapter.java
Sun Feb 17 10:56:17 2008
@@ -63,7 +63,7 @@
     customers.remove(id);
   }
 
-  public String getAuthor() {
+  public String getAuthor(RequestContext request) {
     return "Acme Industries";
   }
 

Modified: incubator/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/filter/SimpleAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/filter/SimpleAdapter.java?rev=628528&r1=628527&r2=628528&view=diff
==============================================================================
--- incubator/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/filter/SimpleAdapter.java
(original)
+++ incubator/abdera/java/trunk/security/src/test/java/org/apache/abdera/test/security/filter/SimpleAdapter.java
Sun Feb 17 10:56:17 2008
@@ -45,7 +45,7 @@
   extends AbstractCollectionAdapter {
   
   @Override
-  public String getAuthor() throws ResponseContextException {
+  public String getAuthor(RequestContext request) throws ResponseContextException {
     return "Simple McGee";
   }
 

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java?rev=628528&r1=628527&r2=628528&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionAdapter.java
Sun Feb 17 10:56:17 2008
@@ -114,7 +114,7 @@
     return ProviderHelper.notsupported(request);
   }
 
-  public abstract String getAuthor() throws ResponseContextException;
+  public abstract String getAuthor(RequestContext request) throws ResponseContextException;
 
   public abstract String getId(RequestContext request);
   
@@ -180,7 +180,7 @@
     feed.setTitle(getTitle(request));
     feed.addLink("");
     feed.addLink("", "self");
-    feed.addAuthor(getAuthor());
+    feed.addAuthor(getAuthor(request));
     feed.setUpdated(new Date());
     return feed;
   }

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/managed/ManagedCollectionAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/managed/ManagedCollectionAdapter.java?rev=628528&r1=628527&r2=628528&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/managed/ManagedCollectionAdapter.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/managed/ManagedCollectionAdapter.java
Sun Feb 17 10:56:17 2008
@@ -45,7 +45,7 @@
     return this.config;
   }
   
-  public String getAuthor() throws ResponseContextException {
+  public String getAuthor(RequestContext request) throws ResponseContextException {
     return config.getFeedAuthor();
   }
 

Modified: incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/basic/SampleBasicAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/basic/SampleBasicAdapter.java?rev=628528&r1=628527&r2=628528&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/basic/SampleBasicAdapter.java
(original)
+++ incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/basic/SampleBasicAdapter.java
Sun Feb 17 10:56:17 2008
@@ -143,7 +143,7 @@
 
 
   @Override
-  public String getAuthor() throws ResponseContextException {
+  public String getAuthor(RequestContext request) throws ResponseContextException {
     return config.getFeedAuthor();
   }
 

Modified: incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/SimpleAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/SimpleAdapter.java?rev=628528&r1=628527&r2=628528&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/SimpleAdapter.java
(original)
+++ incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/custom/SimpleAdapter.java
Sun Feb 17 10:56:17 2008
@@ -45,7 +45,7 @@
   extends AbstractCollectionAdapter {
   
   @Override
-  public String getAuthor() throws ResponseContextException {
+  public String getAuthor(RequestContext request) throws ResponseContextException {
     return "Simple McGee";
   }
 

Modified: incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/customer/CustomerAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/customer/CustomerAdapter.java?rev=628528&r1=628527&r2=628528&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/customer/CustomerAdapter.java
(original)
+++ incubator/abdera/java/trunk/server/src/test/java/org/apache/abdera/protocol/server/test/customer/CustomerAdapter.java
Sun Feb 17 10:56:17 2008
@@ -63,7 +63,7 @@
     customers.remove(id);
   }
 
-  public String getAuthor() {
+  public String getAuthor(RequestContext request) {
     return "Acme Industries";
   }
 

Modified: incubator/abdera/java/trunk/spring/src/test/java/org/apache/abdera/spring/TestAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/spring/src/test/java/org/apache/abdera/spring/TestAdapter.java?rev=628528&r1=628527&r2=628528&view=diff
==============================================================================
--- incubator/abdera/java/trunk/spring/src/test/java/org/apache/abdera/spring/TestAdapter.java
(original)
+++ incubator/abdera/java/trunk/spring/src/test/java/org/apache/abdera/spring/TestAdapter.java
Sun Feb 17 10:56:17 2008
@@ -8,7 +8,7 @@
 public class TestAdapter extends AbstractCollectionAdapter {
 
     @Override
-    public String getAuthor() throws ResponseContextException {
+    public String getAuthor(RequestContext request) throws ResponseContextException {
         return null;
     }
 



Mime
View raw message