Scene7FolderImpl.java 1.38 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.day.cq.dam.scene7.impl.model;

import com.day.cq.dam.scene7.api.model.Scene7Folder;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;

public class Scene7FolderImpl
implements Scene7Folder {
    private String folderHandle;
    private String path;
    private Date lastModifiedDate;
    private Boolean hasSubFolders;
    private List<Scene7Folder> subFolders;

    public Scene7FolderImpl(String folderHandle, String path, Date lastModifiedDate, Boolean hasSubFolders) {
        this.folderHandle = folderHandle;
        this.path = path;
        this.lastModifiedDate = lastModifiedDate;
        this.hasSubFolders = hasSubFolders;
        this.subFolders = new ArrayList<Scene7Folder>();
    }

    @Override
    public String getFolderHandle() {
        return this.folderHandle;
    }

    @Override
    public String getPath() {
        return this.path;
    }

    @Override
    public Date getLastModified() {
        return this.lastModifiedDate;
    }

    @Override
    public Boolean hasSubFolders() {
        return this.hasSubFolders;
    }

    @Override
    public List<Scene7Folder> getSubFolders() {
        return Collections.unmodifiableList(this.subFolders);
    }

    @Override
    public void addSubFolder(Scene7Folder subFolder) {
        this.subFolders.add(subFolder);
    }
}