Option | Description |
---|---|
For all users | Invalidate the cache for all users (including the current user). |
For user | Invalidate the cache for a specific user by specifying a user name. |
The system invalidates the client caches.
Now you will be able to see the display log screen as below
The portal provides a tool called Personalization Cleanup that enables an administrator to remove a specific user's personalization on a specific object.
This is particular useful when an attribute is defined in the portalapp.xml of a portal component, then is personalized, and then needs to be updated in the portalapp.xml . After the new portal component is deployed, the personalized value is still present in the PCD, and supercedes even the new value in the portalapp.xml .
To remove personalization for a specific object, do one of the following:
Search by Object
Select the Object radio button.
Enter the PCD name of the object (without the pcd: prefix)
Click Show . All users with personalization for the specified object are displayed.
Select the users whose personalization you want to remove.
Click Remove .
Search by User, Group or Role (Principal)
Select the Principal radio button.
Enter a search string for the user, group or role whose personalization you want to remove.
Click Show . All users who fit the search string and with any personalization in the PCD are displayed.
Select the logon ID of the user, group or role whose personalization you want to remove. All objects personalized by the selected principal are displayed.
Select the objects from which you want to remove personalization for the selected user, group or role.
Click Remove .
Personalization can be removed by performing a personalized lookup (a lookup in which a personalization principal is specified), and then removing some or all of the modifications by calling removeModifications() or removeAttributeModifications() on the IPcdContext object. This removes the personalization for the user specified as the personalization principal.
These are the same methods for removing delta link modifications when performing a nonpersonalized lookup.
The following removes all personalization from an object for the current user:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(Constants.REQUESTED_ASPECT, IPcdAttribute.PERSISTENCY_ASPECT);
env.put(Context.SECURITY_PRINCIPAL, request.getUser());
env.put(IPcdContext.PCD_PERSONALIZATION_PRINCIPAL, request.getUser());
InitialContext iCtx = null;
String myObjectName = "pcd:portal_content/myFolder/myObject";
try {
iCtx = new InitialContext(env);
IPcdContext myObject = (IPcdContext) iCtx.lookup(myObjectName);
myObject.removeModifications("");
}
catch (Exception e) {}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
7 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |