Export of SDM does not appear level site customization.

Recently, we have allowed customization by the user by creating UserCC and SiteCC classes. It works very well. Customization by the user is get stored the EBU to level and at the site level personalization site.

But now when we export MDS of the Manager of the company to its only showing the customization by the user. Zip file does contain any customization of site level.

We are sure that there is no level customization of site as any changes made by admin mode Ctrl + Shift + E is available for all users.

Any suggestion why EM is not download site level customizations?

Thank you

Sanjeev

Hello.

Probably, I get a little confused.

Just to sum up the steps:

  • (Optional) Develop your UserCC and the SiteCC (if you want) as a result of the official documentation or as a result of the custom reference. You can copy directly from them by ensuring that the UserCC is it to use the ADFContext.
  • ADF - config.xml file, you can define the list of customization Classes to use in each MDS path.

By default in a Portal Application contains:


             
              
                
                   
                
        

It means that using SiteCC of ' / ' for customization of all. For example, it can be modified to allow two layers.


                
            
            
              
              
            
          

For DS Portal (spaces) in "/" by defaul uses:


               
               
           
  • It works just configuration UserCC and SitesCC?. No, you must create a ComposerSessionOptions to do the job between the evolution of the patterns.

For example, shot from Andrejus Blog:

public class PortalSessionOptionsFactoryImpl implements ComposerSessionOptionsFactory {
    public PortalSessionOptionsFactoryImpl() {
    }

    public SessionOptions createSessionOptions(SessionOptions sessionOptions, String mode) {
        CustomizationClass[] custLayer;
        CustConfig custConfig = null;
        CustomizationPolicy cPol = null;
        SecurityContext stx = ADFContext.getCurrent().getSecurityContext();

        if (ModeContext.EDIT_MODE.equals(mode) && stx.isUserInRole("Administrator")) {
            //Mode is Edit, change to SiteCC
            custLayer = EDIT_LAYER;
        } else if (ModeContext.EDIT_MODE.equals(mode)) {
            //Mode is Edit, change to UserCC
            custLayer = EDIT_PERSONAL_LAYER;
        } else {
            //Mode is View, change to UserCC + SiteCC
            custLayer = VIEW_LAYER;
        }

        try {
            CustClassList custClassList = new CustClassList(custLayer);
            CustClassListMapping custClassListMapping = new CustClassListMapping("/", null, null, custClassList);
            custConfig = new CustConfig(new CustClassListMapping[] { custClassListMapping });
            cPol = new CustomizationPolicy(stx.getUserRoles());
        } catch (Exception e) {
            e.printStackTrace();
        }
        if (sessionOptions.getServletContextAsObject() != null) {
            return new SessionOptions(sessionOptions.getIsolationLevel(),
                                      sessionOptions.getLocale(), custConfig,
                                      sessionOptions.getVersionContext(),
                                      sessionOptions.getVersionCreatorName(),
                                      cPol == null ?
                                      sessionOptions.getCustomizationPolicy() :
                                      cPol,
                                      sessionOptions.getServletContextAsObject());
        } else {
            return new SessionOptions(sessionOptions.getIsolationLevel(),
                                      sessionOptions.getLocale(), custConfig,
                                      sessionOptions.getVersionContext(),
                                      sessionOptions.getVersionCreatorName(),
                                      cPol == null ?
                                      sessionOptions.getCustomizationPolicy() :
                                      cPol);
        }
    }
    //Edit mode SiteCC
    private static final CustomizationClass[] EDIT_LAYER = new CustomizationClass[] { new SiteCC() };
    //Edit mode UserCC
    private static final CustomizationClass[] EDIT_PERSONAL_LAYER = new CustomizationClass[] { new UserCC() };
    //View mode SiteCC + USerCC
    private static final CustomizationClass[] VIEW_LAYER = new CustomizationClass[] { new SiteCC(), new UserCC() };
}
  • This class must be configured as part of the adf-config. XML

     your.java.package.PortalSessionOptionsFactoryImpl

To make it work, you also have to register after the filter in the web.xml file. This filter must be declared before the adfBindings.


  
    composerFilter
  oracle.adf.view.page.editor.webapp.WebCenterComposerFilter
  
  
    adfBindings
    oracle.adf.model.servlet.ADFBindingFilter
  
.....
  
  
    composerFilter
    Faces Servlet
    FORWARD
    REQUEST
  
  
    adfBindings
    Faces Servlet
    FORWARD
    REQUEST
  
....
  • Troubleshooting If still does not work:

    • If that does not work, turn on customizing user portal - project properties-> view ADF (check the checkboxes customization).
    • Change the value of org.apache.myfaces.trinidad.CHANGE_PERSISTENCE to oracle.adf.view.rich.change.MDSDocumentChangeManager.

With this, it should work and WebCenter should export all the MD as you say now that ' / ' will use the SiteCC and UserCC layers.

I hope this helps

Kind regards.

Tags: Fusion Middleware

Similar Questions

Maybe you are looking for

  • iMac crashing (yet)

    And so it goes. these accidents are less frequent but still happening. Without apparent reason and without obvious fault with no special software. As a result of a systemic crash today, I reinstalled my entire suite Adobe (making sure to eliminate le

  • HP Officejet Pro 8610 and G62: both computer HP laptop and printer do not work not today

    Last night, the printer stopped working and posted message indicating its ' in offline mode. Then this morning, impossible to download the documents on HP G62 online and offline to send. I had changed my Windows 10 OS two months ago, but so far had n

  • ThinkPad x120e - weight and Dimensions of Lenovo shipping box

    Problem - I need to know the total weight and the dimensions of the box that the X120e (0596CTO) is sent to help. Reason - I am wanting to buy a Thinkpad X120e and the ship forward in Australia, cos, although the X100e has been marketed in Australia,

  • Dell Latitude 10 ST2: Screen very dark after the Windows Update 8.1 & gameplay of Diablo 2

    Hello community, I just got a new Latitude 10 ST2, and I really appreciated the help until after that I updated for Windows 8.1 and played some Diablo 2. For some reason, my brightness is now always very low, regardless of whether the Adaptive bright

  • Problem with the number of files?

    Hello guys,. I have a problem with the compilation of some projects... I realize that when my project 201 records in total (including the file config.xml, Active Directory and directory ext) they do not compile. If I delete all the files (if the proj