001/*
002 * (C) Copyright 2006-2007 Nuxeo SAS (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 * Contributors:
015 *     Nuxeo - initial API and implementation
016 *
017 * $Id: AbstractActionFilter.java 28491 2008-01-04 19:04:30Z sfermigier $
018 */
019
020package org.nuxeo.ecm.platform.actions;
021
022/**
023 * @author <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a>
024 * @deprecated since 5.6: not used expect in tests
025 */
026@Deprecated
027public abstract class AbstractActionFilter implements ActionFilter {
028
029    private static final long serialVersionUID = 6863014001035976681L;
030
031    protected String id;
032
033    protected String[] actions;
034
035    protected AbstractActionFilter(String id, String[] actions) {
036        this.id = id;
037        this.actions = actions;
038    }
039
040    protected AbstractActionFilter() {
041        this(null, null);
042    }
043
044    public String getId() {
045        return id;
046    }
047
048    public void setId(String id) {
049        this.id = id;
050    }
051
052    @Override
053    public String toString() {
054        return id;
055    }
056
057    public AbstractActionFilter clone() {
058        throw new UnsupportedOperationException();
059    }
060
061}