-
Notifications
You must be signed in to change notification settings - Fork 461
/
ContainerRendered.java
69 lines (54 loc) · 2.24 KB
/
ContainerRendered.java
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
59
60
61
62
63
64
65
66
67
68
69
package com.dotmarketing.portlets.htmlpageasset.business.render;
import java.util.List;
import java.util.Map;
import com.dotmarketing.beans.ContainerStructure;
import com.dotmarketing.portlets.containers.model.Container;
/**
* Represents the information of the {@link Container} and its respective
* {@link ContainerStructure} relationships. These relationships define what Content Types can be
* added to the container.
*
* @author Will Ezell
* @author Jose Castro
* @version 4.2
* @since Oct 6, 2017
*/
public class ContainerRendered extends ContainerRaw {
private static final long serialVersionUID = 1572918359580445566L;
private final Map<String, String> rendered;
/**
* Creates a new instance of the ContainerRendered.
*
* @param container The {@link Container} in the HTML Page.
* @param containerStructures The list of {@link ContainerStructure} relationships.
* the browser.
*/
public ContainerRendered(final Container container, final List<ContainerStructure> containerStructures,
final Map<String, String> rendered, final Map<String,List<Map<String,Object>>> contentlets) {
super(container, containerStructures, contentlets);
this.rendered = rendered;
}
/**
* Creates a new instance of the ContainerRendered.
*
* @param container The {@link Container} in the HTML Page.
* @param containerStructures The list of {@link ContainerStructure} relationships.
* the browser.
*/
public ContainerRendered(final ContainerRaw containerRaw, final Map<String, String> rendered) {
this(containerRaw.getContainer(), containerRaw.getContainerStructures(), rendered, containerRaw.getContentlets());
}
/**
* Returns the {@link Container} as rendered in the browser.
*
* @return The HTML representation of the container.
*/
public Map<String, String> getRendered() {
return rendered;
}
@Override
public String toString() {
return "ContainerRendered{" + "container=" + getContainer() + ", containerStructures=" +
getContainerStructures() + ", rendered='" + rendered + '\'' + '}';
}
}