abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r608669 - in /incubator/abdera/java/trunk: jcr/src/main/java/org/apache/abdera/jcr/JcrCollectionProvider.java server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionProvider.java
Date Thu, 03 Jan 2008 23:08:10 GMT
Author: dandiep
Date: Thu Jan  3 15:08:10 2008
New Revision: 608669

URL: http://svn.apache.org/viewvc?rev=608669&view=rev
Log:
Remove unneeded method.

Modified:
    incubator/abdera/java/trunk/jcr/src/main/java/org/apache/abdera/jcr/JcrCollectionProvider.java
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionProvider.java

Modified: incubator/abdera/java/trunk/jcr/src/main/java/org/apache/abdera/jcr/JcrCollectionProvider.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/jcr/src/main/java/org/apache/abdera/jcr/JcrCollectionProvider.java?rev=608669&r1=608668&r2=608669&view=diff
==============================================================================
--- incubator/abdera/java/trunk/jcr/src/main/java/org/apache/abdera/jcr/JcrCollectionProvider.java
(original)
+++ incubator/abdera/java/trunk/jcr/src/main/java/org/apache/abdera/jcr/JcrCollectionProvider.java
Thu Jan  3 15:08:10 2008
@@ -23,6 +23,7 @@
 import javax.jcr.Workspace;
 
 import org.apache.abdera.i18n.iri.IRI;
+import org.apache.abdera.i18n.text.Sanitizer;
 import org.apache.abdera.model.Content;
 import org.apache.abdera.model.Person;
 import org.apache.abdera.model.Text;
@@ -244,7 +245,7 @@
       Session session = getSession(request);
 
       Node collectionNode = session.getNodeByUUID(collectionNodeId);
-      String resourceName = EncodingUtil.sanitize(title, "-");
+      String resourceName = Sanitizer.sanitize(title, "-");
       entry = createEntry(title, summary, updated, authors, 
                           content, session, collectionNode,
                           resourceName, 0);
@@ -439,23 +440,6 @@
   public Node getEntry(String resourceName, RequestContext request) throws ResponseContextException
{
     try {
       return getNode(getSession(request), resourceName);
-    } catch (RepositoryException e) {
-      throw new ResponseContextException(500, e);
-    }
-  }
-
-  @Override
-  public Node getEntryFromId(String id, RequestContext request) throws ResponseContextException
{
-    if (!id.startsWith("urn:")) {
-      EmptyResponseContext res = new EmptyResponseContext(404);
-      res.setStatusText("Invalid entry id.");
-      throw new ResponseContextException(res);
-    }
-    
-    id = id.substring(4);
-    
-    try {
-      return getSession(request).getNodeByUUID(id);
     } catch (RepositoryException e) {
       throw new ResponseContextException(500, e);
     }

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionProvider.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionProvider.java?rev=608669&r1=608668&r2=608669&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionProvider.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractCollectionProvider.java
Thu Jan  3 15:08:10 2008
@@ -142,9 +142,6 @@
   }
   
   public abstract T getEntry(String resourceName, RequestContext request) throws ResponseContextException;
-  
-  public abstract T getEntryFromId(String id, RequestContext request) throws ResponseContextException;
-
 
   public ResponseContext getFeed(RequestContext request) {
     Abdera abdera = request.getAbdera();



Mime
View raw message