Resetting the portal desktop
Hello,
I was wondering if there is a way that a user can reset their portal desktop back to the default? If we need to write a function ourselves for doing this, is it as simple as clearing out the display profile at the user level? If so, is there an existing tag or function for doing this?
Thank you very much,
Tracy.
[352 byte] By [
tracyg1] at [2007-11-25 19:10:22]

# 1
I have not seen anything in the API, but you could easily add a function that clears out the sunportaldesktopdpdocument and sunportaldesktopdpdocumentuser LDAP attributes for that user.
# 2
Thanks a lot for your help. I will write a utility to do that. Do you happen to know what the difference between the sunportaldesktopdpdocument and the sunportaldesktopdpdocumentuser LDAP attributes is?Thanks again!Tracy.
# 3
the difference is that sunportaldesktopdpdocument contains global default desktop display profile. The sunportaldesktopdpdocumentuser is a specific user display profile. you can check it by viewing DS console for any user. Just invoke "Edit with Generic Editor", you will see both content. Jerry
# 5
> I have not seen anything in the API, but you could
> easily add a function that clears out the
> sunportaldesktopdpdocument and
> sunportaldesktopdpdocumentuser LDAP attributes for
> that user.
Hi Jerry,
I have been looking at writing a function to clear those attributes and I have gotten a little lost. Do you know what the best way to clear those attributes would be? Would it be best to write a java class that uses a java LDAP api to clear them, then write a custom provider to call that class? Would it be better write a class that calls dpadmin using Runtime.exec(), then call that class from a provider? Is there a better way to do this that I am missing?
Thanks a lot for your help,
Tracy.
# 6
I don't know what you really wish to accomplish. What I did was to use ldapmodify to reset or change any specific attribute. I'm not suppose to offer programming opinion. Good luck, Jerry
# 7
> I have not seen anything in the API, but you could
> easily add a function that clears out the
> sunportaldesktopdpdocument and
> sunportaldesktopdpdocumentuser LDAP attributes for
> that user.
Hi Jerry,
I have been looking at writing a function to clear those attributes and I have gotten a little lost. Do you know what the best way to clear those attributes would be? Would it be best to write a java class that uses a java LDAP api to clear the attributes, then write a custom provider to call that class? Would it be better write a class that calls dpadmin using Runtime.exec(), then call that class from a provider? Is there a better way to do this that I am missing?
Thanks a lot,
Tracy.
# 8
Hello,
Thanks a lot for your help. I had not thought of using ldapmodify.
Here is (I hope) a better explanation of what I am trying to do:
1. I want to replace the Mobile Devices link on the menu with a Reset Desktop link so that users that modify their desktop too much have an easy way to get back to the original setting
2. When the user clicks the Reset Desktop link, I would like to show them a warning to let them know that they will lose any customizations that they have made, and an ok and cancel button
3.When the user clicks the ok button, I would like to clear the sunportaldesktopdpdocument and sunportaldesktopdpdocumentuser LDAP attributes for that user, then return them to the front page or maybe let them know that they need to logout and back in to see the changes.
I would really appreciate any suggestions that would point me in the right direction, as I am not sure of what the best way to do this would be.
Thanks a lot!
Tracy.