*
* @return Instance of {@link SharepointConnector}
*/
public static SharepointConnector createConnectorInstance()
throws RepositoryException {
SharepointConnector connector = new SharepointConnector();
connector.setClientFactory(clientFactory);
connector.setSharepointUrl(TestConfiguration.sharepointUrl);
connector.setDomain(TestConfiguration.domain);
connector.setUsername(TestConfiguration.username);
connector.setPassword(TestConfiguration.password);
connector.setGoogleConnectorWorkDir(TestConfiguration.googleConnectorWorkDir);
connector.setGoogleGlobalNamespace(TestConfiguration.googleGlobalNamespace);
connector.setGoogleLocalNamespace(TestConfiguration.googleLocalNamespace);
connector.setIncludedURls(TestConfiguration.includedURls);
connector.setExcludedURls(TestConfiguration.excludedURls);
connector.setMySiteBaseURL(TestConfiguration.mySiteBaseURL);
connector.setAliasMap(TestConfiguration.aliasMap);
connector.setAuthorization(authorization);
connector.setUseSPSearchVisibility(TestConfiguration.useSPSearchVisibility);
connector.setIncluded_metadata(TestConfiguration.whiteList);
connector.setExcluded_metadata(TestConfiguration.blackList);
connector.setFQDNConversion(true);
connector.setPushAcls(false);
connector.setCacheRefreshInterval("7200");
connector.setInitialCacheSize("1000");
connector.setPortNumber("389");
connector.setLdapServerHostAddress(ldapServerHostAddress);
connector.setAuthenticationType("simple");
connector.setConnectMethod("standard");
connector.setSearchBase("DC=gdc-psl,DC=net");
connector.setLdapConnectiionSettings(TestConfiguration.getLdapConnetionSettings());
connector.setSocialOption(TestConfiguration.getSocialOption());
return connector;
}