How do the archiving of content through java code

I need consignment content through java code.

Summary of the problem: If someone send an email to a specific account this attachment automatically checkin to content server and the required metadata is read from the subject and message body.

Now I have the problem that I'm not able to record of attachment to the content server. I have all the required metadata and the attachment that is extracted from an e-mail.

Please someone help me, how I'm going to call the consignment through java code.

Hello Deepak,

Try the code below and let me know how it goes, I wrote all code example for you

Note: When you find '<>> ', you need to write real values.

import java.io.BufferedReader;

import java.io.DataInputStream;

Import oracle.stellent.ridc.IdcClientManager;

import java.io.File;

import java.io.FileInputStream;

to import java.io.FileNotFoundException;

to import java.io.FileOutputStream;

import java.io.IOException;

import java.io.InputStream;

import java.io.InputStreamReader;

Import oracle.stellent.ridc.IdcClient;

Import oracle.stellent.ridc.IdcClientException;

Import oracle.stellent.ridc.IdcClientManager;

Import oracle.stellent.ridc.IdcContext;

Import oracle.stellent.ridc.model.DataBinder;

Import oracle.stellent.ridc.model.DataObject;

Import oracle.stellent.ridc.model.DataResultSet;

Import oracle.stellent.ridc.model.TransferFile;

Import oracle.stellent.ridc.model.impl.DataObjectEncodingUtils;

Import oracle.stellent.ridc.protocol.ServiceResponse;

public class servicesTest {}

The University Complutense of MADRID soldev3 connection string

Private final public static String idcConnectionURL = "idc://UCM path";

private public final static String username = "weblogic";

public IdcClient getUCMConnection()

throws IdcClientException, IOException {}

ClientManager IdcClientManager = new IdcClientManager ();

Customer IdcClient = clientManager.createClient (idcConnectionURL);

UserContext IdcContext = new IdcContext ("username");

customer feedback;

}

' public void checkinFile (String Filename, String Filepath) survey IdcClientException, IOException {}

System.out.println ("in the createUser method..");

IdcClient client = getUCMConnection();

DataBinder binding = client.createBinder ();

System.out.println ("in the checkinFile method...");

binder.putLocal ("IdcService", "CHECKIN_UNIVERSAL");

binder.putLocal ("dDocTitle", ""> "");

binder.putLocal ("dDocName", ""> "");

binder.putLocal ("dDocType", ""> "");

binder.putLocal ('dDocAuthor', 'sysadmin');

binder.putLocal ('dSecurityGroup', 'Public');

binder.putLocal ('xlanguage', ""> "");

binder.putLocal ("dOriginalName", Filename);

binder.addFile ("primaryFile", new TransferFile (new File (Filepath + Filename)));

UserContext IdcContext = new IdcContext ("username");

client.sendRequest (binder, userContext);

System.out.println ("After checkinFile method...");

}

Public Shared Sub main (String [] args) throws IdcClientException,

FileNotFoundException,

IOException, Exception {}

MAK servicesTest = new servicesTest();

mak.checkinFile (">",">" ");

}

}

Thank you

MAK

Tags: Fusion Middleware

