Sunday, June 15, 2014

Removing entries from the index

You can remove certain object types, or objects that meet other criteria such as dates, from the index.

You can execute a DQL query to get object IDs of the documents that you wish to delete from the index. Save the list of object IDs in a text file.
1. Navigate to xplore_home/dsearch/xhive/admin.
2. Open deletedocs.properties in a text editor.
3. Make sure that the host and port values correspond to your environment.
4. Set the value of dss_domain to the xPlore domain from which you wish to delete indexed documents.

  NOTE : dss_domain:<Repo-Name>

5. Change the value of the key file_contains_id_to_delete to the path to your object IDs. Alternatively, you can list the object IDs, separated by commas, as the value of the key ids_to_delete.
6. On Windows, run deleteDocs.bat; on Linux, run deleteDocs.sh.

The deletedocs utility records activity in a log in xplore_home/dsearch/xhive/admin/logs/deleteDocs.log

If you already know the object ID and only have a few objects to delete, you can either create a simple ids.txt file with that single entry, or you can put that object ID in the deletedocs.properties under the ids_to_delete key. This key is commented out by default, so just remove the # and put in the object id:

ids_to_delete=090071eb80bf4c60

However, if the document has been deleted from the repository, it should automatically be removed from the index. It doesn’t always happen immediately, especially if there’s a large amount of items in the queue.

Where possible, verify above solution via test environment prior to applying to production.

Another possibility is that the event for dm_destroy has been removed. Using DA, run the following DQL:

select * from dmi_registry where user_name like 'dm_fulltext_index_use%'

You should see a dm_destroy for type dm_sysobject by default.

If you are only selecting indexing for custom type you should have a destroy listed for it.

2601164d80002102 dm_fulltext_index_user 0301164d8000016e dm_readonlysave 0 0 1 0 0000000000000000 1 0
2601164d80000501 dm_fulltext_index_user 0301164d80000101 dm_destroy 0 0 0 0 0000000000000000 1 0
2601164d80000502 dm_fulltext_index_user 0301164d80000101 dm_saveasnew 0 0 0 0 0000000000000000 1 0
2601164d80000503 dm_fulltext_index_user 0301164d80000104 dm_save 0 0 0 0 0000000000000000 1 0
2601164d80000504 dm_fulltext_index_user 0301164d80000104 dm_destroy 0 0 0 0 0000000000000000 1 0
2601164d80000505 dm_fulltext_index_user 0301164d80000105 dm_save 0 0 0 0 0000000000000000 1 0
2601164d80000506 dm_fulltext_index_user 0301164d80000105 dm_readonlysave 0 0 0 0 0000000000000000 1 0
2601164d80000507 dm_fulltext_index_user 0301164d80000105 dm_checkin 0 0 0 0 0000000000000000 1 0
2601164d80000508 dm_fulltext_index_user 0301164d80000105 dm_destroy 0 0 0 0 0000000000000000 1 0
2601164d80000509 dm_fulltext_index_user 0301164d80000105 dm_move_content 0 0 0 0 0000000000000000 1 0

The 03 ids are for the dm_type objects that correspond with the event. If there are no dm_destroy events, it may explain why the object hasn’t been removed from the index.


NOTE

If you either run the ftintegrity utility on the xPlore server or run the dm_FTStateOfIndex job you will find they generate a list of objectIds which are only in the index and not in the repository.

we can find the list of the report  :/home/dmadmin/dctm65sp2/dba/log/00021e3c/sysadmin/FTStateOfIndexDoc.txt
ID : /home/dmadmin/dctm65sp2/dba/log/00021e3c/sysadmin/ObjectId-indexOnly.txt

While performing Webtop/EPFM search or advance you may see the error "[DM_API_E_EXIST]error: "Document/object specified by xxxxxxxxxxxxxxxx does not exist." "

An error has occurred.
[DM_API_E_EXIST]error: "Document/object specified by xxxxxxxxxxxxxxxx does not exist."
After closing this window, press the Refresh or Reload button on your browser to continue.

