Get programmatically all the portlets associated to a desktop

Hi,
I need to create a desktop programmatically and then change the value of a portlet preferences in every portlet of the desktop I just created.
I create my desktop like this :
DesktopDefinition def = desktopDefinitionControl.createDesktopFromPortalFile("myAppWeb/test.portal", "VisitorDesktop", "Visitor description",
"myAppWeb", new PortalPath("portal"), new DesktopPath("visitorDesktop"), CustomizationContext.DISASSEMBLER_ACCEPT_TEMPLATE,
ResourceContext.createResourceContext(this.getRequest(), true));
and it works fine. I now need to get all the portlets of this desktop and modify a specific portlet preference.
Is there a way to get all the portlets from a desktop ??
Thx for your help,
Guillaume
(I use Weblogic Portal 10.0)

No, there's no way to get all the portlets in a given desktop with one call. You'll have to recursively drill down starting with the main book and get the portlets for each page. Using the desktop control, you can grab the DesktopView, which gives you access to everything contained in the desktop. Using the DesktopView, you can then get the main BookView, and then recursively work down through each contained Book/PageView to get to each PortletView.
If you have a known set and/or small number of portlets to act on, you could also use the DesktopView.getPortletViewRecursive() call, which will return you the PortletView for any instance you specify, no matter where it is in the portal.
Jeff

