incubator-photark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r939954 - /incubator/photark/trunk/photark/src/main/java/org/apache/photark/services/album/AlbumAgregator.java
Date Sat, 01 May 2010 09:08:55 GMT
Author: lresende
Date: Sat May  1 09:08:55 2010
New Revision: 939954

URL: http://svn.apache.org/viewvc?rev=939954&view=rev
Log:
Commenting unused code to remove unused ATOM related dependencies from photark webapp

Modified:
    incubator/photark/trunk/photark/src/main/java/org/apache/photark/services/album/AlbumAgregator.java

Modified: incubator/photark/trunk/photark/src/main/java/org/apache/photark/services/album/AlbumAgregator.java
URL: http://svn.apache.org/viewvc/incubator/photark/trunk/photark/src/main/java/org/apache/photark/services/album/AlbumAgregator.java?rev=939954&r1=939953&r2=939954&view=diff
==============================================================================
--- incubator/photark/trunk/photark/src/main/java/org/apache/photark/services/album/AlbumAgregator.java
(original)
+++ incubator/photark/trunk/photark/src/main/java/org/apache/photark/services/album/AlbumAgregator.java
Sat May  1 09:08:55 2010
@@ -34,44 +34,54 @@ public class AlbumAgregator implements A
 	@Reference(required=false)
 	protected Album album;
 
+	/* FIXME: Not currently in use... */
+	/*
 	@Reference(required=false)
 	protected org.apache.tuscany.sca.binding.atom.collection.Collection albumFeed;
+	*/
 
-	/* FIXME: GData support not available in Tuscany 2.x
-    @Reference(required=false)
-    protected org.apache.tuscany.sca.binding.gdata.collection.Collection albumPicassa;
+	/* FIXME: GData support not available in Tuscany 2.x */
+	/*
+        @Reference(required=false)
+        protected org.apache.tuscany.sca.binding.gdata.collection.Collection albumPicassa;
 	 */
 
 	@Init
 	public void init() {
-		if(album != null) {
-			for(String picture : album.getPictures()) {
-				pictures.add(picture);
-			}            
-		}
-
-		if (albumFeed != null) {
-			try {
-				for(org.apache.abdera.model.Entry feedPicture : albumFeed.getFeed().getEntries()) {
-					String feedImageLink = feedPicture.getEnclosureLinkResolvedHref().toString();
-					pictures.add(feedImageLink);
-				}
-			}catch (Exception e) {
-				//log exception, warn user that album xxx was not processed (not found)
-			}
-		}
-		/* FIXME: GData support not available in Tuscany 2.x 
-        if( albumPicassa != null) {
-        	try {
-        		for(com.google.gdata.data.Entry picassaPicture : albumPicassa.getFeed().getEntries())
{
-        			String feedImageLink = picassaPicture.getLink(Link.Rel.MEDIA_EDIT, null).getHref();
-        			pictures.add(feedImageLink);
-        		}    
-        	}catch (Exception e) {
-        		//log exception, warn user that album xxx was not processed (not found)
-        	}
-        }
-		 */
+	    if(album != null) {
+	        for(String picture : album.getPictures()) {
+	            pictures.add(picture);
+	        }            
+	    }
+
+	    /* FIXME: Not currently in use... */
+	    /*
+	    if (albumFeed != null) {
+	        try {
+	            for(org.apache.abdera.model.Entry feedPicture : albumFeed.getFeed().getEntries())
{
+	                String feedImageLink = feedPicture.getEnclosureLinkResolvedHref().toString();
+	                pictures.add(feedImageLink);
+	            }
+	        }catch (Exception e) {
+	            //log exception, warn user that album xxx was not processed (not found)
+	        }
+	    }
+	    */
+
+	    /* FIXME: GData support not available in Tuscany 2.x*/ 
+	    /*
+	    if( albumPicassa != null) {
+	        try {
+	            for(com.google.gdata.data.Entry picassaPicture : albumPicassa.getFeed().getEntries())
{
+	                String feedImageLink = picassaPicture.getLink(Link.Rel.MEDIA_EDIT, null).getHref();
+	                pictures.add(feedImageLink);
+	            }    
+	        }catch (Exception e) {
+	            //log exception, warn user that album xxx was not processed (not found)
+	        }
+	    }
+	    */
+
 
 	}
 



Mime
View raw message