M. Scott Roth > Db-DFC-0.4 > Db::DFC

Download:
Db-DFC-0.4.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.4   Source  

NAME ^

Db::DFC - Perl's Object-oriented interface to Documentum's DFC

SYNOPSIS ^

    use Db::DFC;
    $dfc = Db::DFC->new();

    $DOCBASE = "docbase";
    $USER = "user";
    $PASSWORD = "passwd";
    $DOMAIN = "domain";
    $FILE = $0;

    $dfclient = DfClient->new();
    $idfclient = $dfclient->getLocalClient();
    $idflogininfo = DfLoginInfo->new();

    $idflogininfo->setUser($USER);
    $idflogininfo->setPassword($PASSWORD);
    $idflogininfo->setDomain($DOMAIN);

    $idfsession = $idfclient->newSession($DOCBASE,$idflogininfo);

    $pobj = $idfsession->newObject("dm_document");
    $doc = $dfc->castToIDfDocument($pobj);

    $doc->setObjectName("this file");
    $doc->setContentType("crtext");
    $doc->setFile($FILE);
    $doc->save();

    print "\nDocument Id:" . $doc->getObjectId()->toString() . " created.\n";
    $idfsession->disconnect;

DESCRIPTION ^

    Db::DFC provides an object-oriented interface to Documentum's DFC.
    ...

AUTHOR ^

    m. Scott Roth, michael.s.roth@saic.com

SEE ALSO ^

perl(1).

syntax highlighting: