001/* 002 * (C) Copyright 2010-2012 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 */ 015 016package org.nuxeo.ecm.platform.ec.notification.service; 017 018import org.nuxeo.common.xmap.annotation.XNode; 019import org.nuxeo.common.xmap.annotation.XObject; 020import org.nuxeo.ecm.platform.ec.notification.NotificationListenerVeto; 021 022/** 023 * @since 5.6 024 * @author Thierry Martins <tm@nuxeo.com> 025 */ 026@XObject("veto") 027public class NotificationListenerVetoDescriptor { 028 029 @XNode("@name") 030 private String name; 031 032 @XNode("@class") 033 private Class<? extends NotificationListenerVeto> notificationVeto; 034 035 @XNode("@remove") 036 private boolean remove = false; 037 038 public String getName() { 039 return name; 040 } 041 042 public void setName(String name) { 043 this.name = name; 044 } 045 046 public Class<? extends NotificationListenerVeto> getNotificationVeto() { 047 return notificationVeto; 048 } 049 050 public void setNotificationVeto(Class<? extends NotificationListenerVeto> notificationVeto) { 051 this.notificationVeto = notificationVeto; 052 } 053 054 public boolean isRemove() { 055 return remove; 056 } 057 058 public void setRemove(boolean remove) { 059 this.remove = remove; 060 } 061 062}