Subversion Repositories SmartDukaan

Rev

Rev 49 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 49 Rev 51
Line 11... Line 11...
11
import in.shop2020.metamodel.definitions.Catalog;
11
import in.shop2020.metamodel.definitions.Catalog;
12
import in.shop2020.metamodel.definitions.DefinitionsContainer;
12
import in.shop2020.metamodel.definitions.DefinitionsContainer;
13
import in.shop2020.metamodel.definitions.SlideDefinition;
13
import in.shop2020.metamodel.definitions.SlideDefinition;
14
 
14
 
15
/**
15
/**
-
 
16
 * Utility class that supports core Slide class. All related 
-
 
17
 * objects are fetched from database and aggregated here.
-
 
18
 * 
16
 * @author naveen
19
 * @author naveen
17
 *
20
 *
18
 */
21
 */
19
public class ExpandedSlide extends Slide {
22
public class ExpandedSlide extends Slide {
20
	/**
23
	/**
21
	 * 
24
	 * Expanded from SlideDefinition ID
22
	 */
25
	 */
23
	private SlideDefinition slideDefinition;
26
	private SlideDefinition slideDefinition;
24
	
27
	
25
	/**
28
	/**
26
	 * 
29
	 * Expanded from list of children Slide IDs
27
	 */
30
	 */
28
	private List<ExpandedSlide> expandedChildrenSlides;
31
	private List<ExpandedSlide> expandedChildrenSlides;
29
	
32
	
30
	/**
33
	/**
31
	 * 
34
	 * Expanded from Feature objects
32
	 */
35
	 */
33
	private List<ExpandedFeature> expandedFeatures;
36
	private List<ExpandedFeature> expandedFeatures;
34
 
37
 
35
	/**
38
	/**
36
	 * 
39
	 * 
37
	 */
40
	 */
38
	private static final long serialVersionUID = 1L;
41
	private static final long serialVersionUID = 1L;
39
	
42
	
40
	/**
43
	/**
-
 
44
	 * Takes Slide object as input and converts all references 
-
 
45
	 * into corresponding detail objects
41
	 * 
46
	 * 
42
	 * @param slide
47
	 * @param slide
43
	 * @throws Exception
48
	 * @throws Exception
44
	 */
49
	 */
45
	public ExpandedSlide(Slide slide) throws Exception {
50
	public ExpandedSlide(Slide slide) throws Exception {
Line 81... Line 86...
81
			}
86
			}
82
		}
87
		}
83
	}
88
	}
84
 
89
 
85
	/**
90
	/**
86
	 * @return the slideDefinition
91
	 * @return the slideDefinition Slide Definition object
87
	 */
92
	 */
88
	public SlideDefinition getSlideDefinition() {
93
	public SlideDefinition getSlideDefinition() {
89
		return slideDefinition;
94
		return slideDefinition;
90
	}
95
	}
91
 
96
 
92
	/**
97
	/**
93
	 * @return the expandedChildrenSlides
98
	 * @return the expandedChildrenSlides List of children ExpandedSlide objects
94
	 */
99
	 */
95
	public List<ExpandedSlide> getExpandedChildrenSlides() {
100
	public List<ExpandedSlide> getExpandedChildrenSlides() {
96
		return expandedChildrenSlides;
101
		return expandedChildrenSlides;
97
	}
102
	}
98
 
103