private String getArgumentsAsString(IOpenClass[] argumentTypes) { String result = StringUtils.join(argumentTypes, ","); if (StringUtils.isNotBlank(result)) { return result; } return NO_PARAMETERS; }
public String getPath() { if (StringUtils.isEmpty(path)) { this.getDefaultRepositoryConfiguration().setType(this.getType()); return this.getDefaultRepositoryConfiguration().getPath(); } return path; }
public boolean isInputParamValid(RepositoryConfiguration prodConfig) { try { RepositoryValidators.validate(prodConfig, getProductionRepositoryConfigurations()); if (this.secure) { if (StringUtils.isEmpty(this.login) || StringUtils.isEmpty(this.password)) { throw new RepositoryValidationException( "Invalid login or password. Please, check login and password"); } } return true; } catch (RepositoryValidationException e) { this.errorMessage = e.getMessage(); return false; } }
private boolean dimensionalPropertyPresented(IOpenMethod m) { List<TablePropertyDefinition> dimensionalPropertiesDef = TablePropertyDefinitionUtils.getDimensionalTableProperties(); ITableProperties propertiesFromMethod = PropertiesHelper.getTableProperties(m); for (TablePropertyDefinition dimensionProperty : dimensionalPropertiesDef) { String propertyValue = propertiesFromMethod.getPropertyValueAsString(dimensionProperty.getName()); if (StringUtils.isNotEmpty(propertyValue)) { return true; } } return false; }