public void setTrustStorePath(String trustStorePath) { if (PropertyCheck.isValidPropertyString(trustStorePath)) { this.trustStorePath = trustStorePath; } }
public void setTrustStorePath(String trustStorePath) { if (PropertyCheck.isValidPropertyString(trustStorePath)) { this.trustStorePath = trustStorePath; } }
/** * Set db.schema.name to be used */ public void setDbSchemaName(String dbSchemaName) { if (PropertyCheck.isValidPropertyString(dbSchemaName)) { this.dbSchemaName = dbSchemaName; } }
public void setTrustStoreType(String trustStoreType) { if (PropertyCheck.isValidPropertyString(trustStoreType)) { this.trustStoreType = trustStoreType; } }
public void setTrustStorePassPhrase(String trustStorePassPhrase) { if (PropertyCheck.isValidPropertyString(trustStorePassPhrase)) { this.trustStorePassPhrase = trustStorePassPhrase; } }
public void setTrustStoreType(String trustStoreType) { if (PropertyCheck.isValidPropertyString(trustStoreType)) { this.trustStoreType = trustStoreType; } }
/** * Set db.schema.name to be used */ public void setDbSchemaName(String dbSchemaName) { if (PropertyCheck.isValidPropertyString(dbSchemaName)) { this.dbSchemaName = dbSchemaName; } }
public void setTrustStorePassPhrase(String trustStorePassPhrase) { if (PropertyCheck.isValidPropertyString(trustStorePassPhrase)) { this.trustStorePassPhrase = trustStorePassPhrase; } }
/** * Set the folder name path <b>relative to the {@link #getFolderPath() path}</b>. * * @param folderPath a folder-name path using the '<b>/</b>' path separator e.g. '<b>IMAP HOME/MAIL-1</b>' */ public void setFolderPath(String folderPath) { if (!PropertyCheck.isValidPropertyString(folderPath)) { throw new IllegalArgumentException("Invalid folder name path for property 'folderPath': " + folderPath); } StringTokenizer tokenizer = new StringTokenizer(folderPath, "/"); StringBuilder pathBuff = new StringBuilder(folderPath.length()); while (tokenizer.hasMoreTokens()) { String folderName = tokenizer.nextToken(); if (folderName.length() == 0) { throw new IllegalArgumentException("Invalid folder name path for property 'folderPath': " + folderPath); } pathBuff.append(folderName); if (tokenizer.hasMoreTokens()) { pathBuff.append('/'); } } this.folderPath = pathBuff.toString(); }
/** * Set the folder name path <b>relative to the {@link #getFolderPath() path}</b>. * * @param folderPath a folder-name path using the '<b>/</b>' path separator e.g. '<b>IMAP HOME/MAIL-1</b>' */ public void setFolderPath(String folderPath) { if (!PropertyCheck.isValidPropertyString(folderPath)) { throw new IllegalArgumentException("Invalid folder name path for property 'folderPath': " + folderPath); } StringTokenizer tokenizer = new StringTokenizer(folderPath, "/"); StringBuilder pathBuff = new StringBuilder(folderPath.length()); while (tokenizer.hasMoreTokens()) { String folderName = tokenizer.nextToken(); if (folderName.length() == 0) { throw new IllegalArgumentException("Invalid folder name path for property 'folderPath': " + folderPath); } pathBuff.append(folderName); if (tokenizer.hasMoreTokens()) { pathBuff.append('/'); } } this.folderPath = pathBuff.toString(); }
@Override public void setUsername(String userName) { if (PropertyCheck.isValidPropertyString(userName)) { super.setUsername(userName); } else { super.setUsername(null); } }
private void parseProperties() { String userPropertyValue = userFilterPattern; if (!PropertyCheck.isValidPropertyString(userPropertyValue)) { return; } String[] arrValues = userPropertyValue.split(REG_EXP_SEPARATOR); for (String prop : arrValues) { boolean includeExp = prop.charAt(0) != NOT; if (!includeExp || prop.startsWith(ESCAPED_NOT)) { prop = prop.substring(1); } try { listOfPairValue.add(new Pair<Boolean, Pattern>(includeExp, Pattern.compile(prop))); } catch (PatternSyntaxException ex) { throw new AlfrescoRuntimeException("The 'audit.filter.alfresco-access.transaction.user' property parse exception; see property 'audit.filter.alfresco-access.transaction.user'.", ex); } } }
@Override public void setUsername(String userName) { if (PropertyCheck.isValidPropertyString(userName)) { super.setUsername(userName); } else { super.setUsername(null); } }
@Override public void setPassword(String password) { if (PropertyCheck.isValidPropertyString(password)) { super.setPassword(password); } else { super.setPassword(null); } } }
@Override public void setPassword(String password) { if (PropertyCheck.isValidPropertyString(password)) { super.setPassword(password); } else { super.setPassword(null); } } }
private void parseProperties() { String userPropertyValue = userFilterPattern; if (!PropertyCheck.isValidPropertyString(userPropertyValue)) { return; } String[] arrValues = userPropertyValue.split(REG_EXP_SEPARATOR); for (String prop : arrValues) { boolean includeExp = prop.charAt(0) != NOT; if (!includeExp || prop.startsWith(ESCAPED_NOT)) { prop = prop.substring(1); } try { listOfPairValue.add(new Pair<Boolean, Pattern>(includeExp, Pattern.compile(prop))); } catch (PatternSyntaxException ex) { throw new AlfrescoRuntimeException("The 'audit.filter.alfresco-access.transaction.user' property parse exception; see property 'audit.filter.alfresco-access.transaction.user'.", ex); } } }
public void init() { if (!PropertyCheck.isValidPropertyString(getLocation())) { setLocation(null); } if (!PropertyCheck.isValidPropertyString(getProvider())) { setProvider(null); } if (!PropertyCheck.isValidPropertyString(getType())) { setType(null); } if (!PropertyCheck.isValidPropertyString(getKeyMetaDataFileLocation())) { setKeyMetaDataFileLocation(null); } }
public void init() { if (!PropertyCheck.isValidPropertyString(getLocation())) { setLocation(null); } if (!PropertyCheck.isValidPropertyString(getProvider())) { setProvider(null); } if (!PropertyCheck.isValidPropertyString(getType())) { setType(null); } if (!PropertyCheck.isValidPropertyString(getKeyMetaDataFileLocation())) { setKeyMetaDataFileLocation(null); } }
if (!PropertyCheck.isValidPropertyString(dialectBaseClass)) if (!PropertyCheck.isValidPropertyString(dialectClass))
@Before public void setUp() throws Exception { failCount = new MutableInt(0); transactionService = ctx.getBean("transactionComponent", TransactionService.class); properties = ctx.getBean("global-properties", Properties.class); String dbPoolMaxProp = properties.getProperty("db.pool.max"); if (PropertyCheck.isValidPropertyString(dbPoolMaxProp)) { dbPoolMax = Integer.parseInt(dbPoolMaxProp); } else { throw new IllegalArgumentException("The db.pool.max property is not valid."); } String dbPoolWaitMaxProp = properties.getProperty("db.pool.wait.max"); if (PropertyCheck.isValidPropertyString(dbPoolWaitMaxProp)) { dbPoolWaitMax = Integer.parseInt(dbPoolWaitMaxProp); } else { throw new IllegalArgumentException("The db.pool.wait.max property is not valid."); } dbPoolWaitMax = dbPoolWaitMax == -1 ? 100 : dbPoolWaitMax; }