Similar Questions

  • How to insert a new accessory through java code

    Hello world

    I need to add a new accessory through java code. I found the service EDIT_RENDITIONS in the add attachments page. But this service is not documented. Does anyone have an example how to add attachments?

    Thank you

    Martin

    Martin,

    Try the following code:

    final IdcClientManager clientManager = new IdcClientManager();

    Customer IdcClient;

    try {}

    client = clientManager.createClient (IDC_PROTOCOL + RIDC_SERVER + ":" + RIDC_PORT);

    final String username = 'sysadmin ';

    final DataBinder dataBinderReq = client.createBinder ();

    ServiceResponse severiceResponse = null;

    dataBinderReq.putLocal ("IdcService", "EDIT_RENDITIONS");

    dataBinderReq.putLocal ("a", '1560'); as integer

    dataBinderReq.putLocal ("dDocName", "DEV2_001509"); AsString

    dataBinderReq.putLocal ("renditionKeys", "addRendition0"); AsString

    dataBinderReq.putLocal ("addRendition0.name", "theFileName");

    dataBinderReq.putLocal ("addRendition0.description", "theFileDescription");

    dataBinderReq.putLocal ("addRendition0.action", "modify");

    final String fileName = "c:\\test.txt";

    final file = new File (fileName);

    final TransferFile tf = new TransferFile (queue);

    dataBinderReq.addFile ("addRendition0.file", tf); as bytes

    severiceResponse = client.sendRequest (new IdcContext ("username"), dataBinderReq);

    final DataBinder dataBinderResp = severiceResponse.getResponseAsBinder ();

    DataBinder resultado = severiceResponse.getResponseAsBinder ();

    System.out.println (dataBinderResp.ToString ());

    } catch (final IdcClientException e) {}

    System.out.println (e.getMessage ());

    e.printStackTrace (System.out);

    }

    Jonathan

    http://jonathanhult.com

  • How to simulate BlackBerry options/commands from java code?

    Hi friends,

    For wipe/erase of personal data, we have the following option on BlackBerry phone (model: 9930)
    Options of-> Security-> Security Wipe

    I want to give the same option in my BlackBerry App (e.g.. A button marked "clear data")
    How can I simulate the same functionality through java code

    Can someone please provide some help or provide a reference to the entire API

    Thank you

    Laughing out loud
    You can enter simulation (clicks, presses), and you can launch native applications, if you know their module name, but both approaches have their limitations.

    See http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html... or http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html... to see how to apply.

  • How to provide the value of a field defined by the user through java code

    I use OIM 11.1.1.5.
    I have a single-customer-number called user-defined field. This field must be pre-filled in the course of the creation of the user (using the interface user Web of IOM) and the value is a java code.

    Does anyone of you can tell me the high level steps to implement this.

    Thank you!
    Kabi

    You can view them in the tables...

    The tables you need are latest_plugins, plugin_metadata, plugin_zip

  • How read the Archive.msf and .sbd files stored on the backup media without restoring the current profile?

    I have stored vast e-mail Archives of files on backup media to free hard drive memory. How to read Archive.sbd and Archive.msf selected files without restoring them to the current profile? Can I create a new profile and restore it temporarily?

    Tbirds mail-container has a pair of files

    (1) - name of the container (with no extension) here are all the emails one after the other.
    (2) container - name.msf one type of index, if deleted itwill be restored

    If there is any subcontainers, there is also a container - name.sbd which is a directory (map)
    In this directory there are new pairs or even directories.

    Files without extension is the mbox files. As they exist even when there is simply a directory .sbd and not emails, you need only point to this mbox (empty) file to load the tree entire (folder - map-) use the ImportExportTools add-on.

  • Why the SD-R6112 drive will not read the table of contents through DVD Decrypter?

    Why the hell used my reading of DVD-ROM/R/RW Toshiba SD-R6112 the TOC through DVD Decrypter?
    She normally does! I use nero, Decrypter, DVD Shrink, and even Windows medai Player 9 series.

    It was working fine 2 days ago now pfft, will not work. Everything in the settings of the device checked, said everything works properly without conflicts. I unloaded the driver and rebooted then loaded it, same problem. I tried a disk driver that came with my laptop and is responsible, it is very good, so I take this CD work correctly, but won't load DVD. With DVD Decrypter, it says: could not retrieve the table of contents.

    There must be a solution!

    Hello

    Are you trying to make illegal copies of DVD? ;)

  • Error in the archiving of content Export

    Hello

    I am trying to export content archiving using archiver applet this applets admin in vain his graduation, while the Archives of the Table has been done successfully.
    The error I get is as below:

    "Error for archive"ContentArchive_13June"export" in the "Eb_UCM" collection: abandonment. Too many mistakes '. "

    And newspapers that are present in the log files are:

    WARNING on 14/06/2011 11:09:27 cannot rename ' / home/ucmuser/oracle/ucm/server/weblayout/resources/schema.work' to ' / home/ucmuser/oracle/ucm/Server/weblayout/resources/drawing "whole publication scheme.
    Error 14/06/2011 11:09:27 cannot publish the schema. Directory of published schema could not be traded to its appropriate location. [Details]

    I also tried after you change the permissions of files on home/ucmuser/oracle/ucm/server/weblayout/resources/schema.work, but the same newspapers are coming.

    Help, please.

    Thnks,
    Sunny

    Hello

    Add the Configuration Variable MaxArchiveErrorsAllowed = 500 to config.cfg file and restart the content server, try to export your archiver.
    If you still get same error message like "many mistakes" then increase value between 500 and 1000.

    Thank you
    Ravinder

  • Implementation of filter in the archiving of content

    Hello
    I want to use the filter that will check the extension of the file, the size, and comments (cannot be null) before check-in.
    If the size is less than 50 MB, extension is .bmp or comment is null, then the filter will not allow check-in.
    I am using the CHECKIN_NEW service and then verification of the XCOMMENTS fields in the postWebfileCreation filter.
    I'm getting server log correctly but your content is checked-in that same doesnot content matches criteria required.
    Please help me.
    Thank you

    Hey

    I got a simple component that works on my sandbox machine that rejects the archived documents that are on a size preset.
    I used the "validateStandard" event to attach to and got out the size of the file based on the following code:

    String pFile = binder.getLocal ("primaryFile");
    If (pFile == null | pFile.length ())<>
    {
    NO primary file available
    SystemUtils.trace ("system", "Impossible to recover primaryFile binder... skip filter");
    Back to CONTINUE;
    }
              
    SystemUtils.trace ("system", "Archive" + pFile);
              
    PrimaryFile file = new File (pFile);
    If (! primaryFile.exists ())
    {
    SystemUtils.trace ("system", "Could not load file.");
    Back to CONTINUE;
    }
              
    long fileSize = primaryFile.length ();
    If (filesize > = 10000000) //10 meg
    {
    throw the new ServiceException ("this document is too large:"+ size ");
    }

    HTH.

    See you soon,.

  • How hide the table of contents in the body of an e-book?

    Hey people, I'm kind of a weird request. Do not forget that everything I know about InDesign, I taught myself for a month, so I can miss major somethng.

    As an intern, I am creating ebooks and I have to make sure that those I create the same look as the ebooks previously created for my employer (better yet, I had to do it from scratch!). In their previous ebooks (EPUB file format) the table of contents posted by the ereader clearly indicates a specific style of OCD was used to create (he titles and subtitles, so it is not just the default style that draws from the file names), BUT there is NO table of contents anywhere in the body of the ebook itself. There is also no blank page where a table of contents can be hidden with a hidden layer.

    I created a table of contents to match style to them, but I can't it appears in the drop-down menu Styles TOC when I go to export EPUB book file unless the document of the table of contents is also included in the book file, and as I said, I can't get the table of contents in the body of the ebook itself just in the menu that is displayed by an ereader.

    Any advice?

    Did you use dialogue style of content Table to create a new style of table of contents? If so, then the new table of contents style must appear in the drop-down list TOC Style selected in the dialog box in the Navigation options to export EPUB.

    Kind regards

    POOJA

  • How to call trial task of custom Java code directly

    I'm a java code write Victorian where I want to call the process task directly "Delete user" resource AD. Then, I'll put this java class as part of a scheduled task.

    No API to IOM for this?

    Pls suggest.

    -Thank you

    This is why I told you that to see the API with care:

    You will have to pass256 in the first place and alternation task Instance key, to the second place.

    You're done!

  • How a search for certain content through many files?

    Windows 7 claims to be able to search for certain substances, but it does not work, or is not properly documented. My filenames have the extension "ls2" and are open with Notepad. How can I search for a string in the content of my ls2 files?

    Hello

    Maybe this will help: (mainly those of type "BOLD" )

    Tips for finding files
    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-finding-files

    How to use advanced search in Vista Options
    http://www.Vistax64.com/tutorials/75451-advanced-search.html

    How to restore the page button on the Start Menu after installing Vista SP1
    http://www.Vistax64.com/tutorials/145787-Search-start-menu-button-restore-after-SP1.html

    How to restore the context Menu item search after installing Vista SP1
    http://www.Vistax64.com/tutorials/134065-search-context-menu-item-restore-after-Vista-SP1.html

    How to create a shortcut on the desktop search in Vista
    http://www.Vistax64.com/tutorials/126499-search-desktop-shortcut.html

    ----------------------------------------------------------

    Win Key F opens advanced search

    Searching in Windows Vista, part 1
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-1-secrets-of-the-search-box

    Part 2
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-2-Start-menu-and-control-panel-search-tips

    Part 3
    http://Windows.Microsoft.com/en-us/Windows-Vista/searching-in-Windows-Vista-part-3-using-advanced-search-for-those-hard-to-find-files

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Impossible to hide the table of content through its property

    Oracle Forms 10 g, Oracle database 10g

    Hi all

    I'm trying to hide my table of content at the time when the forms open so I went to his property and disable the Visible property, but I still see this painting.

    At the same time, when I use the code below, then I can't see this painting...

    Code

    SET_VIEW_PROPERTY ('MAIN', VISIBLE, PROPERTY_FALSE);

    In fact, I have defined name canvas in one of my table and want to control those dynamically.

    Can someone help me?. Thank you

    Concerning

    Muzz


    Dear Muzz

    Make sure that the first navigable point in the first block is not in the Web of hide. If its in the canvas, and then change the first element of the block as another element.

    Manu.

  • How to add convertNumber in inputText in java code

    jdev 12 c

    I need to dynamically add inputText with convertNumber in backing bean.

    RichInputText riText = new RichInputText();
    riText.setLabel (label);
    riText.setId ('it' + ind);
    riText.setVisible (true);
    riText.setRendered (true);
    riText.setSimple (true);

    How to add convertNumber to riText? Thank you.

    I thought about it how do in java. I need to use NumberConverter.

    RichInputText riText = new RichInputText();
    riText.setLabel (label);
    riText.setId ("it" + itind + "_" + ind);
    riText.setVisible (true);
    riText.setRendered (true);
    riText.setSimple (true);
               
               Application = FacesContext.getCurrentInstance () .getApplication ();
    NumberConverter nc =
    Application.createConverter ("oracle.adf.rich.Number") (NumberConverter);
    nc.setType ("number");
    nc.setMaxFractionDigits (2);
    nc.setMaxIntegerDigits (11);
    riText.setConverter (nc);

  • Insert the VO data by using java code on OFA?

    Hi all,

    I m trying a way to insert data by a VO using the Row.setAttribute () function, I need pair this way, but with not much success, for now, I created the following code in the

    Application module:

    ' public void createRecord (String responsabilidad, String segment, String subsegmento) {}

    OAViewObject vo = this.getMovQuiebresComercialesVO1 ();

    If (! vo.isPreparedForExecution ()) {}

    vo.executeQuery ();

    }

    Line studrow = vo.createRow ();

    studrow.setAttribute ("ResponsibilityName", responsibility);

    studrow.setAttribute ("DescSegmento", segment);

    studrow.setAttribute ("DescSubsegmento", subsegmento);

    vo.insertRow (studrow);

    vo.setCurrentRow (studrow);

    vo.insertRow (studrow);

    vo.setCurrentRow (studrow);

    studrow.setNewRowState (Row.STATUS_INITIALIZED);

    }

    After that, I made a call to the apply method in the AM:

    {} public void apply()

    getTransaction () .commit ();

    }

    The VO has the following attributes: http://screencast.com/t/hJiNoyY8

    But I have not ben able to store the data in the Database, I would appreciate any suggestion

    Thank you all

    The solution was to initialize the VO in the page load Apps - OA Framework controller ViewObject for Table screen

  • Multiple Master Pages - how to the next setup page

    Hi all

    We create an adobe form in lifecycle designer.

    We have three pages masters (for example, MPage1, MPage2, & Mpage3)

    And we have a body page (subform\Page) in which we table that has data displayed getting more than 5 to 10 Pages.

    Now for this boy (Bpage1) in the "Pagigation" tab page we have content area MPage1 and for the overflow of MPage2 content area.

    What we need now is the first page must be MPage1 and 2nd page should be Mpage2 - (this works fine too)

    After that we need MPage3 3rd and 4th page like MPage2 and so on.

    That is, after the first page, we need Page 2 & 3 should be repeated one after the other.

    Like - MPage1--MPage2--Mpage3--MPage2--Mpage3--MPage2--Mpage3--MPage2--Mpage3

    We believe, on the table, some events through Java coding to change the setting of the Page "overflow" according to the current page number.

    How define then which page should serve as a nextoverflow page.

    Please suggest.

    Kind regards

    Amit

    Hello

    you do not have any script to get this working.

    You can set the order of master pages by changing the settings for all of the master pages.

    Here is an example.

    https://Acrobat.com/?d=et5ZjuZYnvvt8s-bG0LN0w

Maybe you are looking for

  • Whenever I open iphoto 09 (8.1.2), it makes advertising ilife 11. However I can't find any way to do the upgrade.

    Everytime I open iphoto 09 (8.1.2), he announced the upgrade to ilife 11. However I can't find any way to do the upgrade. I don't think that this computer can handle the upgrade to yosemit and photos. I'm operating a white macbook memory 1.5 GB with

  • Mac will not let me merge xxxx

    On my MacBook pro, that I wanted to clean things and start a new one so I created a new partition and all put on and deleted the old partition and not what I can't combine the old partition that subtraction is dimmed, they're right next to each other

  • I need program for disk defragmentation

    I need program for disk defragmentation

  • YouTube &amp; router WRT610N

    Hi everyone, [Hi Dr. Nick!] Sorry, my teacher of 6th grader always taught me to open with a joke and well... as you can tell I'm not an actor. anyway... first time poster, long user date Linksys. Recently bought a Linksys WRT610N wireless router. It

  • Not able to access the Documents or control panel

    WINDOWS EXPLORER Whenever I try to open DOCUMENTS or control PANEL, he appears and says WINDOWS EXPLORER has SROPPED to OPERATE. It will say then it checks for a solution and restart without having to open the files. I tried restoring the system retu