Changeset 1446
- Timestamp:
- 10/23/06 19:51:51 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wikioutputstreamplugin/anyrelease/src/main/java/br/eng/leal/trac/WikiPageOutputStream.java
r1410 r1446 49 49 50 50 /** 51 * Or someone override the properties, thus disabling its use 52 */ 53 private static final RuntimeException DISABLED_EXCEPTION = new IllegalArgumentException( 54 "WikiPageOutputStream class is Disabled for Construction!"); 55 56 /** 51 57 * PROPERTY KEY CONSTANT FOR: Remote Trac User 52 58 */ … … 83 89 */ 84 90 private static final String REMOTE_TRAC_USER_KEY = "remote.trac.user.key"; 91 92 /** 93 * PROPERTY KEY FOR: OVERRIDE WikiPageOutputStream, thus disabling 94 * construction; 95 */ 96 private static final String WIKIOUTPUTSTREAM_DISABLED = "wiki.disabled"; 85 97 86 98 /** … … 143 155 * 144 156 * <pre> 145 * cat > tmpfilename && trac-admin TRACDB wiki import page tmpFile && rm -f tmpfilename157 * cat > tmpfilename && trac-admin TRACDB wiki import page tmpFile && rm -f tmpfilename 146 158 * </pre> 147 159 * … … 205 217 String keyFile = getProperty(properties, REMOTE_TRAC_USER_KEY, 206 218 KEYFILE_MISSING_ILLEGAL_ARGUMENT_EXCEPTION); 219 Boolean disabled = Boolean.parseBoolean(getProperty(properties, 220 WIKIOUTPUTSTREAM_DISABLED, "false")); 221 222 if (null != disabled) 223 if (disabled.booleanValue()) 224 throw DISABLED_EXCEPTION; 207 225 208 226 init(page, remoteUser, remoteHost, remotePort, tracDb, tracAdmin, … … 232 250 * 233 251 * <pre> 234 * Remote User@Remote Host:Remote Port252 * Remote User@Remote Host:Remote Port 235 253 * </pre> 236 254 * … … 271 289 * 272 290 * <pre> 273 * Remote User@Remote Host:Remote Port291 * Remote User@Remote Host:Remote Port 274 292 * </pre> 275 293 *