Similar Messages

  • If i backup an app for example Music Downloader as it contains like 300 songs and now i want to replace my iphone 5 so when i restore the app from itunes do i get back all the content in the app or just the app itself ??..

    If i backup an app for example Music Downloader as it contains like 300 songs and now i want to replace my iphone 5 so when i restore the app from itunes do i get back all the content in the app or just the app itself ??..

    Hey Hussain,
    I am not sure whether the music will get restored.
    Anyway try this
    1.Connect iPhone to PC.
    2.Open iTunes
    3.Open iPhone Summary
    4.Go to Apps Tab
    5.Under File Sharing Section Click on Music Downloader
    6.Right side if you see your songs click on one song and press (CTRL + A).(hope you are using windows) and click  on save and then save to  a folder on your computer.
    7. Later just do steps till 5 to put to new iPhone then ...........
    8.Click on save and select the music files which u want to put in that app.
    9.Click on apply to sync.
    10.You should be having the music in that app
    Hope it helps,
    Rohit

  • I can get video on airplay anytime but i cannot get audio all the time.  in sound output i select airplay but it only reverts back to internal speakers.  same if i try earbuds.  the only way to fix it is to restart computer.  what do i do to fix it,

    I can get video on airplay anytime but i cannot get audio all the time.  in sound output i select airplay but it only reverts back to internal speakers.  same if i try earbuds.  the only way to fix it is to restart computer.  what do i do to fix it,

    In case anyone has had the same problem as me, I have just managed to fix this by doing the following:
    Switch off Mac
    Switch back on in Safe Mode (Hit power button, then hold Shift key until a loading bar appears at the bottom of the screen).
    Switch off Mac again
    Remove power cord and wait 15 seconds
    Plug power cord back in and hold down the keys alt, cmd, p, r all at the same time until you hear Starting chime for a second time and hopefully your audio will back.

  • Every time i connect my iphone to itunes and trying to do a backup or get the new update it says i have to restore my iphone. and then that doesnt work, i tried to reinstall itunes but it doesnt work. i get this all the time. fix it please.

    Every time i connect my iphone to itunes and trying to do a backup or get the new update it says i have to restore my iphone. and then that doesnt work, i tried to reinstall itunes but it doesnt work. i get this all the time. fix it please.

    iTunes states " There's a problem with your Iphone, please contact apple service center " Also i took my iphone to a local service man and he told me the IMEI code has been corrupted and there's nothing that can be done about it. Please help, if you have any solution.
    Thank you

  • While deleting an album, I hit select all, instead of deleting just that album the entire genre was deleted. I was able to get back all the purchased songs , but none of the cds that were in my collection. Any way to get those songs back?

    While deleting an album, I hit select all, instead of deleting just that album the entire genre was deleted. I was able to get back all the purchased songs , but none of the cds that were in my collection. Any way to get those songs back?

    Assume you were in itunes?  Also assuming windows?  Two paths I can think of.....
    1) Normally anything deleted from itunes goes to recycle bin.  If you did not pick remove from computer probably still in itunes music directory.  Just add back.  Note to speed things up you can use add directory.
    2) Use restore previous version of music directory.  To be safe I'd back up current directory, do a restore, then swap back original directory and use restored directory off line.
    I do not know of nice solution, I like to hack my way through.

  • I just clean installed maverick on my computer and I have nothing in my iTunes library, how can I get back all the music I have bought?

    I just clean installed maverick on my computer and I have nothing in my iTunes library, how can I get back all the music I have bought?

    From your backups. By doing a clean install you erased your startup volume. You may have installed OS X, but your personal software was erased. You can restore from backups if your have them. If not, then you've lost it all, permanently.

  • How can I get back all the factory channel strip presets?

    Hi Guys
    I have deleted some of the channel strip presets in Logic 8, is there any easy way of getting back all the original factory ones?
    Cheers,
    Mike

    yeloop wrote:
    Hey there,
    Thanks for the quick reply!
    Once I find them, do I just drag them into a specific presets folder on the Mac? (if so, which folder?)
    Or can the installer be run just for the channel strip presets?
    I don't want to end up with duplicates by mistake, either!
    Thanks again,
    Mike
    Yes, you drag them over.
    Roght click on the installer packages on the DVDs, and click on the "show package conte4nts" button. This will open the installer package, then navigate until you find the presets. If you have several DVDs, it may take time to get to them, but they're there.
    You'll have to place them in your drive here :
    Macintosh HD / Library / Application Support / Logic /
    That is where all the presets are found. You might have to enter your admin password to copy them over.
    Cheers

  • How do I get back all the songs stored in iTunes after they were wiped out off my computer?

    How do I get back all the songs stored in iTunes after they were wiped out when I re-installed Windows 7?

    jldacmd wrote:
    How do I get back all the songs stored in iTunes after they were wiped out when I re-installed Windows 7?
    You did not make a backup of your computer before you erased it?

  • How to find out all the tables associated with particular T-code or Program

    Hi All,
    In 4.6B we have a transaction code SE49, where we can see all the tables associated with particular Transaction code or Program.
    But in ECC 5.0 or in ECC 6.0 this transaction code is not available.So is there any alternative where i can find out all the tables associated with particular T-code or Program.
    Thanks
    Shubham

    Hi,
    you are right, Transaction SE49 as well as SE48 do not exist anymore I'm afraid, they        
    are discontinued.                                                              
    You might try to create a transaction variant:                                        
    1) Start SE93 to create a transaction variant                                         
    2) Specify a name, eg. ZSE49, and choose the first option:                            
       "program and screen (dialog transaction)                                           
    3) Here specify SAPMSEUZ as program, and 200 as screen number                         
    4) Choose a suitable development class (package) if you want it to be                 
       transportable or Local (=$TMP) if non-transportable                                
    5) press Save                                                                         
    Same applies for SE48, same program but dynpro 100.                                   
    Sorry for not being able the reasons behind the decision to discontinue            
    these transactions. I suppose at least part of the functionality was               
    integrated in SE38.           
    Best regards
    Erika

  • My iphone  gets overheated all the time, what's wrong????

    My iphone gets overheated all the time. Tips? Solutions?

    Hello User99999999999010
    If you are having issues with your iPhone getting hot, the article below will give you some insight on the matter. Also check to make sure you do not have any apps running in the background that could cause the phone to run even when the iPhone is asleep.
    iOS devices: Keeping device within acceptable operating temperatures
    http://support.apple.com/kb/ht2101
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • My daughter and granddaughter both have the same model iPhone.  I can text my granddaughter but when I try to text my daughter I get the message that she is not registered at iMessage, but I know that she is and gets texts all the time. What do I need to

    My daughter and granddaughter have the same model iPhone.  I can go messages and text my granddaughters phone from my ipad2, but when I try to text my daughter I get the message that she is not registered with I message, but she is registered and gets texts all the time.  What do we need to do?

    Pattypegr wrote:
    The blue bubble will not turn on on the iPad when I try to message her on her I phone.  She has IMessage turned on.
    What blue bubble are you trying to turn on? If you mean that the Send button will not work, go to Settings>Messages>Show Subject Field>Off. Make sure that is set to off.
    If you send an iMessage, the texts between the devices appear in a blue bubble.
    iMessages only work between iOS devices and they are different than the standard text messages that any cell phone can send to another cell phone.

  • When an iPad is connected to the MacBook And the option says it will make a full back of the iPad to the computer does that mean ALL the files associated with apps on the iPad? If so where is the backup located on the computer?

    When an iPad is connected to the MacBook and the option in iTunes says it will make a full back of the iPad to the computer does that mean ALL the files associated with ALL apps on the iPad? If so where is the backup located on the computer?

    Yes.  http://support.apple.com/kb/ht4946

  • I install new hard drive 500gb and i still have 400gb available but my macbook run very slow getting rainbow all the time on screen

    i have install new hard drive 500gb and i still have 400gb available but my macbook run very slow getting rainbow all the time on screen.
    need help

    First boot into recovery and select Disk Utility>First Aid and repair the disk.
    If there is no improvement, perform a Safe Boot:
    http://support.apple.com/kb/ht1
    If there is an improvement, then third party applications are probably the cause of the problem.
    Ciao.

  • I can not restore the software on my 3g  I get almost all the way thru and get a fault of 1015

    I can not restore the software on my 3g iphone.  I get almost all the way thru the update and I get a fault of 1015.  Does anyone know how to fix this

    According to Apple documentation error 1015 is:
    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.  Very rarely this error is caused by a hardware issue and requires service.

  • Hi guys.. anyone can help me? I lost my iphone, how to get back all the data is there?

    I lost my iphone, how to get back all the data is there?

    Thank you for explain kappy..
    how if I want to get my skype message? is it can ? help me..

