private void initCacheId() { String username = getUsername(); String endpoint = getAuthEndpoint(); if (username != null && endpoint != null) { this.cacheId = username + endpoint; } else { this.cacheId = null; } }
private void initCacheId() { String username = getUsername(); String endpoint = getAuthEndpoint(); if (username != null && endpoint != null) { this.cacheId = username + endpoint; } else { this.cacheId = null; } }
private void validateConnectorConfig(ForceConnectorConfig configToValidate) throws ConnectionException { if (configToValidate.getSessionId() == null && configToValidate.getAuthEndpoint() == null) { throw new ConnectionException("ForceConnectorConfig must have an AuthEndpoint"); } if (configToValidate.getSessionId() == null && configToValidate.getUsername() == null) { throw new ConnectionException("ForceConnectorConfig must have a Username"); } }
private void validateConnectorConfig(ForceConnectorConfig configToValidate) throws ConnectionException { if (configToValidate.getSessionId() == null && configToValidate.getAuthEndpoint() == null) { throw new ConnectionException("ForceConnectorConfig must have an AuthEndpoint"); } if (configToValidate.getSessionId() == null && configToValidate.getUsername() == null) { throw new ConnectionException("ForceConnectorConfig must have a Username"); } }