Using CIS inquires the UCM folder structure information is always unable to

Hi all,
I'm trying to get the information of a folder,but always unable to carry out,I think it's context has a problem,because "_createFolder()" interface is available.
public static void main(String[] args) throws Exception {
          try {
                    ICISApplication m_cis=UCPMClient.getCisApplication();
                    ISCSContext context = m_cis.getUCPMAPI().getActiveAPI()._createSCSContext();
                    context.setUser( "weblogic" );
                    context.setAdapterName("myadapter");
                    context.setLocale(new Locale("zh","CN"));
                    context.setGuest(true);
                    context.setDevice(null);
                    context.setIdcUser("weblogic");
                    ISCSFolderID fo=(ISCSFolderID) m_cis.getUCPMAPI().createObject(ISCSFolderID.class);
                    fo.setFolderID("20107831476000002");
                    ISCSComponentFolderAPI nn =m_cis.getUCPMAPI().getActiveAPI().getComponentFolderAPI();
//success
                    System.out.println(nn);
                    //success
                    ISCSFolder folder = nn._createFolder("20107831476000002");
                    folder.setFolderName("1111111");
                    folder.getFolderPath();
                    //fail
                    ISCSFolderHierarchyResponse h= nn.getFolderHierarchy(context);
                    System.out.println(h);
                    ISCSServerResponse rr=nn.listFolders(context, fo);
                    System.out.println(rr);
                    ISCSFolderInfoResponse info= nn.getFolder(context, fo);
                    System.out.println(info);
     } catch (Throwable t) {
          System.out.println("error!!");
Console-----------------------
com.stellent.cis.client.api.scs.component.folder.impl.SCSComponentFolderAPI@caf5eb
[2012-09-07 16:27:12,846] [Main Thread] WARN (com.stellent.cis.server.api.scs.event.impl.SCSEventPoller) - Event poller for adapter 'myadapter' not enabled, no events will be generated

Hi all,
I'm trying to get the information of a folder,but always unable to carry out,I think it's context has a problem,because "_createFolder()" interface is available.
public static void main(String[] args) throws Exception {
          try {
                    ICISApplication m_cis=UCPMClient.getCisApplication();
                    ISCSContext context = m_cis.getUCPMAPI().getActiveAPI()._createSCSContext();
                    context.setUser( "weblogic" );
                    context.setAdapterName("myadapter");
                    context.setLocale(new Locale("zh","CN"));
                    context.setGuest(true);
                    context.setDevice(null);
                    context.setIdcUser("weblogic");
                    ISCSFolderID fo=(ISCSFolderID) m_cis.getUCPMAPI().createObject(ISCSFolderID.class);
                    fo.setFolderID("20107831476000002");
                    ISCSComponentFolderAPI nn =m_cis.getUCPMAPI().getActiveAPI().getComponentFolderAPI();
//success
                    System.out.println(nn);
                    //success
                    ISCSFolder folder = nn._createFolder("20107831476000002");
                    folder.setFolderName("1111111");
                    folder.getFolderPath();
                    //fail
                    ISCSFolderHierarchyResponse h= nn.getFolderHierarchy(context);
                    System.out.println(h);
                    ISCSServerResponse rr=nn.listFolders(context, fo);
                    System.out.println(rr);
                    ISCSFolderInfoResponse info= nn.getFolder(context, fo);
                    System.out.println(info);
     } catch (Throwable t) {
          System.out.println("error!!");
Console-----------------------
com.stellent.cis.client.api.scs.component.folder.impl.SCSComponentFolderAPI@caf5eb
[2012-09-07 16:27:12,846] [Main Thread] WARN (com.stellent.cis.server.api.scs.event.impl.SCSEventPoller) - Event poller for adapter 'myadapter' not enabled, no events will be generated

Similar Messages

  • How can I batch move files to the same folder structure in a different location?

    Hi,
    I recently had an issue with my iTunes Library so I used the Organize Library feature to have iTunes organise my library.  What happened was that it put all of my music in a folder called 'Music' on my external hard drive, whereas previously it was not in a folder at all, e.g.
    BEFORE: External Hard Drive / Abba / Greatest Hits / Mama Mia.m4a
    AFTER: External Hard Drive / Music / Abba / Greatest Hits / Mama Mia.m4a
    I don't have any particular issue with the updated folder structure, except that I had copies of the artwork for each album in my album folders, and these weren't moved when the audio files were moved/consolidated/organised.  So I need to find a way of moving all of the artwork to the new folders, e.g.
    External Hard Drive / Abba / Greatest Hits / folder.jpg
    needs to become:
    External Hard Drive / Music / Abba / Greatest Hits / folder.jpg
    I have to do this for 3,000+ albums, and I have multiple artwork files for some albums, so I am hoping that there is a way of doing this using a batch/automated method of some kind, but I haven't been able to turn up anything yet.
    Can someone help with this?
    Thanks,
    Nick

    You can make a smart playlist containing episodes of both series and play from that. Podcasts are linked together by the URL they are served from so merging ongoing series isn't really practical.
    tt2

  • MTS files (and really, they're just MTS, not the entire folder structure)..

    OK, I see lotsa advice about dealing with MTS files...if they're in their proper folder structure.
    Well, that'd be easy, and I'd be importing them now if they were in their proper folder structure. But they're not...I have 503 .mts files, in a folder, that a client copied "for me", and now expects me to import.
    Any advice? Like I said, I only have the .mts files, not the supporting folder structure.

    Greetings all from Jakarta - i have a feeling this is going to be a lengthy response and will only be of interest for those currently suffering from MTS file issues, but I do believe (while my solutions are not perfect) I have found some answers. What I have not found, unfortunately, are the hairs that I pulled out of my armpits in frustration over these MTS issues.
    Background info: My office purchased the Panasonic HDC-TM700 to provide back-up to our Panasonic 170EN and we have been quite happy with the results. We have also been converting the MTS files to .MOV files on both Toast Titanium, and Final Cut Pro.
    SITUATION #1
    After a day of shooting I downloaded the TM700 files (full structure) to the hard disk. On day two after a full day of shooting I realized I forgot to format the camera's memory card so i had 50 MTS files that I already downloaded. Ever the smart guy, I highlighted file #51-#102 and dragged them into the STREAM file of the previous day's download. Then I formated the camera so i wouldnt forget the next day.
    Well during log and transfer in FCP ONLY THE FIRST 50 FILES could be read, because that is what the metadata in the info supported ..... FCP couldnt even locate the other 50 files. I nearly fainted at the thought of getting fired. Thank goodness, when we dragged the MTS files into TOAST TITANIUM they could be read and converted!
    SITUATION #2
    The new guy (seriously, it was the new guy!) ONLY DOWNLOADED THE MTS files and since I wasn't there I wasn't there to see the havoc when neither FCP or TOAST could open the files. I was called in and my first idea was to take an old file structure, copy it, and slip the MTS files into the STREAM folder.
    Well, it worked!! kind of.... The interesting thing is that the files could be converted in TOAST (FCP would not open the files) BUT ONLY TO THE TIME CODE THAT was equivalent to the original file. So if the original file was 1 minute and the file that I only had the MTS file for (and which corresponded to the file's number) was 5 minutes, only 1 minute was converted.)
    So what I did was I took the TM700 and I shot five minutes of my foot. Then I downloaded the full file structure. Since I only took one shot of five minutes there was only one file in the STREAM folder, which was a 598mb file numbered 00000.MTS
    I know I will regret it one day but i deleted the MTS file of my foot. Then I placed in one of the "homeless" MTS files into the (now empty) STREAM folder and changed the name to 0000.MTS -
    When opened in FCP log and transfer - IT DID NOT WORK. However, in TOAST I am happy to say IT WORKED, yayyyy. And the file that was converted was the length of the clip. What I thought might happen is that if the clip was only 30 seconds long but the foster file was 5 minutes then there would be 30 seconds of footage and 4.5 minutes of black empty space on video. That wasn't the case.
    THE SHORT TERM SOLUTION:
    Over the years I have been very very very lucky with all the help I have gotten over the internet and in my own small way I hope the following helps out others. So here is what I have done, with instructions.
    PLEASE NOTE I AM INDONESIAN LIVING IN INDONESIA SO WE USE PAL ..... 25 frames per second. .... Hopefully if someone in North America likes this idea and can help out, they will post a NTSC file structure.
    OKAY INSTRUCTIONS:
    1. Double click this link and download the file structure. The the file structure is only 68kb all your (and mine) frustrations for 68,000 bytes!!
    www.klirkom.com/helpout/AVCHD
    2. If you look inside the folder (AVCD->BDMV->STREAM) you will see AN EMPTY STREAM FOLDER. This is where you will place your "lost/not working" MTS files. Sorry, but this file structure only supports two files at a time. The first file is 5 minutes long, the second file is 33 minutes long (i was going to make it 10 minutes but I forgot about the camera being on and left it for 33 minutes ...)
    3. Change your first file name (preferably an MTS file less than 600mb so that the 'foster' file can cover it) to 00000.MTS. Now change your second file (preferably less than 4GB, but unless you are filming the whole wedding this should be okay for most people.... the important thing to remember is that if you want your full file converted without missing any parts at the end, the files should be smaller in size than the foster files) to the name 00001.MTS
    4. Now drag your newly named and newly placed MTS files into TOAST TITANIUM. Click convert. I have not tried this with other software but hopefully it works for you.
    5. If you want you can now rename your original MTS files to their original names and continue with the next two files. I know with 500 MTS files this is a HUGE pain in the buttox .....
    Okay, good luck all!!
    Jakartaguy

  • How to import photos from a folder that contains hundreds of folders to Photos keeping the same folder structure?

    How to import photos from a folder that contains hundreds of folders to Photos keeping the same folder structure?

    You'll have to do that manually, i.e. export each album of photos to a folder with the same name located on your hard drive via  the File ➙ Export ➙ File Export menu option.
    OT

  • [svn:osmf:] 10268: More MAST plugin folder cleanup to make it similar to the VAST folder structure .

    Revision: 10268
    Author:   [email protected]
    Date:     2009-09-15 09:47:43 -0700 (Tue, 15 Sep 2009)
    Log Message:
    More MAST plugin folder cleanup to make it similar to the VAST folder structure.
    Removed Paths:
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/dom/
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/media/MASTLoad edContext.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/media/MASTLoad er.as

    You are in the wrong forum. Go the InDesign forum or better yet, the mobileread forums at http://www.mobileread.com/forums/
    This forum is for Digital Publishing Suite only.
    Bob

  • [svn:osmf:] 10267: MAST plugin folder cleanup to make it similar to the VAST folder structure .

    Revision: 10267
    Author:   [email protected]
    Date:     2009-09-15 09:45:19 -0700 (Tue, 15 Sep 2009)
    Log Message:
    MAST plugin folder cleanup to make it similar to the VAST folder structure.
    Modified Paths:
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/media/MASTProx yElement.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/parser/MASTPar ser.as
    Added Paths:
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/loader/
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTLoa dedContext.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTLoa der.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTCond ition.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTCond itionManager.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTCond itionOperator.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTCond itionType.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTDocu ment.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTDocu mentProcessedEvent.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTDocu mentProcessor.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTSour ce.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTTarg et.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTTrig ger.as

    Revision: 10267
    Author:   [email protected]
    Date:     2009-09-15 09:45:19 -0700 (Tue, 15 Sep 2009)
    Log Message:
    MAST plugin folder cleanup to make it similar to the VAST folder structure.
    Modified Paths:
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/media/MASTProx yElement.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/parser/MASTPar ser.as
    Added Paths:
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/loader/
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTLoa dedContext.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTLoa der.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTCond ition.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTCond itionManager.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTCond itionOperator.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTCond itionType.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTDocu ment.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTDocu mentProcessedEvent.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTDocu mentProcessor.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTSour ce.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTTarg et.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTTrig ger.as

  • Can I Organise using the original folder structure?

    I spent some time organising my photos into sub-folders in my "my pictures" folder on my drive.  When I imported them into Elements 9 I got a mass of thumbnails all listed in date order.  Is there some way that I can organise my view in PSE by their orignal folders (as for example you can do with Picassa?)
    Thanks for your help!

    Many thanks for both answers and for rapid response!  99jon has solved the probalem and has given the solution I needed.
    The reason for wanting to do it this way is that, having gone to the troble of doing the folder structure, it is a good starting point for anything else I may wish to do with PSE.

  • Using CIS to get UCM environment variables

    Hi,
    I am working on extending an existing CIS application.
    I would need to read the UCM's environment variable value.
    I see there are CIS APIs for the most common actions needed, but couldn't find anything useful in the docs - is there something similar for the env variables?
    Any help is highly appreciated.
    Thanks,
    Zoran

    Do you want to get the port and server name from the web server or from the database?
    If it's the web server have a look at the package OWA_Util.print_cgi_env to get a list (you can also run this procedure in the SQL Workshop) of all available environment variables in the HTTP session context. Use OWA_Util.get_env to read the value of a particular environment variable.
    Hope that helps
    Patrick

  • I am having a problem moving files from a iMac  in location mac in another location.  I have tried using Dropbox and the Public folder in the i disc.  When I drag the files into dropbox they become alias' and I can't open them at the other end beca

    I am having a problem moving files from an imac in one location to an imac inanother location.  I have tried using Dropbox which is installed in both locations but when i drad a file ino yhe app it becomes an alias.  When I get to the other location it says I can't open the file because the " original application that created it is not present".  This is despite the fact that the app that created both files is installed in both computers.  If I use the Public folder in the idisc, when I get to the other location the file isn't there.  Am I forgetting to turn something on or off?  Should I manually sync the Public folder and if so how? Thanks
    Message was edited by: stephenfromdelray beach

    So now that's two of us.  Hopefully, someone has an answer. 

  • Lr Publish Service Provider: trigger by photos being moved within the local folder structure?

    Hi folks,
    I recently finalized my first Lr Export plugin and currently I'm working on the Publish Service Provider enhancements for that Export plugin. So far, everything works as expected except one thing::
    The publish service provider supports mirroring of local directory structures to the publish destination. So, I am interested in photos being moved from one local directory to a different one, since I have to propagate this change to the destination. Lr informs me whenever a photo/video is changed (acc. to my settings in  publishServiceProvider.metadataThatTriggersRepublish()) or deleted, but what about the fact that a photo was moved from local directory a to b?
    Any chance to register a trigger for a photo movement?
    Martin

    That's an interesting approach, never thought that way round!
    It might not be suitable as a general prodedure for every single normal "Publish" action, because if you have e.g. 10 pictures with status "to be re-published" in a collection of  20.000 pics or more you wouldn't expect the Publish plugin to re-check all photo locations. That would make the publish process unacceptable lame and annoy the people.
    But if I define it as a publish option ("check for moved photos only"),  this would be way to "automatically" find and mark moved photos for "to be re-published".
    Well, not exactly what I was hoping for, but a reasonable second best approach.
    Thanks!
    Martin

  • How do I restore the default folder structure in my iPhone internal storage?

    The music folder is missing from the internal storage folder so I can't sync anything to my iphone 4. I do have a small amount of music on my phone though? I can't see where that is stored however. How do i rectify this?

    Check in Restrictions...
    Settings > General > Restrictions
    Understanding Restrictions  >  http://support.apple.com/kb/HT4213

  • Importing pictures using iPhoto to the pictures folder

    I don't understand why I can't select a folder to import my pictures to when using iPhoto. I really like the way I have all my pictures organized in my pictures folder but it only lets me import to the iPhoto library folder. If I try to move the pictures after I import them, then iPhoto can't find them and gets confused. Is there any way to rectify this?

    That is not the way iPhoto works - you need to use iPhoto correctly or use a different program
    iPhoto is a SQL databasse program and it must be the only program that makes changes to its database - you never need to and never should go into its database - you must NEVER make any changes of any sort to the structure or contents of the iphoto library (the SQL dataabase)
    You access your photos via iPhoto or via the media browser in the lower left hand corner of every open/attach/upload window
    If you want to use iPhoto then you need to learn it - start by watching the tutorials
    LN

  • How to make Finder to focus on the last used foto in the iPhoto folder?

    Hello! I have a 1200-fotos iPhoto folder containing fotos of my last voyage. Im trying to upload some of them them to the account of one of the social networks.
    I scroll through them in iPhoto to chose the best then in Safari press "Upload from file" button on the website.
    But every time I press "Upload from file" button and finder window openeswith the focus on the very first foto in folder! And every time I have to scrooll through all the fotos searhing for the needed foto or have to press Command+f and search by name.
    In windows by default  I have a focus on the file being used the last.
    Any ideas how to manage files in this case not having to scroll all the previous files from hte very start?

    Alejandro,
    I have a 1200-fotos iPhoto folder containing fotos of my last voyage. Im trying to upload some of them them to the account of one of the social networks.
    What kind of folder? A folder with albums in iPhoto, or a folder in the Finder? If the Finder, how are you scrolling in iPhoto to browse a folder in the Finder?  Are you using iPhoto in a referenced mode and accessing the originals using the Finder?
    If yes, there is no connection between your browsing position in iPhoto and the browsing of original files in the Finder.
    If you want to upload a photo you have just seen in iPhoto, the simplest way would be to drag it from the iPhoto window to a folder on your desktop (that will export a jpeg version of the photo) and then to upload it from there. That would save you a lot of scrolling.

  • What is the recommended tool to convert all of my email and their attachments in one stroke to pdf files in the same folder structure that emails are stored in

    I have thousands of emails creatively stored in a host of sub folders. I would like to see if anyone knows of a tool that I can point at TB and convert all of my files into a similar file structure with the attachments embedded into the emails. I don't want much I realize. I bet there is a tool out there that will get me close.

    I don't know of a way to produce pdfs in a simple way (probably with a pdf printer driver), but if you export or save messages as eml files, the attachments are embedded in the emls, and emls can be read by most email programs. Besides saving through Ctrl-S, exporting complex folders to eml format is probably best done with [https://addons.mozilla.org/en-us/thunderbird/addon/importexporttools/ ImportExportTools].

  • PDF files have suddenly started downloading to the temp folder instead of the download folder where they used to be-- the downloads folder is marked correctly

    all downloads are set to go to downloads file-- PDFs have quit going there and are in temp folder instead-- all other downloads are still going to the right place

    Deleting the '''mimeTypes.rdf''' will reset all download actions to the default settings.
    Type '''about:support''' in the address bar and press enter.
    Under the page logo on the left side you will see '''Application Basics.'''
    Under this find '''Profile Folder.''' To it’s right press the button
    '''Show Folder.''' This will open your file browser to the current
    Firefox profile. Now '''Close Firefox.'''
    Locate the file. Then rename or delete it. Restart Firefox.

Maybe you are looking for