001 /*
002 Copyright (c) 1996-2012, Damon Hart-Davis
003 All rights reserved.
004
005 Redistribution and use in source and binary forms, with or without
006 modification, are permitted provided that the following conditions are
007 met:
008
009 * Redistributions of source code must retain the above copyright
010 notice, this list of conditions and the following disclaimer.
011
012 * Redistributions in binary form must reproduce the above copyright
013 notice, this list of conditions and the following disclaimer in the
014 documentation and/or other materials provided with the
015 distribution.
016
017 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
018 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
019 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
020 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
021 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
022 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
023 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
024 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
025 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
026 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
027 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
028 */
029
030 package org.hd.d.pg2k.webSvr.catalogue;
031
032 import org.hd.d.pg2k.webSvr.exhibit.BuiltInFilters;
033 import org.hd.d.pg2k.webSvr.exhibit.Expr;
034 import org.hd.d.pg2k.webSvr.exhibit.FilterExpr;
035
036 /**
037 * Created by IntelliJ IDEA.
038 * User: Damon Hart-Davis
039 * Date: 31-May-2003
040 * Time: 12:28:58
041 */
042
043 /**Servlet to do filtering and selection of one tree of exhibits for display.
044 * This class gathers all exhibits for display in a tree.
045 * <p>
046 * This will forward all hits one way or another to a JSP (or another servlet) for display.
047 */
048 public final class TreeFilterServletAllExhibits
049 extends TreeFilterServletBase
050 {
051 /**Get the filter expression to apply.
052 * Defaults to accept everything.
053 * <p>
054 * Override in derived classes.
055 */
056 @Override
057 protected Expr getFilter()
058 {
059 return(new FilterExpr(null, new BuiltInFilters.filtAll(null)));
060 }
061
062 /**Get (short) title text common catalogue name; null if none.
063 * The expanded text should be 7-bit printable ASCII,
064 * possibly with embedded entities and mark-up.
065 * <p>
066 * Override in derived classes.
067 */
068 @Override
069 protected String getTitleCommonCatalogueName()
070 { return("common.virtCol.allExhibits.title"); }
071
072 /**Get descriptive text (i18n-ed if possible); null if none.
073 * The expanded text should be 7-bit printable ASCII,
074 * possibly with embedded entities and mark-up.
075 * <p>
076 * Defaults to null (no descriptive text).
077 * <p>
078 * Override as needed in derived classes.
079 */
080 @Override
081 protected String getDescriptionCommonCatalogueName()
082 { return("common.virtCol.allExhibits.description"); }
083
084 /**Unique Serialisation class ID generated by http://random.hd.org/. */
085 private static final long serialVersionUID = 5283378272843090137L;
086 }