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

net.anotheria.anosite.photoserver.service.blur.BlurSettingBO Maven / Gradle / Ivy

package net.anotheria.anosite.photoserver.service.blur;

import net.anotheria.anosite.photoserver.shared.vo.BlurSettingVO;

/**
 * BlurSetting business object.
 *
 * @author h3ll
 */
public class BlurSettingBO extends BlurSettingVO implements Cloneable {
	/**
	 * Basic serial version UID.
	 */
	private static final long serialVersionUID = 4175470140105195245L;
	/**
	 * Default constant for ll pictures in album.
	 */
	public static final long ALL_ALBUM_PICTURES_DEFAULT_CONSTANT = BlurSettingVO.ALL_ALBUM_PICTURES_DEFAULT_CONSTANT;
	/**
	 * Default constant for All user's id.
	 */
	public static final String ALL_USERS_DEFAULT_CONSTANT = BlurSettingVO.ALL_USERS_DEFAULT_CONSTANT;

	/**
	 * Constructor.
	 *
	 * @param pictureBlur {@link BlurSettingVO}
	 */
	public BlurSettingBO(BlurSettingVO pictureBlur) {
		setAlbumId(pictureBlur.getAlbumId());
		setPictureId(pictureBlur.getPictureId());
		setUserId(pictureBlur.getUserId());
		setBlurred(pictureBlur.isBlurred());
	}

	/**
	 * Constructor.
	 *
	 * @param aAlbumId   id of album
	 * @param aPictureId id of picture
	 * @param aUserId	id of user
	 * @param aBlur	  blur
	 */
	public BlurSettingBO(long aAlbumId, long aPictureId, String aUserId, boolean aBlur) {
		super(aAlbumId, aPictureId, aUserId, aBlur);
	}


	/**
	 * Constructor.
	 */
	public BlurSettingBO() {
	}

	@Override
	public String toString() {
		return "BlurSettingBO[" +
				"albumId=" + getAlbumId() +
				", pictureId=" + getPictureId() +
				", userId=" + getUserId() +
				", isBlurred=" + isBlurred() +
				']';
	}

	@Override
	protected BlurSettingBO clone() {
		try {
			return BlurSettingBO.class.cast(super.clone());
		} catch (CloneNotSupportedException e) {
			throw new AssertionError("Not cloneable???");
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy