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.kernel.events;
016    
017    import javax.servlet.http.HttpServletRequest;
018    import javax.servlet.http.HttpServletResponse;
019    import javax.servlet.http.HttpSession;
020    
021    /**
022     * @author Raymond Aug??
023     */
024    public class LifecycleEvent {
025    
026            public LifecycleEvent() {
027                    this(null, null, null, null);
028            }
029    
030            public LifecycleEvent(
031                    HttpServletRequest request, HttpServletResponse response) {
032    
033                    this(null, request, response, null);
034            }
035    
036            public LifecycleEvent(HttpSession session) {
037                    this(null, null, null, session);
038            }
039    
040            public LifecycleEvent(String[] ids) {
041                    this(ids, null, null, null);
042            }
043    
044            public LifecycleEvent(
045                    String[] ids, HttpServletRequest request, HttpServletResponse response,
046                    HttpSession session) {
047    
048                    _ids = ids;
049                    _request = request;
050                    _response = response;
051                    _session = session;
052            }
053    
054            public String[] getIds() {
055                    return _ids;
056            }
057    
058            public HttpServletRequest getRequest() {
059                    return _request;
060            }
061    
062            public HttpServletResponse getResponse() {
063                    return _response;
064            }
065    
066            public HttpSession getSession() {
067                    return _session;
068            }
069    
070            private final String[] _ids;
071            private final HttpServletRequest _request;
072            private final HttpServletResponse _response;
073            private final HttpSession _session;
074    
075    }