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