1 31 32 package org.opencms.test; 33 34 41 public class OpenCmsTestResourceConfigurableFilter extends OpenCmsTestResourceFilter { 42 43 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 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 104 public void disableAclTest() { 105 m_acl = false; 106 } 107 108 111 public void disableAceTest() { 112 m_ace = false; 113 } 114 115 118 public void disableContentIdTest() { 119 m_contentId = false; 120 } 121 122 125 public void disableContentsTest() { 126 m_contents = false; 127 } 128 129 132 public void disableDateCreatedTest() { 133 m_dateCreated = false; 134 } 135 136 139 public void disableDateExpiredTest() { 140 m_dateExpired = false; 141 } 142 143 146 public void disableDateLastModifiedTest() { 147 m_dateLastModified = false; 148 } 149 150 153 public void disableDateReleasedTest() { 154 m_dateReleased = false; 155 } 156 157 160 public void disableFlagsTest() { 161 this.m_flags = false; 162 } 163 164 167 public void disableLengthTest() { 168 this.m_length = false; 169 } 170 171 174 public void disableLockTest() { 175 m_lockstate = false; 176 } 177 178 181 public void disableNameTest() { 182 m_name = false; 183 } 184 185 188 public void disableProjectLastModifiedTest() { 189 m_projectLastModified = false; 190 } 191 192 195 public void disablePropertiesTest() { 196 m_properties = false; 197 } 198 199 202 public void disableResourceIdTest() { 203 m_resourceId = false; 204 } 205 206 209 public void disableSiblingCountTest() { 210 m_siblingCount = false; 211 } 212 213 216 public void disableStateTest() { 217 this.m_state = false; 218 } 219 220 223 public void disableStructureIdTest() { 224 m_structureId = false; 225 } 226 227 230 public void disableTouchedTest() { 231 m_isTouched = false; 232 } 233 234 237 public void disableTypeTest() { 238 m_type = false; 239 } 240 241 244 public void disableUserCreatedTest() { 245 m_userCreated = false; 246 } 247 248 251 public void disableUserLastModifiedTest() { 252 m_userLastModified = false; 253 } 254 } 255 | Popular Tags |