public String getReferencedComponentId() { return referencedComponent.componentInstanceId.getStringValue(); }
private Map<String, String> _getQueryParametersMap() { Map<String, String> parameters = new HashMap<>(); parameters.put( JSONLDConstants.PER_PAGE, _liferayConnectionProperties.itemsPerPage.getStringValue()); return parameters; }
/** * Return identifier of referenced connection component. * * @return referenced connection component's ID or {@code null} */ public String getReferencedComponentId() { return referencedComponent.componentInstanceId.getStringValue(); }
/** * Return identifier of referenced connection component. * * @return referenced connection component's ID or {@code null} */ public String getReferencedComponentId() { return referencedComponent.componentInstanceId.getStringValue(); }
private boolean isRequiredFieldRight() { return !isEmpty(url.getStringValue()) && !isEmpty(login.getStringValue()) && !isEmpty(pass.getStringValue()) && !isEmpty(dataSetName.getStringValue()) && !isEmpty(dataSetId.getStringValue()); }
public FilterRowPredicate(FilterRowProperties properties) { this.properties = properties; // Remove any filter criteria that have not been initialized by the user. These elements are ignored. List<FilterRowCriteriaProperties> filters = this.properties.filters.subProperties; this.properties.filters.subProperties = new ArrayList<>(); for (FilterRowCriteriaProperties criteria : filters) { if (!StringUtils.isEmpty(criteria.columnName.getStringValue()) || !StringUtils.isEmpty(criteria.value.getStringValue())) { this.properties.filters.subProperties.add(criteria); } } }
public FilterRowPredicate(FilterRowProperties properties) { this.properties = properties; // Remove any filter criteria that have not been initialized by the user. These elements are ignored. List<FilterRowCriteriaProperties> filters = this.properties.filters.subProperties; this.properties.filters.subProperties = new ArrayList<>(); for (FilterRowCriteriaProperties criteria : filters) { if (!StringUtils.isEmpty(criteria.columnName.getStringValue()) || !StringUtils.isEmpty(criteria.value.getStringValue())) { this.properties.filters.subProperties.add(criteria); } } }
protected List<String> getFieldNames(Property schema) { String sJson = schema.getStringValue(); Schema s = new Schema.Parser().parse(sJson); List<String> fieldNames = new ArrayList<>(); for (Schema.Field f : s.getFields()) { fieldNames.add(f.name()); } return fieldNames; }
protected List<String> getFieldNames(Property schema) { String sJson = schema.getStringValue(); Schema s = new Schema.Parser().parse(sJson); List<String> fieldNames = new ArrayList<>(); for (Schema.Field f : s.getFields()) { fieldNames.add(f.name()); } return fieldNames; }
protected List<String> getFieldNames(Property schema) { String sJson = schema.getStringValue(); Schema s = new Schema.Parser().parse(sJson); List<String> fieldNames = new ArrayList<>(); for (Schema.Field f : s.getFields()) { fieldNames.add(f.name()); } return fieldNames; }
public static boolean useExistedConnection(ComponentReferenceProperties<TJDBCConnectionProperties> referencedComponent) { String refComponentIdValue = referencedComponent.componentInstanceId.getStringValue(); ReferenceType referenceType = referencedComponent.referenceType.getValue(); boolean useOtherConnection = refComponentIdValue != null && (refComponentIdValue.startsWith(TJDBCConnectionDefinition.COMPONENT_NAME) || (referenceType != null && (referenceType == ReferenceType.COMPONENT_INSTANCE))); return useOtherConnection; }
@Override public void close() throws IOException { if (!(inputRuntime.fileNameOrStream instanceof InputStream)) { if (csvReader != null) { csvReader.close(); } } LOGGER.debug("close: " + properties.fileName.getStringValue()); }
private boolean isRequiredPropertiesMissed() { MarkLogicConnectionProperties connection = bulkLoadProperties.getConnection(); return connection.host.getStringValue().isEmpty() || connection.port.getValue() == null || connection.database .getStringValue().isEmpty() || connection.username.getStringValue().isEmpty() || connection.password .getStringValue().isEmpty() || bulkLoadProperties.loadFolder.getStringValue().isEmpty(); } }
public RuntimeProperties getRuntimeProperties() { RuntimeProperties runtimeProperties = new RuntimeProperties(); runtimeProperties.setUrl(url.getStringValue()); runtimeProperties.setLogin(login.getStringValue()); runtimeProperties.setPass(pass.getStringValue()); runtimeProperties.setDataSetName(dataSetName.getStringValue()); runtimeProperties.setDataSetId(dataSetId.getStringValue()); runtimeProperties.setSchema(schema.schema.getStringValue()); return runtimeProperties; } }
private boolean isRequiredPropertiesMissed() { MarkLogicConnectionProperties connection = bulkLoadProperties.getConnection(); return connection.host.getStringValue().isEmpty() || connection.port.getValue() == null || connection.database .getStringValue().isEmpty() || connection.username.getStringValue().isEmpty() || connection.password .getStringValue().isEmpty() || bulkLoadProperties.loadFolder.getStringValue().isEmpty(); } }
private X509Key x509Key() { return X509Key.builder()// .keyStorePath(StringUtils.strip(oauth2Prop.keyStore.getStringValue(), "\""))// .keyStorePassword(oauth2Prop.keyStorePassword.getStringValue())// .certificateAlias(oauth2Prop.certificateAlias.getStringValue())// certificate alias .build(); }
private X509Key x509Key() { return X509Key.builder()// .keyStorePath(StringUtils.strip(oauth2Prop.keyStore.getStringValue(), "\""))// .keyStorePassword(oauth2Prop.keyStorePassword.getStringValue())// .certificateAlias(oauth2Prop.certificateAlias.getStringValue())// certificate alias .build(); }
private ClaimsSet jwtClaims() { final long now = System.currentTimeMillis() / 1000; return new ClaimsSet.Builder()// .id(UUID.randomUUID().toString())// .issuer(oauth2Prop.issuer.getStringValue())// consumer id .subject(oauth2Prop.subject.getStringValue())// user id .audience("https://login.salesforce.com")// .issueTime(now)// .notBeforeTime(now)// .expirationTime(now + oauth2Prop.expirationTime.getValue())// .build(); }
@Override public void open(String uId) throws IOException { this.result = new Result(uId); connectionClient = writeOperation.getSink().connect(container); rejectSchema = properties.schemaReject.schema.getValue(); docIdPrefix = properties.docIdPrefix.getStringValue(); docType = properties.docType.getValue(); initializeDocManager(); }
@Override public void open(String uId) throws IOException { this.result = new Result(uId); connectionClient = writeOperation.getSink().connect(container); rejectSchema = properties.schemaReject.schema.getValue(); docIdPrefix = properties.docIdPrefix.getStringValue(); docType = properties.docType.getValue(); initializeDocManager(); }