Stack Trace:
DfIdNotFoundException:: THREAD: [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'; MSG: [DM_API_E_EXIST]error: "Document/object specified by xxxxxxxxxxxxxxxx does not exist."; ERRORCODE: 100; NEXT: null
at com.documentum.fc.client.impl.docbase.DocbaseExceptionMapper.newException(DocbaseExceptionMapper.java:49)
at com.documentum.fc.client.impl.connection.docbase.MessageEntry.getException(MessageEntry.java:39)
at com.documentum.fc.client.impl.connection.docbase.DocbaseMessageManager.getException(DocbaseMessageManager.java:134)
at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.checkForMessages(NetwiseDocbaseRpcClient.java:191)
at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.applyForObject(NetwiseDocbaseRpcClient.java:460)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection$8.evaluate(DocbaseConnection.java:948)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.evaluateRpc(DocbaseConnection.java:751) 

Cause
When the server config object created by cfs installation problem is destroyed or deleted from the Content Server because the cfs installation program fail to properly install the distributed or high availability environment or the cfs installation program got struck half way through.

Resolution
To resolve this problem the acs config object pointing to that server config object should be deleted from the api by logging in to Content Server machine.
 Follow the below steps to resolve this issue.
API>?,c,select * from dm_acs_config
(copy the acs config object ID pointing to deleted server config object)
API>retrieve,c,dm_acs_config where r_object_id='xxxxxxxxxxxxxxxx'
API>dump,c,l

Look for the svr_config_id It should point to 0000000000000000, since the server config objest is deleted
API>set,c,l,svr_config_id
SET> (Leave this empty and hit enter)
API>save,c,l
API>commit,c
API>reinit,c 

Tuesday, May 27, 2014

Change in the content storage area

The dm_mount_point describes a mounted directory in a Content Server installation.   Since you are in windows you may not be using any (and since you are just adding a new filestore that is a local looking drive you should not need to modify this).   Do a DQL> select r_object_id, object_name, win_preferred_alias,file_system_path from dm_mount_point

If your data folder is not here then you should not have to worry about modifying dm_mount_point  (this also is important when you change hosts, as host_name is an attribute of dm_mount_point).





1) First copy the "\\172.16.1.54\Documentum\data\EAGLE\content_storage_01" 
to target directory i.e."G: \Documentum\data\EAGLE\content_storage_01"

2)execute the below mentioned query in SQL
UPDATE dm_location_sp SET file_system_path =
'G: \Documentum\data\EAGLE\content_storage_01' WHERE object_name='storage_01' AND file_system_path ='\\172.16.1.54\Documentum\data\EAGLE\content_storage_01';

Sunday, May 11, 2014

MOSS interview

