KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > applications > contenttool > wizards > actions > CreateContentWizardInfoBean


1 /* ===============================================================================
2  *
3  * Part of the InfoGlue Content Management Platform (www.infoglue.org)
4  *
5  * ===============================================================================
6  *
7  * Copyright (C)
8  *
9  * This program is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License version 2, as published by the
11  * Free Software Foundation. See the file LICENSE.html for more information.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
19  * Place, Suite 330 / Boston, MA 02111-1307 / USA.
20  *
21  * ===============================================================================
22  */

23
24 package org.infoglue.cms.applications.contenttool.wizards.actions;
25
26 import java.util.HashMap JavaDoc;
27 import java.util.Map JavaDoc;
28
29 import org.infoglue.cms.entities.content.Content;
30 import org.infoglue.cms.entities.content.impl.simple.ContentImpl;
31
32 /**
33  * @author mattias
34  *
35  * This class is used to store all needed information during the entire wizard. Much nicer than to
36  * put the info in the session without a wrapper.
37  */

38
39 public class CreateContentWizardInfoBean
40 {
41     private Integer JavaDoc parentContentId = null;
42     private Integer JavaDoc repositoryId = null;
43     private Integer JavaDoc contentTypeDefinitionId = null;
44     private Content content = new ContentImpl();
45     private Map JavaDoc contentVersions = new HashMap JavaDoc();
46     private Map JavaDoc digitalAssets = new HashMap JavaDoc();
47     private String JavaDoc returnAddress = null;
48     
49     public Content getContent()
50     {
51         return content;
52     }
53
54     public Integer JavaDoc getParentContentId()
55     {
56         return parentContentId;
57     }
58
59     public Integer JavaDoc getRepositoryId()
60     {
61         return repositoryId;
62     }
63
64     public void setContent(Content content)
65     {
66         this.content = content;
67     }
68
69     public void setParentContentId(Integer JavaDoc parentContentId)
70     {
71         this.parentContentId = parentContentId;
72     }
73
74     public void setRepositoryId(Integer JavaDoc repositoryId)
75     {
76         this.repositoryId = repositoryId;
77     }
78
79     public Integer JavaDoc getContentTypeDefinitionId()
80     {
81         return this.contentTypeDefinitionId;
82     }
83
84     public void setContentTypeDefinitionId(Integer JavaDoc contentTypeDefinitionId)
85     {
86         this.contentTypeDefinitionId = contentTypeDefinitionId;
87     }
88
89     public Map JavaDoc getDigitalAssets()
90     {
91         return this.digitalAssets;
92     }
93
94     public void setDigitalAssets(Map JavaDoc digitalAssets)
95     {
96         this.digitalAssets = digitalAssets;
97     }
98
99     public Map JavaDoc getContentVersions()
100     {
101         return this.contentVersions;
102     }
103
104     public void setContentVersions(Map JavaDoc contentVersions)
105     {
106         this.contentVersions = contentVersions;
107     }
108
109     public String JavaDoc getReturnAddress()
110     {
111         return this.returnAddress;
112     }
113
114     public void setReturnAddress(String JavaDoc returnAddress)
115     {
116         this.returnAddress = returnAddress;
117     }
118
119 }
120
Popular Tags