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