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

com.venky.swf.plugins.slideshow.db.model.SlideImpl Maven / Gradle / Ivy

The newest version!
package com.venky.swf.plugins.slideshow.db.model;

import com.venky.swf.db.table.ModelImpl;

import java.util.List;

public class SlideImpl extends ModelImpl {
    public SlideImpl(Slide slide){
        super(slide);
    }
    public SlideImpl(){
        super();
    }
    public String getAttachmentUrl() {
        Slide slide = getProxy();
        if (slide.getRawRecord().isNewRecord()){
            return null;
        }else {
            List attachmentList = slide.getAttachments();
            if (attachmentList.isEmpty()){
                return null;
            }
            return attachmentList.get(0).getAttachmentUrl();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy