001    /**
002     * Copyright (c) 2000-2013 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.kernel.scheduler.messaging;
016    
017    import com.liferay.portal.kernel.messaging.Message;
018    import com.liferay.portal.kernel.scheduler.StorageType;
019    import com.liferay.portal.kernel.scheduler.Trigger;
020    
021    import java.io.Serializable;
022    
023    /**
024     * @author Tina Tian
025     */
026    public class SchedulerResponse implements Serializable {
027    
028            public String getDescription() {
029                    return _description;
030            }
031    
032            public String getDestinationName() {
033                    return _destinationName;
034            }
035    
036            public String getGroupName() {
037                    if (_trigger != null) {
038                            return _trigger.getGroupName();
039                    }
040    
041                    return _groupName;
042            }
043    
044            public String getJobName() {
045                    if (_trigger != null) {
046                            return _trigger.getJobName();
047                    }
048    
049                    return _jobName;
050            }
051    
052            public Message getMessage() {
053                    return _message;
054            }
055    
056            public StorageType getStorageType() {
057                    return _storageType;
058            }
059    
060            public Trigger getTrigger() {
061                    return _trigger;
062            }
063    
064            public void setDescription(String description) {
065                    _description = description;
066            }
067    
068            public void setDestinationName(String destinationName) {
069                    _destinationName = destinationName;
070            }
071    
072            public void setGroupName(String groupName) {
073                    _groupName = groupName;
074            }
075    
076            public void setJobName(String jobName) {
077                    _jobName = jobName;
078            }
079    
080            public void setMessage(Message message) {
081                    _message = message;
082            }
083    
084            public void setStorageType(StorageType storageType) {
085                    _storageType = storageType;
086            }
087    
088            public void setTrigger(Trigger trigger) {
089                    _trigger = trigger;
090            }
091    
092            private String _description;
093            private String _destinationName;
094            private String _groupName;
095            private String _jobName;
096            private Message _message;
097            private StorageType _storageType;
098            private Trigger _trigger;
099    
100    }