001/*
002 * (C) Copyright 2010-2012 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 */
017
018package org.nuxeo.ecm.platform.ec.notification.service;
019
020import org.nuxeo.common.xmap.annotation.XNode;
021import org.nuxeo.common.xmap.annotation.XObject;
022import org.nuxeo.ecm.platform.ec.notification.NotificationListenerVeto;
023
024/**
025 * @since 5.6
026 * @author Thierry Martins
027 */
028@XObject("veto")
029public class NotificationListenerVetoDescriptor {
030
031    @XNode("@name")
032    private String name;
033
034    @XNode("@class")
035    private Class<? extends NotificationListenerVeto> notificationVeto;
036
037    @XNode("@remove")
038    private boolean remove = false;
039
040    public String getName() {
041        return name;
042    }
043
044    public void setName(String name) {
045        this.name = name;
046    }
047
048    public Class<? extends NotificationListenerVeto> getNotificationVeto() {
049        return notificationVeto;
050    }
051
052    public void setNotificationVeto(Class<? extends NotificationListenerVeto> notificationVeto) {
053        this.notificationVeto = notificationVeto;
054    }
055
056    public boolean isRemove() {
057        return remove;
058    }
059
060    public void setRemove(boolean remove) {
061        this.remove = remove;
062    }
063
064}