KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencms > test > OpenCmsTestResourceConfigurableFilter


1 /*
2  * File : $Source: /usr/local/cvs/opencms/test/org/opencms/test/OpenCmsTestResourceConfigurableFilter.java,v $
3  * Date : $Date: 2005/06/23 11:11:54 $
4  * Version: $Revision: 1.6 $
5  *
6  * This library is part of OpenCms -
7  * the Open Source Content Mananagement System
8  *
9  * Copyright (c) 2005 Alkacon Software GmbH (http://www.alkacon.com)
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Lesser General Public
13  * License as published by the Free Software Foundation; either
14  * version 2.1 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Lesser General Public License for more details.
20  *
21  * For further information about Alkacon Software GmbH, please see the
22  * company website: http://www.alkacon.com
23  *
24  * For further information about OpenCms, please see the
25  * project website: http://www.opencms.org
26  *
27  * You should have received a copy of the GNU Lesser General Public
28  * License along with this library; if not, write to the Free Software
29  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30  */

31  
32 package org.opencms.test;
33
34 /**
35  * Configurable filter class for OpenCms VFS access method tests.<p>
36  *
37  * @author Alexander Kandzior
38  *
39  * @version $Revision: 1.6 $
40  */

41 public class OpenCmsTestResourceConfigurableFilter extends OpenCmsTestResourceFilter {
42
43     /**
44      * Creates a new OpenCmsTestResourceFilter with all tests enabled.<p>
45      */

46     public OpenCmsTestResourceConfigurableFilter() {
47         m_contentId = true;
48         m_dateCreated = true;
49         m_dateLastModified = true;
50         m_dateReleased = true;
51         m_dateExpired = true;
52         m_flags = true;
53         m_isTouched = true;
54         m_length = true;
55         m_siblingCount = true;
56         m_name = true;
57         m_projectLastModified = true;
58         m_resourceId = true;
59         m_state = true;
60         m_structureId = true;
61         m_type = true;
62         m_userCreated = true;
63         m_userLastModified = true;
64         m_lockstate = true;
65         m_contents = true;
66         m_properties = true;
67         m_acl = true;
68         m_ace = true;
69     }
70     
71     /**
72      * Creates a new OpenCmsTestResourceFilter based on an existing filter.<p>
73      *
74      * @param baseFilter the filter to base this filter on
75      */

76     public OpenCmsTestResourceConfigurableFilter(OpenCmsTestResourceFilter baseFilter) {
77         m_contentId = baseFilter.testContentId();
78         m_dateCreated = baseFilter.testDateCreated();
79         m_dateLastModified = baseFilter.testDateLastModified();
80         m_dateReleased = baseFilter.testDateReleased();
81         m_dateExpired = baseFilter.testDateExpired();
82         m_flags = baseFilter.testFlags();
83         m_isTouched = baseFilter.testTouched();
84         m_length = baseFilter.testLength();
85         m_siblingCount = baseFilter.testSiblingCount();
86         m_name = baseFilter.testName();
87         m_projectLastModified = baseFilter.testProjectLastModified();
88         m_resourceId = baseFilter.testResourceId();
89         m_state = baseFilter.testState();
90         m_structureId = baseFilter.testStructureId();
91         m_type = baseFilter.testType();
92         m_userCreated = baseFilter.testUserCreated();
93         m_userLastModified = baseFilter.testUserLastModified();
94         m_lockstate = baseFilter.testLock();
95         m_contents = baseFilter.testContents();
96         m_properties = baseFilter.testProperties();
97         m_ace = baseFilter.testAce();
98         m_acl = baseFilter.testAcl();
99     }
100     
101     /**
102      * Disables the access list test.<p>
103      */

104     public void disableAclTest() {
105         m_acl = false;
106     }
107     
108     /**
109      * Disables the access list test.<p>
110      */

111     public void disableAceTest() {
112         m_ace = false;
113     }
114     
115     /**
116      * Disables the Content Id test.<p>
117      */

118     public void disableContentIdTest() {
119         m_contentId = false;
120     }
121     
122     /**
123      * Disables the Contenttest.<p>
124      */

125     public void disableContentsTest() {
126         m_contents = false;
127     }
128     
129     /**
130      * Disables the date created test.<p>
131      */

132     public void disableDateCreatedTest() {
133         m_dateCreated = false;
134     }
135     
136     /**
137      * Disables the date expired test.<p>
138      */

139     public void disableDateExpiredTest() {
140         m_dateExpired = false;
141     }
142     
143     /**
144      * Disables the date last modified test.<p>
145      */

146     public void disableDateLastModifiedTest() {
147         m_dateLastModified = false;
148     }
149     
150     /**
151      * Disables the date released test.<p>
152      */

153     public void disableDateReleasedTest() {
154         m_dateReleased = false;
155     }
156    
157     /**
158      * Disables the flags test.<p>
159      */

160     public void disableFlagsTest() {
161         this.m_flags = false;
162     }
163     
164     /**
165      * Disables the length test.<p>
166      */

167     public void disableLengthTest() {
168         this.m_length = false;
169     }
170     
171     /**
172      * Disables the lockstate test.<p>
173      */

174     public void disableLockTest() {
175         m_lockstate = false;
176     }
177     
178     /**
179      * Disables the name test.<p>
180      */

181     public void disableNameTest() {
182         m_name = false;
183     }
184     
185     /**
186      * Disables the project last modified test.<p>
187      */

188     public void disableProjectLastModifiedTest() {
189         m_projectLastModified = false;
190     }
191     
192     /**
193      * Disables the properties test test.<p>
194      */

195     public void disablePropertiesTest() {
196         m_properties = false;
197     }
198     
199     /**
200      * Disables the resource Id test.<p>
201      */

202     public void disableResourceIdTest() {
203         m_resourceId = false;
204     }
205     
206     /**
207      * Disables the sibling count test.<p>
208      */

209     public void disableSiblingCountTest() {
210         m_siblingCount = false;
211     }
212     
213     /**
214      * Disables the state test.<p>
215      */

216     public void disableStateTest() {
217         this.m_state = false;
218     }
219     
220     /**
221      * Disables the structure Id test.<p>
222      */

223     public void disableStructureIdTest() {
224         m_structureId = false;
225     }
226     
227     /**
228      * Disables the touched test.<p>
229      */

230     public void disableTouchedTest() {
231         m_isTouched = false;
232     }
233     
234     /**
235      * Disables the type test.<p>
236      */

237     public void disableTypeTest() {
238         m_type = false;
239     }
240     
241     /**
242      * Disables the user created test.
243      */

244     public void disableUserCreatedTest() {
245         m_userCreated = false;
246     }
247     
248     /**
249      * Disables the user last modified test.<p>
250      */

251     public void disableUserLastModifiedTest() {
252         m_userLastModified = false;
253     }
254 }
255
Popular Tags