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="LayoutsRemotePublisherRequest.java.html"><b><i>View Source</i></b>
30   * </a>
31   *
32   * @author Bruno Farache
33   */
34  public class LayoutsRemotePublisherRequest
35      extends LayoutsLocalPublisherRequest {
36  
37      public LayoutsRemotePublisherRequest() {
38      }
39  
40      public LayoutsRemotePublisherRequest(
41          long userId, long sourceGroupId, boolean privateLayout,
42          Map<Long, Boolean> layoutIdMap, Map<String, String[]> parameterMap,
43          String remoteAddress, int remotePort, boolean secureConnection,
44          long remoteGroupId, boolean remotePrivateLayout, Date startDate,
45          Date endDate) {
46  
47          _userId = userId;
48          _sourceGroupId = sourceGroupId;
49          _privateLayout = privateLayout;
50          _layoutIdMap = layoutIdMap;
51          _parameterMap = parameterMap;
52          _remoteAddress = remoteAddress;
53          _remotePort = remotePort;
54          _secureConnection = secureConnection;
55          _remoteGroupId = remoteGroupId;
56          _remotePrivateLayout = remotePrivateLayout;
57          _startDate = startDate;
58          _endDate = endDate;
59      }
60  
61      public String getCronText() {
62          return _cronText;
63      }
64  
65      public void setCronText(String cronText) {
66          _cronText = cronText;
67      }
68  
69      public long getUserId() {
70          return _userId;
71      }
72  
73      public void setUserId(long userId) {
74          _userId = userId;
75      }
76  
77      public long getSourceGroupId() {
78          return _sourceGroupId;
79      }
80  
81      public void setSourceGroupId(long sourceGroupId) {
82          _sourceGroupId = sourceGroupId;
83      }
84  
85      public boolean isPrivateLayout() {
86          return _privateLayout;
87      }
88  
89      public void setPrivateLayout(boolean privateLayout) {
90          _privateLayout = privateLayout;
91      }
92  
93      public Map<Long, Boolean> getLayoutIdMap() {
94          return _layoutIdMap;
95      }
96  
97      public void setLayoutIdMap(Map<Long, Boolean> layoutIdMap) {
98          _layoutIdMap = layoutIdMap;
99      }
100 
101     public Map<String, String[]> getParameterMap() {
102         return _parameterMap;
103     }
104 
105     public void setParameterMap(Map<String, String[]> parameterMap) {
106         _parameterMap = parameterMap;
107     }
108 
109     public String getRemoteAddress() {
110         return _remoteAddress;
111     }
112 
113     public void setRemoteAddress(String remoteAddress) {
114         _remoteAddress = remoteAddress;
115     }
116 
117     public int getRemotePort() {
118         return _remotePort;
119     }
120 
121     public void setRemotePort(int remotePort) {
122         _remotePort = remotePort;
123     }
124 
125     public boolean isSecureConnection() {
126         return _secureConnection;
127     }
128 
129     public void setSecureConnection(boolean secureConnection) {
130         _secureConnection = secureConnection;
131     }
132 
133     public long getRemoteGroupId() {
134         return _remoteGroupId;
135     }
136 
137     public void setRemoteGroupId(long remoteGroupId) {
138         _remoteGroupId = remoteGroupId;
139     }
140 
141     public boolean isRemotePrivateLayout() {
142         return _remotePrivateLayout;
143     }
144 
145     public void setRemotePrivateLayout(boolean remotePrivateLayout) {
146         _remotePrivateLayout = remotePrivateLayout;
147     }
148 
149     public Date getStartDate() {
150         return _startDate;
151     }
152 
153     public void setStartDate(Date startDate) {
154         _startDate = startDate;
155     }
156 
157     public Date getEndDate() {
158         return _endDate;
159     }
160 
161     public void setEndDate(Date endDate) {
162         _endDate = endDate;
163     }
164 
165     public Date getScheduledFireTime() {
166         return _scheduledFireTime;
167     }
168 
169     public void setScheduledFireTime(Date scheduledFireTime) {
170         _scheduledFireTime = scheduledFireTime;
171     }
172 
173     private String _cronText;
174     private long _userId;
175     private long _sourceGroupId;
176     private boolean _privateLayout;
177     private Map<Long, Boolean> _layoutIdMap;
178     private Map<String, String[]> _parameterMap;
179     private String _remoteAddress;
180     private int _remotePort;
181     private boolean _secureConnection;
182     private long _remoteGroupId;
183     private boolean _remotePrivateLayout;
184     private Date _startDate;
185     private Date _endDate;
186     private Date _scheduledFireTime;
187 
188 }