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

net.anotheria.anosite.photoserver.service.storage.event.PhotoCreatedEvent Maven / Gradle / Ivy

The newest version!
package net.anotheria.anosite.photoserver.service.storage.event;

import net.anotheria.anosite.photoserver.service.storage.PhotoBO;

/**
 * PhotoCreated Event.
 *
 * @author vkazhdan
 * @version $Id: $Id
 */
public class PhotoCreatedEvent extends StorageServiceEvent {
	/**
	 * SerialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Created photo.
	 */
	private PhotoBO photo;
	
	PhotoCreatedEvent(PhotoBO photoObject) {
		if (photoObject==null)
			throw new IllegalArgumentException("Null is not allowed");
		this.photo = photoObject;
	}
	
	/** {@inheritDoc} */
	@Override public Operation getOperation(){
		return Operation.CREATE;
	}
	
	/**
	 * 

getCreatedPhoto.

* * @return a {@link net.anotheria.anosite.photoserver.service.storage.PhotoBO} object. */ public PhotoBO getCreatedPhoto(){ return photo; } /** {@inheritDoc} */ @Override protected String describePhotos() { return photo.toString(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy