1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.communities.messaging;
24  
25  import java.util.Date;
26  import java.util.Map;
27  
28  /**
29   * <a href="LayoutsLocalPublisherRequest.java.html"><b><i>View Source</i></b>
30   * </a>
31   *
32   * @author Bruno Farache
33   */
34  public class LayoutsLocalPublisherRequest {
35  
36      public static final String COMMAND_ALL_PAGES = "ALL_PAGES";
37  
38      public static final String COMMAND_SELECTED_PAGES = "SELECTED_PAGES";
39  
40      public LayoutsLocalPublisherRequest() {
41      }
42  
43      public LayoutsLocalPublisherRequest(
44          String command, long userId, long sourceGroupId, long targetGroupId,
45          boolean privateLayout, Map<Long, Boolean> layoutIdMap,
46          Map<String, String[]> parameterMap, Date startDate, Date endDate) {
47  
48          _command = command;
49          _userId = userId;
50          _sourceGroupId = sourceGroupId;
51          _targetGroupId = targetGroupId;
52          _privateLayout = privateLayout;
53          _layoutIdMap = layoutIdMap;
54          _parameterMap = parameterMap;
55          _startDate = startDate;
56          _endDate = endDate;
57      }
58  
59      public String getCommand() {
60          return _command;
61      }
62  
63      public void setCommand(String command) {
64          _command = command;
65      }
66  
67      public String getCronText() {
68          return _cronText;
69      }
70  
71      public void setCronText(String cronText) {
72          _cronText = cronText;
73      }
74  
75      public long getUserId() {
76          return _userId;
77      }
78  
79      public void setUserId(long userId) {
80          _userId = userId;
81      }
82  
83      public long getSourceGroupId() {
84          return _sourceGroupId;
85      }
86  
87      public void setSourceGroupId(long sourceGroupId) {
88          _sourceGroupId = sourceGroupId;
89      }
90  
91      public long getTargetGroupId() {
92          return _targetGroupId;
93      }
94  
95      public void setTargetGroupId(long targetGroupId) {
96          _targetGroupId = targetGroupId;
97      }
98  
99      public boolean isPrivateLayout() {
100         return _privateLayout;
101     }
102 
103     public void setPrivateLayout(boolean privateLayout) {
104         _privateLayout = privateLayout;
105     }
106 
107     public Map<Long, Boolean> getLayoutIdMap() {
108         return _layoutIdMap;
109     }
110 
111     public void setLayoutIdMap(Map<Long, Boolean> layoutIdMap) {
112         _layoutIdMap = layoutIdMap;
113     }
114 
115     public Map<String, String[]> getParameterMap() {
116         return _parameterMap;
117     }
118 
119     public void setParameterMap(Map<String, String[]> parameterMap) {
120         _parameterMap = parameterMap;
121     }
122 
123     public Date getStartDate() {
124         return _startDate;
125     }
126 
127     public void setStartDate(Date startDate) {
128         _startDate = startDate;
129     }
130 
131     public Date getEndDate() {
132         return _endDate;
133     }
134 
135     public void setEndDate(Date endDate) {
136         _endDate = endDate;
137     }
138 
139     public Date getScheduledFireTime() {
140         return _scheduledFireTime;
141     }
142 
143     public void setScheduledFireTime(Date scheduledFireTime) {
144         _scheduledFireTime = scheduledFireTime;
145     }
146 
147     private String _command;
148     private String _cronText;
149     private long _userId;
150     private long _sourceGroupId;
151     private long _targetGroupId;
152     private boolean _privateLayout;
153     private Map<Long, Boolean> _layoutIdMap;
154     private Map<String, String[]> _parameterMap;
155     private Date _startDate;
156     private Date _endDate;
157     private Date _scheduledFireTime;
158 
159 }