001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.communities.messaging;
016    
017    import java.util.Date;
018    import java.util.Map;
019    
020    /**
021     * @author Bruno Farache
022     */
023    public class LayoutsRemotePublisherRequest
024            extends LayoutsLocalPublisherRequest {
025    
026            public LayoutsRemotePublisherRequest() {
027            }
028    
029            public LayoutsRemotePublisherRequest(
030                    long userId, long sourceGroupId, boolean privateLayout,
031                    Map<Long, Boolean> layoutIdMap, Map<String, String[]> parameterMap,
032                    String remoteAddress, int remotePort, boolean secureConnection,
033                    long remoteGroupId, boolean remotePrivateLayout, Date startDate,
034                    Date endDate) {
035    
036                    _userId = userId;
037                    _sourceGroupId = sourceGroupId;
038                    _privateLayout = privateLayout;
039                    _layoutIdMap = layoutIdMap;
040                    _parameterMap = parameterMap;
041                    _remoteAddress = remoteAddress;
042                    _remotePort = remotePort;
043                    _secureConnection = secureConnection;
044                    _remoteGroupId = remoteGroupId;
045                    _remotePrivateLayout = remotePrivateLayout;
046                    _startDate = startDate;
047                    _endDate = endDate;
048            }
049    
050            public String getCronText() {
051                    return _cronText;
052            }
053    
054            public void setCronText(String cronText) {
055                    _cronText = cronText;
056            }
057    
058            public long getUserId() {
059                    return _userId;
060            }
061    
062            public void setUserId(long userId) {
063                    _userId = userId;
064            }
065    
066            public long getSourceGroupId() {
067                    return _sourceGroupId;
068            }
069    
070            public void setSourceGroupId(long sourceGroupId) {
071                    _sourceGroupId = sourceGroupId;
072            }
073    
074            public boolean isPrivateLayout() {
075                    return _privateLayout;
076            }
077    
078            public void setPrivateLayout(boolean privateLayout) {
079                    _privateLayout = privateLayout;
080            }
081    
082            public Map<Long, Boolean> getLayoutIdMap() {
083                    return _layoutIdMap;
084            }
085    
086            public void setLayoutIdMap(Map<Long, Boolean> layoutIdMap) {
087                    _layoutIdMap = layoutIdMap;
088            }
089    
090            public Map<String, String[]> getParameterMap() {
091                    return _parameterMap;
092            }
093    
094            public void setParameterMap(Map<String, String[]> parameterMap) {
095                    _parameterMap = parameterMap;
096            }
097    
098            public String getRemoteAddress() {
099                    return _remoteAddress;
100            }
101    
102            public void setRemoteAddress(String remoteAddress) {
103                    _remoteAddress = remoteAddress;
104            }
105    
106            public int getRemotePort() {
107                    return _remotePort;
108            }
109    
110            public void setRemotePort(int remotePort) {
111                    _remotePort = remotePort;
112            }
113    
114            public boolean isSecureConnection() {
115                    return _secureConnection;
116            }
117    
118            public void setSecureConnection(boolean secureConnection) {
119                    _secureConnection = secureConnection;
120            }
121    
122            public long getRemoteGroupId() {
123                    return _remoteGroupId;
124            }
125    
126            public void setRemoteGroupId(long remoteGroupId) {
127                    _remoteGroupId = remoteGroupId;
128            }
129    
130            public boolean isRemotePrivateLayout() {
131                    return _remotePrivateLayout;
132            }
133    
134            public void setRemotePrivateLayout(boolean remotePrivateLayout) {
135                    _remotePrivateLayout = remotePrivateLayout;
136            }
137    
138            public Date getStartDate() {
139                    return _startDate;
140            }
141    
142            public void setStartDate(Date startDate) {
143                    _startDate = startDate;
144            }
145    
146            public Date getEndDate() {
147                    return _endDate;
148            }
149    
150            public void setEndDate(Date endDate) {
151                    _endDate = endDate;
152            }
153    
154            public Date getScheduledFireTime() {
155                    return _scheduledFireTime;
156            }
157    
158            public void setScheduledFireTime(Date scheduledFireTime) {
159                    _scheduledFireTime = scheduledFireTime;
160            }
161    
162            private String _cronText;
163            private long _userId;
164            private long _sourceGroupId;
165            private boolean _privateLayout;
166            private Map<Long, Boolean> _layoutIdMap;
167            private Map<String, String[]> _parameterMap;
168            private String _remoteAddress;
169            private int _remotePort;
170            private boolean _secureConnection;
171            private long _remoteGroupId;
172            private boolean _remotePrivateLayout;
173            private Date _startDate;
174            private Date _endDate;
175            private Date _scheduledFireTime;
176    
177    }