Hi Swapna, Passwords are stored in obfuscated form. There's a different method call to set passwords accordingly, which performs the obfuscation. See org.apache.manifoldcf.core.interfaces.ConfigParams.setObfuscatedParameter(String key, String value).
Thanks Karl On Mon, Jan 16, 2012 at 6:23 AM, Swapna Vuppala <swapna.kollip...@gmail.com> wrote: > Hi Karl, > > I have looked at the examples you suggested and they have been very helpful. > Am using the API to get/put different jobs/repository connections etc and > everything is working fine. > > But I have an issue when creating a Windows Share repository connection. Am > using some code something like below: > > Configuration connectionConfiguration = new Configuration(); > addParameterNode(connectionConfiguration,"Server",serverName); > addParameterNode(connectionConfiguration,"Domain/Realm","GLOBAL"); > addParameterNode(connectionConfiguration,"User Name",userName); > addParameterNode(connectionConfiguration,"Password",password); > > Then, am using this connectionConfiguration to create the repository > connection. The connection is getting created without any issue, but when I > check the status using crawler UI, it shows that the connection is not > working. When I edit the connection (from crawler UI) to see the details, > the password is shown as empty. Can you please tell me how to create a > Windows Share repository connection using this API such that it works by > using the credentials that are sent as arguments ? > > Thanks and Regards, > Swapna. > > On Thu, Jan 5, 2012 at 11:43 AM, Swapna Vuppala <swapna.kollip...@gmail.com> > wrote: >> >> Thanks Karl, I have started looking into the API Service. Will get back to >> you with more specific questions once into it. >> >> Thanks and Regards, >> Swapna. >> >> >> On Tue, Jan 3, 2012 at 7:47 PM, daddy...@gmail.com <daddy...@gmail.com> >> wrote: >>> >>> The preferred way to do this is via the API Service. See Chapter 3 of >>> ManifoldCF in Action. There are examples at >>> http://manifoldcfinaction.googlecode.com/svnroot/trunk from the book. >>> >>> Karl >>> >>> Sent from my Nokia phone >>> -----Original Message----- >>> From: Swapna Vuppala >>> Sent: 03/01/2012, 6:55 AM >>> To: connectors-user@incubator.apache.org >>> Subject: Programmatic Interaction with ManifoldCF >>> >>> >>> Hi, >>> >>> Am looking for the best way to interact with ManifoldCF programmatically >>> for my purposes. My target is to develop a small tool (command-line) >>> which >>> can read a XML file to get the list of locations that have to be crawled, >>> and create repository connections and jobs that use the created >>> repository >>> connections, with paths that have been read from the XML file. >>> >>> If I write a Java program for this, which API should I be using ? >>> Earlier, >>> I have looked at scripts that can be run to create repository >>> connections, >>> jobs etc . Should I run such scripts from my Java program or is there a >>> better way to approach this ? Or is it possible to use the classes of >>> ManifoldCF in my program to achieve this ? If so, how ? >>> >>> Can you please direct me to the ideal approach ? >>> >>> Thanks and Regards, >>> Swapna. >> >> >