Scene7FolderImpl.java
1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* 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);
}
}