iwlistmod equivalent

Options
System
System Administrator
Hello,

Anyone have an example of getting all the modified files within a workarea? I'm looking for an OpenAPI equivalent to iwlistmod, but haven't been able to figure it out from the Javadocs. I've looked at so many data classes I can no longer tell them apart.


Thanks,
Terry

<P>
==

Terry Luedtke
National Library of Medicine
terry_luedtke@nlm.nih.gov

Comments

  • Terry:

    Here's a simple code snippet example of finding all modified files in a given workarea.

    Hope this helps.


    // Start of snippet

    Vector results = new Vector();
    IWWorkArea wa = ???;
    com.sun.java.util.collections.Iterator it;

    IWPathNamedObject.SimpleSelector selModified =
    new IWPathNamedObject.SimpleSelector();
    //selModified.acceptKindMask = IWPathNamedObject.kmSimpleFile;
    selModified.requirePropertyMask =
    IWPathNamedObject.pmModified;


    // Get Modified Files

    it = (com.sun.java.util.collections.Iterator)
    wa.getRelatedIterator( fsService,
    IWPathNamedObject.rkmDDescendant,
    selModified,
    IWPathNamedObject.oNone,
    20 );

    if ( it != null ) {

    while ( it.hasNext() ) {
    IWPathNamedObject file = (IWPathNamedObject) it.next();

    results.add( file );
    }
    }
TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs