001    /**
002     * Copyright (c) 2000-present 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.portal.messaging;
016    
017    import java.io.Serializable;
018    
019    import java.util.Date;
020    import java.util.Map;
021    
022    /**
023     * @author Bruno Farache
024     * @deprecated As of 7.0.0, with no direct replacement
025     */
026    @Deprecated
027    public class LayoutsLocalPublisherRequest implements Serializable {
028    
029            public static final String COMMAND_ALL_PAGES = "ALL_PAGES";
030    
031            public static final String COMMAND_SELECTED_PAGES = "SELECTED_PAGES";
032    
033            public LayoutsLocalPublisherRequest() {
034            }
035    
036            public LayoutsLocalPublisherRequest(
037                    String command, long userId, long sourceGroupId, long targetGroupId,
038                    boolean privateLayout, Map<Long, Boolean> layoutIdMap,
039                    Map<String, String[]> parameterMap, Date startDate, Date endDate) {
040    
041                    _command = command;
042                    _userId = userId;
043                    _sourceGroupId = sourceGroupId;
044                    _targetGroupId = targetGroupId;
045                    _privateLayout = privateLayout;
046                    _layoutIdMap = layoutIdMap;
047                    _parameterMap = parameterMap;
048                    _startDate = startDate;
049                    _endDate = endDate;
050            }
051    
052            public String getCommand() {
053                    return _command;
054            }
055    
056            public String getCronText() {
057                    return _cronText;
058            }
059    
060            public Date getEndDate() {
061                    return _endDate;
062            }
063    
064            public Map<Long, Boolean> getLayoutIdMap() {
065                    return _layoutIdMap;
066            }
067    
068            public Map<String, String[]> getParameterMap() {
069                    return _parameterMap;
070            }
071    
072            public Date getScheduledFireTime() {
073                    return _scheduledFireTime;
074            }
075    
076            public long getSourceGroupId() {
077                    return _sourceGroupId;
078            }
079    
080            public Date getStartDate() {
081                    return _startDate;
082            }
083    
084            public long getTargetGroupId() {
085                    return _targetGroupId;
086            }
087    
088            public long getUserId() {
089                    return _userId;
090            }
091    
092            public boolean isPrivateLayout() {
093                    return _privateLayout;
094            }
095    
096            public void setCommand(String command) {
097                    _command = command;
098            }
099    
100            public void setCronText(String cronText) {
101                    _cronText = cronText;
102            }
103    
104            public void setEndDate(Date endDate) {
105                    _endDate = endDate;
106            }
107    
108            public void setLayoutIdMap(Map<Long, Boolean> layoutIdMap) {
109                    _layoutIdMap = layoutIdMap;
110            }
111    
112            public void setParameterMap(Map<String, String[]> parameterMap) {
113                    _parameterMap = parameterMap;
114            }
115    
116            public void setPrivateLayout(boolean privateLayout) {
117                    _privateLayout = privateLayout;
118            }
119    
120            public void setScheduledFireTime(Date scheduledFireTime) {
121                    _scheduledFireTime = scheduledFireTime;
122            }
123    
124            public void setSourceGroupId(long sourceGroupId) {
125                    _sourceGroupId = sourceGroupId;
126            }
127    
128            public void setStartDate(Date startDate) {
129                    _startDate = startDate;
130            }
131    
132            public void setTargetGroupId(long targetGroupId) {
133                    _targetGroupId = targetGroupId;
134            }
135    
136            public void setUserId(long userId) {
137                    _userId = userId;
138            }
139    
140            private static final long serialVersionUID = 5924338343434811142L;
141    
142            private String _command;
143            private String _cronText;
144            private Date _endDate;
145            private Map<Long, Boolean> _layoutIdMap;
146            private Map<String, String[]> _parameterMap;
147            private boolean _privateLayout;
148            private Date _scheduledFireTime;
149            private long _sourceGroupId;
150            private Date _startDate;
151            private long _targetGroupId;
152            private long _userId;
153    
154    }