net.anotheria.anosite.photoserver.service.storage.PhotoBO Maven / Gradle / Ivy
package net.anotheria.anosite.photoserver.service.storage;
import net.anotheria.anosite.photoserver.shared.vo.PhotoVO;
import net.anotheria.anosite.photoserver.shared.vo.PreviewSettingsVO;
/**
* User photo information.
*
* @author Alexandr Bolbat
*/
public class PhotoBO extends PhotoVO implements Cloneable {
/**
* Basic serialVersionUID variable.
*/
private static final long serialVersionUID = 5752965750259757708L;
/**
* Constructor.
*/
public PhotoBO() {
super();
}
/**
* Constructor.
*
* @param photo {@link PhotoVO}
*/
public PhotoBO(PhotoVO photo) {
super();
setId(photo.getId());
setUserId(photo.getUserId());
setAlbumId(photo.getAlbumId());
setFileLocation(photo.getFileLocation());
setExtension(photo.getExtension());
setName(photo.getName());
setDescription(photo.getDescription());
setModificationTime(photo.getModificationTime());
setPreviewSettings(new PreviewSettingsVO(photo.getPreviewSettings()));
setApprovalStatus(photo.getApprovalStatus());
}
@Override
public PhotoBO clone() {
return PhotoBO.class.cast(super.clone());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy