All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xaloon.wicket.plugin.blog.BlogImageCompositionFactory Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
package org.xaloon.wicket.plugin.blog;

import org.xaloon.core.api.image.ImageCompositionFactory;
import org.xaloon.core.api.image.model.Album;
import org.xaloon.core.api.image.model.Image;
import org.xaloon.core.api.image.model.ImageComposition;
import org.xaloon.wicket.plugin.blog.model.JpaBlogEntryImageComposition;

public class BlogImageCompositionFactory implements ImageCompositionFactory {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public ImageComposition newImageComposition(Album album, Image image) {
		ImageComposition result = new JpaBlogEntryImageComposition(album);
		result.setImage(image);
		return result;
	}

	@Override
	public ImageComposition newImageComposition(Image image) {
		ImageComposition result = new JpaBlogEntryImageComposition();
		result.setImage(image);
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy