001/*
002 * (C) Copyright 2006-2007 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 * Contributors:
017 *     Nuxeo - initial API and implementation
018 *
019 * $Id: JOOoConvertPluginImpl.java 18651 2007-05-13 20:28:53Z sfermigier $
020 */
021
022package org.nuxeo.ecm.webapp.trashManagement;
023
024/**
025 * Seam component used to manage named lists of documents.
026 * <p>
027 * Managing the DM lists into this component instead of directly inside the Seam context offers the following
028 * advantages:
029 * <ul>
030 * <li>DM Lists life cycle management can be done transparently, the DocumentsListsManager can use internal fields or
031 * differently scoped variables (Conversation, Process ...)
032 * <li>DocumentsListsManager provides (will) an Extension Point mechanism to register new names lists
033 * <li>DocumentsListsManager provides add configurations to each lists
034 * <ul>
035 * <li>List Name
036 * <li>List Icon
037 * <li>List append behavior
038 * <li>Category of the list
039 * <li>...
040 * </ul>
041 * <li>DocumentsListsManager provides helpers features for merging and resetting lists
042 * </ul>
043 *
044 * @author tiry
045 */
046public interface TrashManager {
047
048    /**
049     * Checks if trash management is enabled.
050     *
051     * @return true if trash management is enabled
052     */
053    boolean isTrashManagementEnabled();
054
055    void destroy();
056
057    void initTrashManager();
058
059}