Sunday, 27 March 2016

Library displays as locked in administration tab of portal

Unlocking a library:-
A library can become locked when a long running task, such as restoring all content items in a library, fails to unlock the library. In the rare event where a library becomes locked, you can use the unlock library tool to unlock the library.

Set below properties in WCM WCMConfigService WebSphereApplication Server administration console:
connect.businesslogic.module.unlocklibrary.class=com.aptrix.pluto.security.UnlockLibraryModule
connect.businesslogic.module.unlocklibrary.remoteaccess=true
connect.businesslogic.module.unlocklibrary.autoload=false

Procedure to unlock:-
Log in to the portal as an administrator.
To unlock a library, enter the following URL in the browser:
http://hostname.yourco.com:port_number/wps/wcm/connect?MOD=UnlockLibrary&library=libraryname

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.

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...