Tuesday, 22 March 2016

Modifying people picker portlet to pick user-id also as part of search


Modified value:- 
pickerPeopleSearchAttribute  = cn,displayName,sn,uid

Default value: cn,displayName,sn,givenName  

Procedure
1.     Log on to the WebSphere® Integrated Solutions Console.

2.     Click Resources > Resource Environment > Resource Environment Providers.

3.     Find and click the WP PeopleService resource environment provider. The resource environment provider name is case-sensitive.

4.     Click custom properties.

5.     Click the custom properties page and configure the values for following property:

6.     pickerPeopleSearchAttribute  = cn,displayName,sn,uid

7.     Restart IBM® WebSphere Portal server to reflect the changes.

Friday, 12 February 2016

Exporting cache information in Portal

When you run the export cache settings task, a summary of your cache settings is generated and set to the SystemOut.log. 
This includes the type of cache being used, and how it is being applied. For example, basic caching per session, or data caching per site.

Running the export cache settings task :-
Windows
ConfigEngine.bat run-wcm-admin-task-export-cache-settings -DWasPassword=password -DPortalAdminId=username -DPortalAdminPwd=password -Dlibrary=MyLibrary -DinheritPerms=apply -DlibSecurity=true

You can also display your cache settings in a browser using the following URL:-
http://hostname:port/wps/wcm/connect?MOD=ExportCacheSettings&processLibraries=false

Saturday, 30 January 2016

JSONP approach

$.ajax({

url: 'url',
jsonpCallback: "JSON_CALLBACK",
dataType: 'jsonp',
contentType: 'text/plain',
success: function(json) {
console.log(json);
 alert("Success"); },
error: function(jqXHR, textStatus, errorThrown) {
console.log(errorThrown);

alert('Failed!'); },
});

Context :- When JSONP is used for cross domain calls we need to send a parameter '&callback=JSON_CALLBACK ' in this case can we need to alter the output from server to return result wrapped with JSON_CALL

Friday, 29 January 2016

Personalization properties updating cache information

Navigate to below location and pick this  PersonalizationService.properties file from below location.
wp_profile\PortalServer\config\config\services

rulesEngine.cache.timeout=300  :- Update the amount of seconds it should be cached

Monday, 18 January 2016

Websphere portal debug puma issues

Puma trace string :-   To debug any puma related issues please add below trace string in portal administration .


com.ibm.wps.puma.*=all:com.ibm.wps.services.puma.*=all:com.ibm.wps.command.puma.*=all:com.ibm.wps.um.*=all:com.ibm.ws.wim.*=all:com.ibm.websphere.wim.*=all:com.ibm.wsspi.wim.*=all:com.ibm.ws.security.*=all:com.ibm.wps.engine.Servlet=all:

Tuesday, 12 January 2016

Propagation and inheritence differences and clarification websphere portal wcm

Creating a role block - 

  1. On the initial Resource Permissions screen, click the appropriate resource type.
  2. If necessary, search for the appropriate resource instance.
  3. Click the appropriate Assign Access icon.
  4. To create a propagation block, remove the check mark from the appropriate Allow Propagation checkbox. Children of the resource will no longer inherit any assignments for this role type.
  5. To create an inheritance block, remove the check mark from the appropriate Allow Inheritance checkbox. This resource will no longer inherit any assignments for this role type from the parent resource.
  6. Click OK.


Removing a role block-

  1. On the initial Resource Permissions screen, click the appropriate resource type.
  2. If necessary, search for the appropriate resource instance.
  3. Click the appropriate Assign Access icon.
  4. To remove a propagation block, click the appropriate Allow Propagation checkbox so that a check mark appears. Children of the resource will now inherit all assignments for this role type.
  5. To remove an inheritance block, click the appropriate Allow Inheritance checkbox so that a check mark appears. The resource will now inherit all assignments for this role type from the parent resource.
  6. Click OK.

Monday, 11 January 2016

Collecting version info in WebSphere portal IBM

Version info :- Latest version of portal and fix packs applied for product can be found in this log file. To generate this log run below command and pick it from the mentioned location.


Command :- \IBM\WebSphere\PortalServer\bin WPVersionInfo.bat

Location :-  \IBM\WebSphere\wp_profile\PortalServer\log

Custom single threaded java server

 package com.diffengine.csv; import java.io.*; import java.net.*; import java.util.Date; public class Server { public static void main(Str...