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.monitoring;
016    
017    /**
018     * @author Michael C. Han
019     */
020    public class DefaultPortletMonitoringControl
021            implements PortletMonitoringControl {
022    
023            @Override
024            public boolean isMonitorPortletActionRequest() {
025                    return _monitorPortletActionRequest;
026            }
027    
028            @Override
029            public boolean isMonitorPortletEventRequest() {
030                    return _monitorPortletEventRequest;
031            }
032    
033            @Override
034            public boolean isMonitorPortletRenderRequest() {
035                    return _monitorPortletRenderRequest;
036            }
037    
038            @Override
039            public boolean isMonitorPortletResourceRequest() {
040                    return _monitorPortletResourceRequest;
041            }
042    
043            @Override
044            public void setMonitorPortletActionRequest(
045                    boolean monitorPortletActionRequest) {
046    
047                    _monitorPortletActionRequest = monitorPortletActionRequest;
048            }
049    
050            @Override
051            public void setMonitorPortletEventRequest(
052                    boolean monitorPortletEventRequest) {
053    
054                    _monitorPortletEventRequest = monitorPortletEventRequest;
055            }
056    
057            @Override
058            public void setMonitorPortletRenderRequest(
059                    boolean monitorPortletRenderRequest) {
060    
061                    _monitorPortletRenderRequest = monitorPortletRenderRequest;
062            }
063    
064            @Override
065            public void setMonitorPortletResourceRequest(
066                    boolean monitorPortletResourceRequest) {
067    
068                    _monitorPortletResourceRequest = monitorPortletResourceRequest;
069            }
070    
071            private boolean _monitorPortletActionRequest;
072            private boolean _monitorPortletEventRequest;
073            private boolean _monitorPortletRenderRequest;
074            private boolean _monitorPortletResourceRequest;
075    
076    }