Subversion Repositories SmartDukaan

Rev

Rev 208 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 208 Rev 210
Line 554... Line 554...
554
		String[] ffts = this.reqparams.get(ID + "_fft");
554
		String[] ffts = this.reqparams.get(ID + "_fft");
555
		if(ffts != null) {
555
		if(ffts != null) {
556
			ffc.setFreeformTexts(Arrays.asList(ffts));
556
			ffc.setFreeformTexts(Arrays.asList(ffts));
557
		}
557
		}
558
		
558
		
559
		String[] imgURLs = this.reqparams.get(ID + "_image_url");
559
		String[] imgRefs = this.reqparams.get(ID + "_image_references");
560
		if(imgURLs != null) {
560
		if(imgRefs != null) {
561
			ffc.setImageURLs(Arrays.asList(imgURLs));
561
			ffc.setMedia("image", Arrays.asList(imgRefs));
562
		}
562
		}
563
		
563
		
564
		String[] youtubeURLs = 
564
		String[] youtubeRefs = 
565
			this.reqparams.get(ID + "_youtube_url");
565
			this.reqparams.get(ID + "_youtube_references");
566
		if(youtubeURLs != null) {
566
		if(youtubeRefs != null) {
567
			ffc.setYoutubeURLs(Arrays.asList(youtubeURLs));
567
			ffc.setMedia("youtube", Arrays.asList(youtubeRefs));
568
		}
568
		}
569
		
569
		
570
		log.info("ffc:" + ffc);
570
		log.info("ffc:" + ffc);
571
		return ffc;
571
		return ffc;
572
	}
572
	}
Line 873... Line 873...
873
			log.error(CreationUtils.getStackTrace(e));
873
			log.error(CreationUtils.getStackTrace(e));
874
    	}
874
    	}
875
		
875
		
876
		return "";
876
		return "";
877
	}
877
	}
-
 
878
	
-
 
879
	/**
-
 
880
	 * 
-
 
881
	 * @return
-
 
882
	 * @throws Exception 
-
 
883
	 * @throws NumberFormatException 
-
 
884
	 */
-
 
885
	public List<String> getMediaLabels(String type) {
-
 
886
		try {
-
 
887
			return CreationUtils.getMediaLabels(Long.parseLong(this.getId()), 
-
 
888
					type);
-
 
889
		}
-
 
890
		catch(Exception nfe) {
-
 
891
			return null;
-
 
892
		}
-
 
893
	}
878
}
894
}