1 /*
2 * <cvs:source>$Source: /devel/astrogrid/filemanager/common/src/java/org/astrogrid/filemanager/common/FileManagerResourceFilter.java,v $</cvs:source>
3 * <cvs:author>$Author: jdt $</cvs:author>
4 * <cvs:date>$Date: 2005/01/13 17:23:15 $</cvs:date>
5 * <cvs:version>$Revision: 1.3 $</cvs:version>
6 * <cvs:log>
7 * $Log: FileManagerResourceFilter.java,v $
8 * Revision 1.3 2005/01/13 17:23:15 jdt
9 * merges from dave-dev-200412201250
10 *
11 * Revision 1.2.4.1 2005/01/12 13:16:27 dave
12 * Changed tabs to spaces ...
13 *
14 * Revision 1.2 2004/12/16 17:25:49 jdt
15 * merge from dave-dev-200410061224-200412161312
16 *
17 * Revision 1.1.2.1 2004/12/11 05:59:18 dave
18 * Added internal copy for nodes ...
19 * Added local copy for data ...
20 *
21 * Revision 1.1.2.4 2004/12/08 01:56:04 dave
22 * Added filestore location to move ...
23 *
24 * Revision 1.1.2.3 2004/11/05 02:23:45 dave
25 * Refactored identifiers are properties ...
26 *
27 * Revision 1.1.2.2 2004/11/02 23:40:08 dave
28 * Fixed typos and bugs ...
29 *
30 * Revision 1.1.2.1 2004/11/02 23:21:22 dave
31 * Added FileManagerProperties and filter ...
32 *
33 * </cvs:log>
34 *
35 */
36 package org.astrogrid.filemanager.common ;
37
38 import org.astrogrid.filestore.common.file.FileProperty ;
39 import org.astrogrid.filestore.common.file.PropertyFilter ;
40 import org.astrogrid.filestore.common.file.FileStorePropertyFilter ;
41
42 /***
43 * This filter excludes the FileManager and filestore resource properties.
44 *
45 *
46 */
47 public class FileManagerResourceFilter
48 extends FileStorePropertyFilter
49 implements PropertyFilter
50 {
51 /***
52 * Public constructor.
53 *
54 */
55 public FileManagerResourceFilter()
56 {
57 super();
58 }
59
60 /***
61 * Filter a property.
62 * @param property The property to filter.
63 * @return The filtered property value, or null if the whole property has been filtered out.
64 *
65 */
66 public FileProperty filter(FileProperty property)
67 {
68 if (FileManagerProperties.MANAGER_RESOURCE_IVORN.equals(property.getName()))
69 {
70 return null ;
71 }
72 //
73 // Filter the filestore properties.
74 return super.filter(
75 property
76 ) ;
77 }
78 }
79