1.What is MOSS? Explain its features.
MOSS stands for Microsft Office Share Point Server. MOSS is a portal based platform for complete management of documents & web services..................
Read answer
2.Explain the Six Pillars of MOSS 2007, i.e. Collaboration, Portal, Enterprise Search, Web & Enterprise Content Management, Forms Driven Business Process, Business Intelligence
Six pillars of MOSS2007: Collaboration: SharePoint allows for collaboration by integrating workspaces, tasks, forums, surveys, blogs, RSS feeds and Wikis...............
Read answer
3.Discuss the architecture of MOSS.
Architecture of MOSS: The diagram below depicts the Architecture of MOSS. Office Sharepoint Server: This layer manages excel services, infopath forms services, project server, enterprise search, policy, single sign on, business data catalogs................
Read answer
4.Explain types of SharePoint Sites.
Types of sharepoint sites: Wiki: This is usually where everyone is allowed to add/change content for a common knowledgebase..............
Read answer
5.What are the main benefits of Office SharePoint Server 2007?
Advantages: Sharepoint provides simple user experience because of simple and consistent interface...............
Read answer
6.Explain sharepoint master pages and its features.
Master pages provide a base look and feel and standard behaviors that are needed for all of the pages in your site..............
Read answer
7.Describe page layouts of MOSS.
Page layout defines the look and feel of a Web page. Content for the page is stored in fields on the page. When you view or edit a page, the content is displayed in the field controls.............
Read answer
8.SharePoint has two ways to author content, i.e. Smart Client Authoring and Browser-based Authoring. Explain them
Ways to author content: Browser-based authoring: Content creators and editors work directly in the web browsers through MOSS based features like Page editing toolbar, HTML editor toolbar............
Read answer
9.What is SharePoint Workflow? Explain its purposes
Workflows are implementation of business processes allowing people to collaborate on documents through various project tasks assigned to individuals.............
Read answer
10.Explain how to implement workflow in SharePoint.
Steps to implement workflows in MOSS: Add workflow to a document library, routing document to different people for approval ..............
Read answer
11.What are the ways to initiate the workflow?
Ways to initiate a workflow: Once a workflow has been linked to a document, one can start the workflow by selecting the workflow that you want from the list of workflows............
Read answer
12.Two types of workflow supported, i.e. Sequential, State Machine. Explain them
Types of workflow supported: Sequential: Sequential workflow as the name suggests simply depicts the fact that there is a collection of tasks which need be completed in a sequence one by one...............
Read answer
13.Explain the components that Workflow Architecture contains.
Components of workflow architecture: One can create workflows using Visual Studio2010 workflow designer. Every single workflow is compiled into its own dll..............
Read answer
14.What are the types of input forms that can be created for a workflow? Explain them
MOSS has the capability for a workflow participant to fill an initiation form to start a workflow. The initiation form can have fields that support:.............
Read answer
15.What are ways to create input forms for workflow?
MOSS has the capability for a workflow participant to fill an initiation form to start a workflow. The initiation form can have fields that support:............
Read answer
16.Differentiate between method activity and event activity in workflow.
In Moss, a method activity is one that performs an action, e.g.: creating/updating a task............
Read answer
17.What is System Center Data Protection Manager 2007 (DPM)? Explain its purpose in MOSS
DPM is designed for the Sharepoint Administrator using a variety of wizards and workflows to help ensure protection of data. It provides the following benefits in terms of MOSS:.............
Read answer
18.How does DPM for MOSS Work?
Data Protection Manager provides the ability to backup an entire sharepoint farm including the SQL Server databases, metadata, farm configuration files and indexes for federated search...............
Read answer
19.Differentiate between Microsoft Office SharePoint Server 2007 for Internet sites and Microsoft Office SharePoint Server 2007.
Difference between MOSS and MOSS for Internet sites: MOSS - Content, information, and applications are meant to be used by internal people/employees...............
Read answer
20.How do I invite users to join a Windows SharePoint Services Site? Is the site secure?
Sharepoint based websites can be configured to be password protected to restrict access to users. Only registered users can then access it and an invitation to those users is sent via email...............
Read answer
21.How can I make my site public? By default, all sites are created private.
To make a sharepoint website public, enable anonymous access for the entire site. One can then pass on the url for the website through emails etc and allow public users to access the sharepoint website..............
Read answer
22.Explain the advanced features of MOSS 2007.
Advanced features of MOSS 2007: My site personal site: Provides users an opportunity to aggregate information into “for me, by me, about me”. .............
Read answer
23.What are the features of the new Content management in Office SharePoint 2007?
MOSS provides enhanced document management including document authoring, business document processing, web content management and publishing...............
Read answer
24.Does a SharePoint Web site include search functionality? Write the features of the search component of Office SharePoint Server 2007?
The Sharepoint Team Services provides an efficient text based search capability to find documents and information................
Read answer
25.How is SharePoint Portal Server different from the Site Server?
The Sharepoint Site Server has search capabilities which are more advanced using SharePoint. It uses digital dashboard technology, which provides a nice interface for creating web parts.............
Read answer
26.How do the sub sites work in SharePoint?
Sharepoint Websites exist in a hierarchy. At the top of the hierarchy is a Top-Level website. There can then be multiple sub sites under this top-level website and sub sites under sub sites..................
Read answer
27.Differentiate between a site and a web.
A collection of sites along with the top level site is known as a single site collection in Sharepoint. While creating a new Web Application, one has to follow creating a site collection to specify the content of the web application....................
Read answer
28.What are Application Pages in SharePoint?
One can create custom application pages to add GUI components in Sharepoint. Unlike site pages, an application page is deployed only once per Webserver.................
Read answer
29.Which is Better a UserControl or WebPart? Explain why
Comparison of UserControl and WebPart Advantages of UserControl:..............
Read answer
30.Explain the Security methods(Authentication methods) available in sharepoint
Authentication methods supported by Sharepoint: Classic-mode authentication methods - Anonymous, Basic, Digest..................
Read answer
31.What is the WebPartManager sealed class? What is its purpose?
The WebPartManager sealed class manages everything in context of a WebPart page, i.e. WebParts controls, events..............
Read answer
32.Explain the role of AllowUnsafeUpdates.
AllowUnsafeUpdates allows updates on a GET request. It basically allows code to bypass security validation while making..............
Read answer
33.Explain the role of RunWithElevatedPrivileges.
RunWithElevatedPrivileges executes code as the System account. This basically then means that the code that you supply...............
Read answer
34.Explain the role of SPWeb.EnsureUser method.
SPWeb.EnsureUser method validates whether the specified login name belongs to a valid user of the website or not............
Read answer
35.What is a SPSite and SPWeb object, and what is the difference between each of the objects?
Difference between SPSite and SPWeb object: SPSite - The SPSite object represents a collection of sites, i.e. Site Collection, a top level site and all its sub sites.................
Read answer
36.Explain the role of SPWebApplication object.
The SPWebApplication class consists of various methods and properties to perform various manipulations on web applications. i.e. Perform backups, add content databases............
Read answer
37.How do you return SharePoint List items using SharePoint web services?
Create a reference to the SharePoint Lists.asmx web service by appending “/_vti_bin/Lists.asmx” to the end of a site name...............
Read answer
38.What is CAML? Explain its usage.
CAML: - Collaborative Application Markup Language. ................
Read answer
39.What is impersonation, and when would you use impersonation?
Impersonation is the concept of providing functionality in the context of a different identity, for example letting a user access the system with anonymous access................
Read answer
40.What are WebPart properties, and what are some of the attributes you see when declaring WebPart properties in code?
WebPart properties are just like ASP.NET control properties, they are used to specify the characteristics of a webpart and by specifying the attributes with the desired values by a user..............
Read answer
41.What are ClassResources? How do you reference and deploy resources with an ASP.NET 2.0 WebPart?
ClassResources are defined in the SharePoint solution file. It is a helpful directory to use in order to deploy custom images...............
Read answer
42.What is a SharePoint Solution File? How does it differ from WebPart .cab files in legacy development? What does it contain?
A SharePoint solution file is compressed file that contains custom components. It is suffixed with a .wsp extension that aids in deployment...............
Read answer
43.What is a .ddf file and Explain its purposes
A .ddf file: Data Directive File. It contains the metadata like the source files and their destination locations. The .ddf file is passed as a parameter..............
Read answer
44.What are event receivers?
Event receivers allow responding to events as they occur within SharePoint, such as adding an item or deleting an item.............
Read answer
45.When would you use an event receiver?
Event receivers respond to events, thus used for something as canceling an action, e.g. deleting a document library by using the Cancel property.............
Read answer
46.Difference between an asynchronous and synchronous event receivers
An asynchronous event takes place after an action has taken place, and a synchronous event occurs before the action has take place...................
Read answer
47.Differentiate between Synchronous & Asynchronous events.
Synchronous event are the ones in which the caller needs to pause to wait for a response. The fact that it waits for a response means that the call is a “blocking” call to the event handler...............
Read answer

Sunday, April 20, 2014

Mail Notifications

To receive email notification in your mail box you need to set verb for the following methods:

1. Method Name : mail >> Verb : .\mail.exe
2. Method Name : dm_event_sender >> Verb : .\dmbasic.exe -f.\dm_html_sender.ebs -eMail
3. Method Name : smail >> Verb : .\smail.exe -server <your smtp server ip/name>

For setting the verb you need to login thru DA.

Monday, April 7, 2014

Deep Export from Documentum to desktop

import java.io.File;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import com.documentum.com.DfClientX;
import com.documentum.com.IDfClientX;
import com.documentum.fc.client.DfQuery;
import com.documentum.fc.client.IDfClient;
import com.documentum.fc.client.IDfCollection;
import com.documentum.fc.client.IDfDocument;
import com.documentum.fc.client.IDfQuery;
import com.documentum.fc.client.IDfSession;
import com.documentum.fc.client.IDfSessionManager;
import com.documentum.fc.common.DfException;
import com.documentum.fc.common.DfId;
import com.documentum.fc.common.IDfLoginInfo;
import com.documentum.operations.IDfExportNode;
import com.documentum.operations.IDfExportOperation;

/**
 *
 */

/**
 * @author mpoli_fujitsu
 *
 */
public class DeepExport {

/**
* @param args
* @throws DfException
*/

public static void main(String[] args) throws DfException {

IDfSessionManager sesMgr = getSessionMgr();
IDfSession session = sesMgr.getSession("XXXX");
IDfCollection rs = null;
IDfQuery query = new DfQuery();
query.setDQL(" SELECT   r_object_id,object_name,r_folder_path FROM   dm_folder WHERE  folder('/XXXX/Departments/Finance/Accounting/General Ledger/XXX Archived Files',descend)");
rs = query.execute(session, 0);
if (rs != null) {
while (rs.next()) {
//System.out.println(rs.getString("r_folder_path"));
String str=rs.getString("r_folder_path");
//String str1=str.substring(58);
//System.out.println(str1);
//folderCreation(str1,session);
//String str2="/XXXXX/Departments/Finance/Accounting/General Ledger".concat(str1);
try{

IDfCollection rs1 = null;
IDfQuery query1 = new DfQuery();
System.out.println(" SELECT * FROM  dm_document WHERE  folder('"+str+"')");
query1.setDQL(" SELECT * FROM  dm_document WHERE  folder('"+str+"')");
rs1 = query1.execute(session, 0);
if (rs1 != null) {
while (rs1.next()) {
System.out.println(rs1.getString("object_name"));
IDfDocument doc=(IDfDocument)session.getObject(new DfId(rs1.getString("r_object_id")));
IDfClientX clientx = new DfClientX();
IDfExportOperation eo = clientx.getExportOperation();
IDfExportNode node = (IDfExportNode) eo.add(doc);
String localpath="D:/Stock".concat(str.substring(58));
System.out.println("localpath----"+localpath);
node.setFilePath(localpath+"/"+rs1.getString("object_name")+"."+doc.getContentType());
if (eo.execute())
{
System.out.println("Export operation successful.");
}
else
{
System.out.println("Export operation failed.");
}
}
}
}catch(Exception e){
e.printStackTrace();
}
}
}
}

private static IDfSessionManager getSessionMgr(){
IDfSessionManager sessionMgr = null;
try{

IDfClientX clientx = new DfClientX();
IDfClient client = clientx.getLocalClient();
sessionMgr = client.newSessionManager();
IDfLoginInfo loginInfoObj = clientx.getLoginInfo();
loginInfoObj.setUser("dmadmin");
loginInfoObj.setPassword("xxx);
sessionMgr.setIdentity("XXX", loginInfoObj);

}catch(DfException exp){
exp.printStackTrace();
}
return sessionMgr;

}
public static void folderCreation(String str,IDfSession session)
{
boolean dirFlag = false;
String str1="D:/Stock";
File stockDir = new File(str1.concat(str));
try {
dirFlag = stockDir.mkdirs();
} catch (SecurityException Se) {
System.out.println("Error while creating directory in Java:" + Se);
}
if (dirFlag)
System.out.println("Directory created successfully");
else
System.out.println("Directory was not created successfully");
//exportDocuments(str,session);
}


public  static void exportDocuments(String path,IDfSession session)
{
String str="/XXXXx/Departments/Finance/Accounting/General Ledger".concat(path);
try{

IDfCollection rs = null;
IDfQuery query = new DfQuery();
query.setDQL(" SELECT * FROM  dm_document WHERE  folder('"+str+"')");
rs = query.execute(session, 0);
if (rs != null) {
while (rs.next()) {
System.out.println(rs.getString("object_name"));
IDfDocument doc=(IDfDocument)session.getObject(new DfId(rs.getString("r_object_id")));
IDfClientX clientx = new DfClientX();
IDfExportOperation eo = clientx.getExportOperation();
IDfExportNode node = (IDfExportNode) eo.add(doc);
String localpath="D:/Stock".concat(path);
System.out.println("localpath----"+localpath);
node.setFilePath(localpath+"."+doc.getContentType());
if (eo.execute())
{
System.out.println("Export operation successful.");
}
else
{
System.out.println("Export operation failed.");
}
}
}
}catch(Exception e){
e.printStackTrace();
}
}
public static String checkSpecialChar(String inputString)
{
Pattern pattern = Pattern.compile("[^a-z0-9]", Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(inputString);
boolean b = matcher.find();
if(b)
{
System.out.println();
return inputString.replaceAll("[^a-zA-Z0-9]", "-");
}else
return inputString;
}
}

Deep Export to Documentum from local desktop

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

import com.documentum.com.DfClientX;
import com.documentum.com.IDfClientX;
import com.documentum.fc.client.IDfClient;
import com.documentum.fc.client.IDfDocument;
import com.documentum.fc.client.IDfFolder;
import com.documentum.fc.client.IDfSession;
import com.documentum.fc.client.IDfSessionManager;
import com.documentum.fc.common.DfException;
import com.documentum.fc.common.IDfLoginInfo;
import com.documentum.operations.IDfImportNode;
import com.documentum.operations.IDfImportOperation;

/**
 *
 */

/**
 * @author mpoli_fujitsu
 *
 */
public class DeepImport {
  //static String parentLocation="dfgdgdgdg";
/**
* @param args
* @throws DfException
*/
public static void main(String[] args) throws DfException {
System.out.println("dsfsdfsd");
File sourceLocation=new File("dfgdgdgd");
File targetLocation=new File("dfgdgdgdg");

try {
copyDirectory(sourceLocation , targetLocation );
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}


public static void copyDirectory(File sourceLocation , File targetLocation) throws IOException, DfException {
if (sourceLocation.isDirectory()) {

//System.out.println("Folder exists sourece Locaion*********************"+targetLocation.getParent());
// System.out.println("Folder name_________________________________________"+targetLocation.getName());
// System.out.println("ParentFolder name_++++++++++++++++++++++++++++++++++++++"+targetLocation.getParent());
createFolder(targetLocation.getParent(),targetLocation.getName());
//targetLocation.mkdir();



String[] children = sourceLocation.list();
for (int i=0; i<children.length; i++) {
copyDirectory(new File(sourceLocation, children[i]),
new File(targetLocation, children[i]));
//System.out.println("Folder  sourece Locaion*********************"+sourceLocation);
}
} else {
System.out.println("sourece Locaion*********************"+sourceLocation.getName());
IDfSessionManager sesMgr = getSessionMgr();
IDfSession session = sesMgr.getSession("EDMS");
IDfClientX _clientx = new DfClientX();
IDfImportOperation _opi = _clientx.getImportOperation();
_opi.setSession(session);

IDfFolder _folder = session.getFolderByPath((targetLocation.getParent()).replace('\\', '/'));


_opi.setDestinationFolderId(_folder.getObjectId());

IDfImportNode _impNode = (IDfImportNode) _opi.add(sourceLocation.toString());
if (_impNode == null)
System.out.println ("Node is null.");

_impNode.setDocbaseObjectType("qd_project_doc");
_impNode.setNewObjectName(sourceLocation.getName());


//_opi.setSession(_dfcSes);
//
if (_opi.execute())
{
IDfDocument _newObj = (IDfDocument) _impNode.getNewObject();
_newObj.setObjectName(sourceLocation.getName());
_newObj.setString("process_area_name","Lusail Project Management");
_newObj.setString("document_type_name","Letter");
//_newObj.setOwnerName(_OWNER);
String resultString =
("Item" + _opi.getNewObjects().toString() +" imported successfully.");
System.out.println(resultString);
}
else
{
System.out.println ("Error during import operation.");
}

/*IDfDocument newFolder = (IDfDocument) session.newObject("dm_document");
newFolder.setObjectName(sourceLocation.getName());
//.replace('\\', '/');
newFolder.link((targetLocation.getParent()).replace('\\', '/'));
newFolder.save();*/
}
}
private static IDfSessionManager getSessionMgr(){
IDfSessionManager sessionMgr = null;
try{

IDfClientX clientx = new DfClientX();
IDfClient client = clientx.getLocalClient();
sessionMgr = client.newSessionManager();
IDfLoginInfo loginInfoObj = clientx.getLoginInfo();
loginInfoObj.setUser("dmadmin");
loginInfoObj.setPassword("fgfdg");
sessionMgr.setIdentity("dfgdg", loginInfoObj);

}catch(DfException exp){
exp.printStackTrace();
}
return sessionMgr;

}
private static void createFolder(String edmsLocation,String folderName) throws DfException
{
System.out.println("edmsLocation*********************"+edmsLocation);
if(folderName.equalsIgnoreCase("Section - 3")){
System.out.println("Folder Name Washington Parcel A");
}else{
System.out.println("Folder name_________________________________________"+folderName);
IDfSessionManager sesMgr = getSessionMgr();
IDfSession session = sesMgr.getSession("EDMS");
IDfFolder newFolder = (IDfFolder) session.newObject("qd_folder");
newFolder.setObjectName(folderName);
//.replace('\\', '/');
newFolder.link(edmsLocation.replace('\\', '/'));
newFolder.save();
}
}
}