This discussion is archived
4 Replies Latest reply: May 27, 2013 5:41 AM by Jaap Spiering RSS

Deleting all user level customizations

Jaap Spiering Explorer
Currently Being Moderated
In our WebCenter Portal 11g, PS5 with latest bundle patch, we have quite a few user-level customizations stored in MDS.
However, we have just changed our user base (different LDAP), so many of the users are no longer valid.

Does anyone know of a nifty way to delete all the existing user level customizations (and whatever else is stored in MDS on the user level)?
  • 1. Re: Deleting all user level customizations
    Daniel Merchán Expert
    Currently Being Moderated
    Hi Jaap.

    I think that you will need to code some Java using MDS API to achieve your purpose.

    I though in a solution based on next ideas:
    1) Analyze metadata paths used by WebCenter in adf-config.xml (It indicates root path folders where apply customizations).
    You have to take entries that are using oracle.webcenter.webcenterapp.internal.metadata.WebCenterUserCC customization class
    2) Use MDS API to go every possible /cust/user folder of preconfigured paths of MDS and remove it. You can decompile previous class to check how and where is storing User customization class.

    However the approach couldn't be good. Why?.
    1) If you download and double check MDS paths (where user customizations are) always is using user name encrypted and then isn't easy generate MDS path to remove user customizations. Should investigate where and how is encrypting user when storing.
    2) You have to know what users are obsolete because you have to generate the path based on that userID (encrypted).

    It's only an idea in my mind. Don't know if exists better approach or something OOTB to delete User customization of obsolete users.

    I hope this help you.

    Regards.
  • 2. Re: Deleting all user level customizations
    Jaap Spiering Explorer
    Currently Being Moderated
    Hi Daniel,

    thank you for the comprehensive answer. I'm afraid that indeed the best solution is to create some custom tool to achieve this requirement.

    Some links for reference:

    http://andrejusb.blogspot.nl/2010/09/advanced-mds-management-for-oracle-adf.html
    http://multikoop.blogspot.nl/2012/01/adf-mds-power-user-layer-and-to-control.html
    http://oraclemw.blogspot.nl/2011/04/working-with-oracle-mds-repository.html
    https://blogs.oracle.com/ateamsoab2b/entry/full_access_to_mds_repository
  • 3. Re: Deleting all user level customizations
    Daniel Merchán Expert
    Currently Being Moderated
    Hi Jaap.

    If you activate "Customization Manager Task Flow" I remember that it allow you to remove "All Customizations" or "User only Customizations" (you can select which layer).
    http://docs.oracle.com/cd/E14571_01/webcenter.1111/e10148/jpsdg_page_editor_intro.htm#BHCEHIIA

    If you find something easier and OOTB share it :).

    Regards.

    Edited by: Daniel Merchán on 22-may-2013 13:00
  • 4. Re: Deleting all user level customizations
    Jaap Spiering Explorer
    Currently Being Moderated
    Hi Daniel,

    thanks for pointing me to that link. I think I read about the Customization Manager once, haven't tried it yet. I'll have a look at it :)

    Jaap

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points