Book Image

Web Content Management with Documentum

Book Image

Web Content Management with Documentum

Overview of this book

One of the world leaders in Enterprise Content Management, the EMC Documentum family of applications helps you manage all types of content across multiple departments within a single repository. With the Web Content Management suite of applications, you can efficiently manage content and underlying processes for your Web properties, and ensures that they are responsive to business needs. To fully realize the power of this system can seem daunting, but this book will help you achieve that. With easy to follow examples, this book will take you the simplest and most straightforward route to success. Along the way, you will learn insights that only a seasoned professional would know. Packed with practical examples, you will get hands-on with the powerful features of Documentum to grow your skills and confidence. You will see tips and tricks to handle complexities of the system, and avoid the common errors that waste your time. From installing and getting started with Documentum, you will see how to design and develop Documentum applications, before rounding off with deployment.
Table of Contents (33 chapters)
Web Content Management with Documentum
Credits
About the Author
Acknowledgements
Preface
Frequently Asked Questions and Answers

23.6 Creating Users in Docbase with DFC


Users can be created in Docbase via the DFC IDfUser interface and its associated methods.

Create a Java file with the name CreateUsersDFC.java as shown below. Go through the DFC Javadocs to understand the various methods of the IDfUser interface used in this example.

import com.documentum.fc.client.*;
import com.documentum.fc.common.*;
import java.io.IOException;
public class CreateUsersDFC{
//Main method
public static void main(String args[]){
IDfSession session = null;
IDfSessionManager sMgr = null;
try
{
IDfClient client = new DfClient().getLocalClient();
sMgr = client.newSessionManager();
IDfLoginInfo loginInfo = new DfLoginInfo();
loginInfo.setUser( "documentum" );
loginInfo.setPassword( "solutions" );
sMgr.setIdentity( "dev_doc", loginInfo );
session = sMgr.getSession( "dev_doc" );
System.out.println("Session created !!");
IDfUser userObj = null;
userObj = (IDfUser)session.newObject( "dm_user" );
// Seting client capability as 'contributor'
userObj...