How do I get a list of assets (AssetIDList) from a library?

I've been looking through the SDK documentation and samples for a way to delete all the assets in a libary. I've got a pointer to the library (ILibrary *) and the command ILibraryCmdUtils::ProcessLibraryDeleteItemsCmd() which takes an asset list and the library pointer.
The part I can't work out is how to get the asset list (AssetIDList) from the library to pass to the above command.
Some ideas are:
ILibraryScrapData - but I don't know how I can get a pointer to this and if I could is it simply a case of calling SetLibrary() followed by GetAssetList()?
AssetLibUtils.h - not documented, so no idea how to use the classes or functions.
I expected this to be a trivial task, but so far finding solutions to this and other seemingly simple tasks is proving very frustrating! Could someone point me in the right direction?
Thanks in advance.
APMABC

Solved it at last! It turns out that the 2nd idea is the way to go.
There is some sample code in source\open\components\buttonui\utils\FormFieldUIUtils.cpp FormFieldUIUtils::AdjustStylePresetMenu() that shows how you can get an ILibraryAsset pointer for each asset in the library. So I just use AssetIDList::push_back( ptrAsset->GetID() ) to build up an AssetIDList that can be passed to ILibraryCmdUtils::ProcessLibraryDeleteItemsCmd().
Why Adobe can't just have a GetAssetList() function for ILibrary I've no idea! I'm also troubled by the fact that as AssetLibUtils.h is undocumented, Adobe might decide to remove it in future SDK builds.
void MyLibraryClass::DeleteAssets()
    class LibraryAssets : public AssetEnumerator
    public:
        AssetIDList m_AssetList;
        LibraryAssets() {}
        virtual bool operator()(ILibraryAsset *ptrAsset)
            m_AssetList.push_back( ptrAsset->GetID() );
            return true;
    LibraryAssets LibraryAssetsToDelete;
    AssetLibUtils::EnumerateAssets( m_ptrLibrary, &LibraryAssetsToDelete );
    if (LibraryAssetsToDelete.m_AssetList.size() > 0)
        // Create and process command to delete items from library...

Similar Messages

  • How can I get a list of database names from environment

    Hi,
    How can I get a list of database names from environment.
    I had found a method in JE API Docs named Environment.getDatabaseNames(), and i couldn't found the same method in Berkeley DB.
    I use java interface, is it supported?
    Thanks.

    Hello,
    I don't know if it would work for you, but have you checked the db_archive utility at:
    http://download.oracle.com/docs/cd/E17076_01/html/api_reference/C/db_archive.html
    Check the -s option.
    Thanks,
    Sandra

  • How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them

    How can I get my books that I download from the Library that are WMA files into my I tunes so I can listen to them. They have a ton of books but I can only listen to them from my windows media player and I wouldlove to download to my I pod but I have tried everything I can think of it they won't go over.  Someone said all I had to do was copy them over and they would convert but I can't even get them to copy.  Thanks.

    Well it started happening AGAIN with my 2nd IPod. No matter what I did, it Itunes would NOT restore it!
    I finally installed Itunes on my hubby's PC at work and managed to get it restored there.
    Apparently, there must be some sort of compatibility issue with the windows version of Itunes and some other piece of software on my pc.
    And one more important thing! I had to follow the instructions in the other thread that talks about how to correctly uninstall itunes and quicktime, in order to completely eliminate ALL traces of my "first" ipod's existence so it wouldn't demand that I restore it.
    I think the software got "confused" and thought when I connected my 2nd ipod, that it was the 1st and that it still needed to be restored.
    Basically, this is just POORLY written and POORLY tested software!

  • How do i get a list of SQL Servers from network?

    Hi everyone,
    I'm trying to get a list of SQL Servers from the network and put them into a drop-down combo box. I try to search on Google and i can only find some C# source codes which doesn't help me at all. I'm wondering if JAVA has the similar method to do so.
    btw, I'm using MSSQL Server 2005, JDBC 1.2, JDK 1.6.0_24
    thanks

    jschell wrote:
    flyto9 wrote:
    I'd been told to create a user friendly no brainer user interface In typical business scenarios involving databases that is ridiculous.
    A company that has multiple database servers must ALREADY understand the complexities of managing and using those databases.
    true, but you know as well as I do that requirements documents are usually not written by people with the least understanding on those complexities...
    And if a company assigns such a project to someone like OP who clearly doesn't know how to deal with such requirements documents, that only shows their morosity all the more clearly :)
    Assuming that I'm able to find a list of TCP connections on network, how do I know which of them are sqlserver?That isn't what I said. A "protocol" is a description of a methodology involving functionality and communication which solves a particular problem.
    There is a "protocol" which describes how to find MS SQL Servers. You don't make it up yourself. You find the description, read what it says and implement it.Or more likely (like Oracle) there's no such security problem in MS SQL Server and instead it relies on the client knowing the connection details or it'll never find them.

  • How do I get a list of cameras names from MAX to use in a CVI app?

    I wish to avoid any confusion in selecting cameras to use in my CVI application, so I'm looking for a way, from within my app, to get the list of camera names as set up in MAX. Then I can populate a listbox and the user can choose their camera without having to guess or refer to an external listing for the MAX name. The selected name will then be passed to IMAQdxOpenCamera.
    Thanks!

    Found it! (Should have looked in the hardware boards first, but it seemed to be a software question.) Anyway, use IMAQdxEnumerateCameras.

  • HT1386 How can I get local content only to sync FROM my library to my Iphone and not the other way around?

    Ever since ICloud, my local Itunes library has been poluted with old music that I got rid of a long time ago.
    I purchased an album from the Itunes Store App on my Iphone, listened to all the songs and decided I don't like all of them but some of them.  So I went on my laptop and the album I purchased loaded into Itunes.  I manually deleted the content I didn't want from my Itunes library.  Once my library was set the way I wanted, I wanted my Itunes library synced into my Iphone, but instead, my Iphone's content gets re-synced back into my Itunes library and the content I once deleted tries to re-download.
    It's agrivating that what was once an easy automated process is now a slow agonzing manual process.  I'm considering getting rid of my phone if I can't find a remedy for this, which is the only apple product I now own.
    I don't want ICloud to auto download content
    I don't mind streaming the old music on my Iphone but I DO NOT want it downloaded into my phone or into my library.  I like to keep ICloud and my Itunes Library seperate.
    I just want to click "Sync" on Itunes, and my phone syncs EXACTLY how my Itunes library is.
    Please help...

    Backup, then restore the iPhone without syncing. Only the content currently in your library can be restored back to it.
    Turn off all options in iTunes and on the device for automatic downloading of purchases.
    In principle purchases made on the device are copied into the iTunes library when syncing. This ensures that you have the media ready to place back on it or a replacement should the device be lost, stolen, damaged, or need restoring, When you want to remove content either delete it manually from both the device & the library at the same time, or uncheck it within the library so that it is removed from the device during sync, then remove from the library later.
    tt2

  • How can I get a list of OOB Site from a SharePoint WebApplication using Powershell Script

    Hi,
    Could anybody help on this?
    Thanks,
    Srabon
    srabon

    You can include the WebTemplate parameter in the select, from that you will get the template ID for all sites.
    I am sure you know the custom template IDs then just filter / use if else to get the desired results.
    check this blog, track inventory session.
    http://sharepointpromag.com/sharepoint-2010/inventorying-sharepoint-using-powershell
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How can I get a list of apps which are supported on ipod touch model ma623zo?

    How can I get a list of apps which are supported on ipod touch model ma623zo?
    It's about 6 years old I think.
    I have put the latest IOS on there (currently 3.1.3 (7E18)).
    I download apps from the app store but they often fail to launch. I assume they're incompatible.
    Is there a way to check which apps will work and which won't before I buy them?
    Thanks!

    I have no idea how my reply could be "misleading". I stated the exact situation: there are millions of apps in the iTunes Store, and providing a comprehensive, accurate list of which apps support which version(s) of iOS would be highly impractical. You can perhaps help with your search by going to AppShopper:
    http://appshopper.com/search/?search=iOS+3
    That will give you at least some starting points, but AppShopper is neither comprehensive nor completely accurate. I've found a number of apps listed there over the time the site has existed that either are no longer offered or which have been updated beyond the iOS version indicated. But it might help.
    Regards.

  • How do i get a list of all the apps i have purchased this year

    how do i get a list of all the apps  have purchased this year and how much each app was

    Check your iTunes purchase history (click your email address in the upper right corner in the iTunes App Store-> log in -> click Purchase History).  This gives you a comprehensive list of apps you've purchased.
     Cheers, Tom

  • How do I get a list of current activations for my license?

    We have a company license which we use for multiple installs.  Over time, we have replaced and/or reimaged PCs and reinstalled and activated the software.  We just started getting a warning that license have been exceeded.  We were unaware it needed to be deactivated on decommissioned machines.  How do we get a list of activated machines and reconcile that with the machines which have had it removed or been reimaged and activated again?

    Hi,
    There is not tool available for external use to keep check of your activations.
    You have to manually keep track or you may contact customer service to check activation count on product.
    Regards,
    Ajlan Huda.

  • How do i get a list of all Roles defubed under a particular OrganizationalUnit? How can i use LDAPConnection.search method for this?

     

    Sorry for the typographical mistake.
    Please read the question as:"How do i get a list of all Roles defined under a particular OrganizationalUnit? How can i use LDAPConnection.search method for this?"

  • HT1420 how can I get a list of the computers that are currently authorized?

    I need to authorize my home computer after switching from PC to Mac. How can I get a list of which devices are currently authorized?

    There is no list.

  • Hi ,How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi ,how can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm
    or poerwshell . i have struggled for a week
    tchocr

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How can I get a list of active users on an AS Java platform on a cluster?

    Hello Experts,
    I have an AS Java NetWeaver CE v7.1 EhP1 SP3 system and it's running in a cluster.  Do you know how I can get a list of all users that are currently logged in or whom have active sessions on each application server instance?
    Thanks,
    Sam

    > I don't know how to get classes used by VA for this tab.
    I wouldn't make any development investments based on classes for the VA anymore...
    Considering that not only Salvatore himself, but also the JControl might decide for itself that the system needs a hard shutdown and restart.. a possibly better solution would be to use a redirect. If the message server does does not respond or does not find any DIs or not the one which your previous session state was for, then redirect to a page with a meaningfulll message (and apology on it.
    Just a thought,
    Cheers,
    Julius

  • How can I get a list of purchased apps?

    Recently restored my iPhone from backup, and I need to download my apps.  How can I get a list of apps that I've downloaded/purchased?
    If I search for an app via the app store that I had previously installed, the Install icon turns into a Cloud with a down arrow symbol on it - there must be a way to get a list of all of these right?
    Anyone clever enough to solve this riddle?

    Open the App Store app, go to the Updates pane and tap Purchased.

Maybe you are looking for

  • PL/SQL Library Not Refreshed

    I am testing PL SQL Libraries and have attached a library called SALES to a report and with a calculation function. The problem I seem to have is when I made changes to the function, it is not detected when I run the report. It still seems to read th

  • Macbook pro with retina display keyboard Turning off

    Hello everyone im having a problem with my Macbook pro it's my first mac so i dont know about it a lot sorry for my bad english and the problem is that after using it for like 2-5 Hours the keyboard turns off so i have to restart macbook so it works

  • Why does my mouse pointer disappears when hovering over Firefox?

    When I'm over the Firefox window, my mouse pointer disappears, unless I'm typing or actively using my mouse. == This happened == Every time Firefox opened == This morning after updating to the latest version, but before I had restarted Firefox to ful

  • Row selection in Table should be the same, if we came back to the page?

    Hello All, I am using JDeveloper 11g. I created one adf Table on jsp(empPage) page and selected one row(single selection) , than user can move to other page(to finish some other task), after coming back to the earlier page(empPage), row selection sho

  • Sharing docs with PC people

    Hi, on my network at my school I have silly little PC people who complain that when I open a file on the network (like a document file) that my Mac for some reason automatically makes it READ ONLY and they are not able to change anything afterwards.