Maybe you are looking for

  • Set BorderPane components size

    I want to set the size of the Center, Top, Left, Right and Bottom components of a BorderPane. http://i.stack.imgur.com/hY8i6.png So far I found this: BorderPane() mainpane = new BorderPane(); mainPane.getBottom().prefWidth(sizeX); For example how I c

  • MS configure program: encryption format for UGDIR_BINDPW and CFGDIR_BINDPW

    Hi Sun Folks, I am creating a silent installation script for JES 3 messaging and I have come to a bit of roadblock. I would like to create a state file to use with the Messenger Server configure program "/opt/SUNWmsgsr/sbin/configure" and pass to it

  • Playing sound from my macbook to my imac

    I'm using my iMac as an external display for my macbook pro. Since my iMac does not support thurderbolt, I've had to connect it using a Mini displayport. I've bought a 3.5mm Male to Male Stereo Cable so I could play the sound from my macbook through

  • Filling out Canadian Tax Form GST506 E

    Hi, I am registered Apple Developer from Canada. In "Part D" of this form it says that "Have an authorized person of your company sign and date w/t his/her title". I'm not involved in a company, whatsoever. I am an Individual that would like to creat

  • I Can't Use gestures On Firefox, But I Can On Explorer Is There An Add On For This

    I Have A Dell Inspiron One 2305 An It Has A Touch Screen Which You Can Use Gestures To Zoom In & Out With Two Finger Or Pinch The Screen Surface (Like An I Phone)..It Works On The Explorer Browser But Not On Firefox..Is There An Add On For This Probl