1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   */
35  public class LayoutsRemotePublisherRequest
36      extends LayoutsLocalPublisherRequest {
37  
38      public LayoutsRemotePublisherRequest() {
39      }
40  
41      public LayoutsRemotePublisherRequest(
42          long userId, long sourceGroupId, boolean privateLayout,
43          Map<Long, Boolean> layoutIdMap, Map<String, String[]> parameterMap,
44          String remoteAddress, int remotePort, boolean secureConnection,
45          long remoteGroupId, boolean remotePrivateLayout, Date startDate,
46          Date endDate) {
47  
48          _userId = userId;
49          _sourceGroupId = sourceGroupId;
50          _privateLayout = privateLayout;
51          _layoutIdMap = layoutIdMap;
52          _parameterMap = parameterMap;
53          _remoteAddress = remoteAddress;
54          _remotePort = remotePort;
55          _secureConnection = secureConnection;
56          _remoteGroupId = remoteGroupId;
57          _remotePrivateLayout = remotePrivateLayout;
58          _startDate = startDate;
59          _endDate = endDate;
60      }
61  
62      public String getCronText() {
63          return _cronText;
64      }
65  
66      public void setCronText(String cronText) {
67          _cronText = cronText;
68      }
69  
70      public long getUserId() {
71          return _userId;
72      }
73  
74      public void setUserId(long userId) {
75          _userId = userId;
76      }
77  
78      public long getSourceGroupId() {
79          return _sourceGroupId;
80      }
81  
82      public void setSourceGroupId(long sourceGroupId) {
83          _sourceGroupId = sourceGroupId;
84      }
85  
86      public boolean isPrivateLayout() {
87          return _privateLayout;
88      }
89  
90      public void setPrivateLayout(boolean privateLayout) {
91          _privateLayout = privateLayout;
92      }
93  
94      public Map<Long, Boolean> getLayoutIdMap() {
95          return _layoutIdMap;
96      }
97  
98      public void setLayoutIdMap(Map<Long, Boolean> layoutIdMap) {
99          _layoutIdMap = layoutIdMap;
100     }
101 
102     public Map<String, String[]> getParameterMap() {
103         return _parameterMap;
104     }
105 
106     public void setParameterMap(Map<String, String[]> parameterMap) {
107         _parameterMap = parameterMap;
108     }
109 
110     public String getRemoteAddress() {
111         return _remoteAddress;
112     }
113 
114     public void setRemoteAddress(String remoteAddress) {
115         _remoteAddress = remoteAddress;
116     }
117 
118     public int getRemotePort() {
119         return _remotePort;
120     }
121 
122     public void setRemotePort(int remotePort) {
123         _remotePort = remotePort;
124     }
125 
126     public boolean isSecureConnection() {
127         return _secureConnection;
128     }
129 
130     public void setSecureConnection(boolean secureConnection) {
131         _secureConnection = secureConnection;
132     }
133 
134     public long getRemoteGroupId() {
135         return _remoteGroupId;
136     }
137 
138     public void setRemoteGroupId(long remoteGroupId) {
139         _remoteGroupId = remoteGroupId;
140     }
141 
142     public boolean isRemotePrivateLayout() {
143         return _remotePrivateLayout;
144     }
145 
146     public void setRemotePrivateLayout(boolean remotePrivateLayout) {
147         _remotePrivateLayout = remotePrivateLayout;
148     }
149 
150     public Date getStartDate() {
151         return _startDate;
152     }
153 
154     public void setStartDate(Date startDate) {
155         _startDate = startDate;
156     }
157 
158     public Date getEndDate() {
159         return _endDate;
160     }
161 
162     public void setEndDate(Date endDate) {
163         _endDate = endDate;
164     }
165 
166     public Date getScheduledFireTime() {
167         return _scheduledFireTime;
168     }
169 
170     public void setScheduledFireTime(Date scheduledFireTime) {
171         _scheduledFireTime = scheduledFireTime;
172     }
173 
174     private String _cronText;
175     private long _userId;
176     private long _sourceGroupId;
177     private boolean _privateLayout;
178     private Map<Long, Boolean> _layoutIdMap;
179     private Map<String, String[]> _parameterMap;
180     private String _remoteAddress;
181     private int _remotePort;
182     private boolean _secureConnection;
183     private long _remoteGroupId;
184     private boolean _remotePrivateLayout;
185     private Date _startDate;
186     private Date _endDate;
187     private Date _scheduledFireTime;
188 
189 }