Java API: IFS Document Versions

Hello,
I'm trying to list all versions of a document in an web page, and provide a link to each document version (I'm currently using JSP and IFS Java API Classes as interface from Web to the IFS system).
To download a specific document version I need to know it's version because we are using different version atribution and I need to match our versions with IFS versions.
How can I get the version of a specific Document (Java API)?

okay folks, I've tried something and it seems to work:
Selector sel=new Selector(IFSSession);
PublicObject result=(PublicObject)sel.nextItem();
pw.println(result.getAnyFolderPath());
and voila !
typecasting is the key to OOP ;-)))
regards, F. Leeber

Similar Messages

  • Need Conversion Agent Java API Reference document

    Hi all,
    Can any one provide Java documentation for doing conversion agent?
    actually "Conversion Agent Java API Reference" had been refered by Conversion Agent User guide. I couldn't find that one...
    Any inputs are great.......
    Thanks

    Hi,
    All the guides for Conversion agent are present in the service.sap.com
    solution DetailsSAP NetweaverSAP Netweaver in detailExcahnge Infrastructure-Media Library---documentation
    Regards
    Vijaya

  • SAP BC Java API Reference

    Hi,
    I want to program my own Java service in the SAP BC.
    SAP mentioned in their documentation to the BC that there is a 'SAP BC Java API Reference' document. I have searched for this document for a couple of hours now, but I can't find it anywhere.
    Did anyone of you know where I could find this documentation?
    Thanks in advance,
    Frank

    Hi Benny,
    I've seen this in the SAP BC documentation 'SAPBCDeveloperGuide.pdf'.
    But I've already found it in the SAP BC Developer folder under 'opt/sapbc47/Developer/doc/api/Java/index.html'.
    Thanks for your help
    Frank

  • Do you have the java api on your computer?

    Just an observation.
    Earlier when i started java programing, i used alot of books and tutorials which i still do. when i was faced with a problem eg. a method to do this or that, i used to look for tutorials for how to do it, and sometimes i couldnt get. After Many months, i stumbled upon java api, a documents that cointains all methods, classes and interfaces in java. my output increased, posts in this forum to seek help reduced, and am happier now?
    Dou you have this api in your computer? i personally think newbies can accelerate their learning path by having this two references
    1. the java tutorial
    2. the java api
    your thoughts?

    your thoughts?That it's time for you to stumble across the downloads section of this site and download jdk-6-doc.zip. You can download the Tutorials here
    db
    edit Lousy link parsing. Just go to the Tutorial home page and click the link provided.
    Are https links not allowed? Crazy.
    Edited by: Darryl.Burke

  • Merging any type of documents into existing PDF using Adobe Java APIs

    We know that latest Adobe Acrobat tool can convert any type
    of documents into PDF. We need the same functionality to be built
    in into our java code by using Adobe's Java APIs. I am sure that
    Adobe has some readily available Java APIs to handle such
    requirements.
    FYI: We don't want Adobe's tool to handle this and we want
    Adobe's available Java API to handle this merging functionality
    programatically. We are ready to pay for it.
    Thanks,
    Ashok Hottin

    I'm not 100 percent sure but I'm afraid the way you want to use this Web-service is far from what SAP/Adobe thought it should be used. Take a look at SAP Library [here |http://help.sap.com/saphelp_nw70/helpdata/EN/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm] and [here|http://help.sap.com/saphelp_nw70/helpdata/EN/8d/1cbf69fff9454ca9c5de84182e4bfb/frameset.htm]. This solutions relies on previously created PDF Form Template - that means, e.g. tables are not rendered as if being printed with any number of columns and rows, but components of data tables coming from SAP are injected in rows/columns of the form where they were planned to be during template design.
    Additionally I think your idea of such usage of Adobe Document Services is not covered with software license you have as SAP customer/partner. Once again, I'm not 100% sure about it.
    Still, my opinion is that you won't succeed in it anyway due to the logic of the solution.
    Special PDF manipulation components will do the job better and easier, and nearly of them have demo/trial versions. So, if you ask me, don't waste your time and check special components.

  • IFS 1.1.9 Java API compatible to iFS1.2?

    We are using iFS Java API to develop an application on NT. Does anyone know whether iFS1.2 Java API is compatiable to iFS1.1.9?
    I know iFS1.2 has different repository structure than of iFS1.1.9, but will my Java code written in iFS 1.1.9 still work under iFS1.2?
    Thanks

    James,
    All our java code which has been documented and published in version 1.1.9 will also work with 9iFS 1.2. We do also have code which is not documented and published in which case we don't support it and can't make sure it will work with 1.2. If you look at the javadoc that's what we support.
    Hope that answered you question.

  • Online Hudson Java API documents?

    Are there any up-to-date Hudson Java API documents (apidocs) somewhere online? I would like to link to Hudson classes from my plugin API documents.
    I found Hudson Core 3.0.0 apidocs at http://hudson-ci.org/javadoc/ but they are apparently out of date.

    My bad. I will update http://hudson-ci.org/javadoc/ to latest version.

  • EPM-Version is 11.1.2.3, Java API, getTimeModified strange outcome

    Dear all,
    I would like to ask for help in a "strange" area.
    We have built a small java programm to check locked objects (files) in essbase.
    We want so save the result (analog to the EAS-infos) in a oracle-table for analysis purposes.
    We also want to store the "lock-date" like it is shown in EAS for lockes objects grid.
    However we are unable to get  valid date/time information from the
    getTimeModified method.
    EPM-Version is 11.1.2.3 (the java-api as well)
    E.g. given the pos 6 of the array the resulting year is "115". obviously wrong.
    (The resulting date/time should be today around 01:00 PM)
    https://docs.oracle.com/cd/E17236_01/epm.1112/aps_javaapi/index.html
    I't would be great if someone could take a look at this.
    Thank you in advance!
    Andre

    Hi,
    as promised here the working pice of code.
    No array base work... Just as shown here:
    Very important things, that cannot be omitted,  are:
    cal.clear();       
    cal.add(Calendar.SECOND,fileObject.getTimeStamp());
    private Calendar getLockedTime(IEssOlapFileObject fileObject) throws EssException {
            Calendar cal = GregorianCalendar.getInstance();
            cal.clear();
            cal.add(Calendar.SECOND, fileObject.getTimeStamp());
            int offset = TimeZone.getTimeZone("Europe/Berlin").getOffset(cal.getTimeInMillis());
            cal.add(Calendar.MILLISECOND, offset);
            return cal;
    Hint:
    getTimeZone("Europe/Berlin") is just an sample.
    In the real code it comes from a param file: int offset = TimeZone.getTimeZone(serverHandler.getEssbaseProperties().getServerTimeZone()).getOffset(cal.getTimeInMillis());
    Regards
    Andre

  • Unable to work with Java APIs in MDM new version 5.5.42.65

    Hi,
    I developed few java applications using MDM Java APIs in the old version(5.5.41.70) of MDM.
    After  installing new version(5.5.42.65) of MDM  in my system, i tried to execute the java applications,am getting failed to execute the applications.
    Does the change in the Version not allowing the Java MDM application to execute or is there any other reason..?
    Regards
    Praveen K

    Praveen,
    Are you using the new jar files as well?  The api jars and the mdm server must be on exactly the same version.
    Hope this helps.
    Greg

  • How to check whether a Document in KM is classified or not using JAVA API

    Hello Everyone,
      Can anyone tell me, How to check whether a Document in KM is classified or not, using JAVA API's??
    Thanks & Regards,
    Adren D'Souza

    Hi,
    The code is as follows:
    IIndexService indexService = null;
    try {
       indexService = (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
    } catch (ResourceException e) {
       if (indexService == null) {
         log.errorT("Error on instanciating the index service");
         return this.renderMessage(this.getBundleString(RES_NO_INDEX_SERVICE), StatusType.ERROR);
    // get index
    IIndex index = null;
    try {
       index = indexService.getIndex("YourIndexID");
    } catch (WcmException e1) {
       log.errorT("Error when trying to get the index");
       return this.renderMessage(this.getBundleString(RES_NO_INDEX), StatusType.ERROR);
    // check if the index is a instance of AbstractClassificationIndex
    AbstractClassificationIndex classiIndex = null;
    if (index instanceof AbstractClassificationIndex) {
       classiIndex = (AbstractClassificationIndex) index;
    } else {
       log.errorT("The index " + index.getIndexName() + " is no classification index");
       return this.renderMessage(this.getBundleString(RES_NO_CLASSIFICATION_INDEX), StatusType.WARNING);
    //give your KM Resource here for which you want to know if it is classified or not
    boolean classified = classiIndex.isDocClassifiedInAnyTax(resource);
    Regards,
    Praveen Gudapati

  • Needed Ultrasearch Query java API document

    Hi,
    Where i can find/download the complete ultrasearch java api documentation (i have java document only for one package i.e "oracle.context.isearch.query").
    The one which is shipped with Oracle9iASv2 is incomplete. It would be great if i can have some sample code also.
    Thanks for your help,
    Manish

    The UltraSearch manual for Oracle 9.2 is here and for 901 is here.

  • Splitting word document - Java API

    Hi , I would like to split a word doc in to a single document.
    ex: if i have a document with 10 pages i need to split the doc in to each one page.
    Can some one pls let me know how to do it ?? is there any Java API available ???
    Thanks in adv

    pk1234 wrote:
    Hi , I would like to split a word doc in to a single document.
    ex: if i have a document with 10 pages i need to split the doc in to each one page.
    Can some one pls let me know how to do it ?? is there any Java API available ???
    Thanks in advThis is going to be extremely difficult unless you get very lucky. I would look for new requirements or get better defined requirements.
    The problems are basically two in nature.
    1) Reading and writing Word docs sucks in general. It sucks very much for Java. Unless there is a compelling reason otherwise I would recommend using the open office plugin technique others have used rather than POI.
    2) Detecting "page" boundaries is about next to impossible in Word. Unless you are lucky enough to be able to have a document that a user has inserted page breaks into. Then maybe.
    I would in general recommend that your best approach is not to do this. Wherever the word document is being generated do what you need to do at that step.

  • I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF.   I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in th

    I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF. 
    I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in this regard is greatly appreciated.@

    You can achieve this using LiveCycle PDF Generator JAVA API. You can find required code here:
    Adobe LiveCycle * Quick Start (SOAP mode): Converting a Microsoft Word document to a PDF document using the Java API
    In parameters:
    //Set createPDF2 parameter values
    String adobePDFSettings = "Standard";
    String securitySettings = "No Security";
    String fileTypeSettings = "Standard OCR";
    "Standard OCR" file type setting will run OCR on input pdf. In the code, instead of doc file provide a pdf file. Resultant pdf will be searchable PDF i.e OCRed PDF.
    Feel feel to ask any further questions.

  • IFS logging/tracing when using IFS Java APIs

    We are using IFS 1.1 and the java APIs that come with it
    (oracle.ifs java packages). In the IfsDefault.properties file
    you can specify tracing options. I have enabled tracing in this
    properties file, but I don't know where the tracing output
    goes. Where/how can I specify the output file for this tracing?
    Thanks
    Bryan - [email protected]

    I think posting the question in the IFS forum (or the database forum if there's no IFS forum) will be the fastest route to an answer on this one.
    Unfortunately, we're not IFS experts in the JDev team...

  • Fetch Document from workspace+java API+ObjectByPath.java compile error

    Hi All,
    (Hyo version: 11.1.1.3)
    I was trying to export files imported into workspace. For testing purpose I imported P4S.pdf in 'Sample Content' folder.
    While looking for various options I came across Java API for workspace.(See samples in C:\Hyperion\products\Foundation\workspace\SDK\samples\java)
    I found a Java sample named "ObjectByPath.java". I complied (using JC.bat) and executed (with Execapi.bat) and came with this output:
    C:\Hyperion\products\Foundation\workspace\SDK\bin>execapi ObjectByPath admin password localhost 6800 "Sample Content/P4S.pdf"
    library not available, add it to your classpath: spf.jar
    Path : Sample Content/P4S.pdf
    Name : P4S.pdf
    Path : /Sample Content/P4S.pdf
    Mime Type: application/pdf
    Class : com.sqribe.rm.DataObjectImpl
    ObjectID : 0000013828cfc4b7-0000-a30d-7f000001
    Unfortunately the object could not be exported. I checked the "ObjectByPath.java" file and I saw:
    String path = args[4];
    RMBase tObject = rep.getObjectByPath(path);
    // tObject.toXML(System.out);
    System.out.println("Path : " + path);
    if (tObject instanceof BaseObject) {
    BaseObject baseObj = (BaseObject) tObject;
    System.out.println("Name : " + baseObj.getName());
    System.out.println("Path : " + baseObj.getPath());
    System.out.println("Mime Type: " + baseObj.getObjectType().getMimeType());
    System.out.println( "Class : " + tObject.getClass().getName());
    System.out.println( "ObjectID : " + tObject.getObjectID());
    Note that the exported line is commented.
    When I remove the comment and recomplile with JC.bat I get this error:
    C:\Hyperion\products\Foundation\workspace\SDK\bin>jc ObjectByPath.java
    ObjectByPath.java:32: unreported exception java.io.IOException; must be caught or declared to be thrown
    tObject.toXML(System.out);
    ^
    Note: ObjectByPath.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    1 error
    Any idea how to resolve this issue.
    Thanks,
    Ankit

    It says to add spf.jar to your classpath. Can you do a search on the file system for that file? If you find it add to your classpath.
    By commenting that line out you just produced another, unrelated error.
    Thanks
    Nick

Maybe you are looking for

  • Location of useful log files

    Hello, Could someone tell me the location of BI Pubs major log files. I am using BIP Enterprise Edition 10.1.3.2 Thanks, Matt Soukup

  • After updating to new version of Firefox, my paid for RoboForm will not work. What should I do? I MUST have it working. Thanks Jane

    Yesterday I downloaded the new version of Firefox as suggested by you. Then my paid for version of RoboForm , which always has worked, would not work. I MUST have it working. What can I do now to solve this crucial problem? PLEASE send detailed info

  • Ugly bug in the email app in iOS8! Fix it quickly!

    The new feature of sliding or swiping email messages to flag/delete/archive is horribly broken. When I slide a message to the left, several colored "buttons" (or how you name then) show up - but they wont stop and wait me to touch them! Instead, the

  • PCD search for delta links

    Hi all, I'm trying to look for delta link pcd objects in my portal. I have code that works for iviews, pages, roles & worksets,  for example: NamingEnumeration ne = dirCtx.search("","(com.sap.portal.pcd.gl.ObjectClass=com.sapportals.portal.iview)", p

  • Master role & Derived role concept

    Hi Friends , We have master and drive role concept in our project . ABC_XXXX (Master role )  ABC_1000(Derived role) (1000= company code) Now we need to maintain some values in master roles lets say display :03 .  Should we regenrate deived role  as w