Showing posts with label IBM Websphere Portal Groups. Show all posts
Showing posts with label IBM Websphere Portal Groups. Show all posts

Sunday, October 17, 2010

Steps to Install/activate IBM WCM Authoring Portlet

Installing the Authoring portlet

The Authoring portlet configuration task will automatically create IBM Workplace Web Content Management pages(IWWCM) and install the Authoring portlet and Local Rendering portlets.
Stop the portal server if already running.

Running the configuration task:(<PortalServer root>\config>)

  1. Open a command prompt.
  2. Run the configure-wcm-authoring task:
    • Windows and UNIX: Run the following command from the <portal_server_root>/config directory:
      • Windows: WPSconfig.bat configure-wcm-authoring -DPortalAdminPwd=password
      • UNIX: ./WPSconfig.sh configure-wcm-authoring -DPortalAdminPwd=password
    • where profile_root is the name of the WebSphere Application Server profile where WebSphere Portal is installed; for example,wp_profile.
  3. Log out of the portal and log back in.
  4. Select Web Content from the main menu to access the Authoring portlet.
  5. In a clustered environment, sometimes the authoring portlet does not get displayed. In such cases you may need to activate the portlet manually or synchronize the nodes in cluster.

Saturday, September 18, 2010

Steps to set up E-mail Notifications during IBM WCM Workflow


Hi Friends,
In IBM Workplace Webcontent Management (IWWCM) you can set up the e-mail notifications during each stage of webcontent management workflow. This helps the web content author and publisher know the status of content which needs to be published.
Here are some additional steps required to set up e-mail notification during a webcontent workflow:
  • ensure the WCMConfigService.properties file is configured to use your SMTP server.
  • ensure the Member Manager user has a valid e-mail address.
In addition to the InfoCenter steps (http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/index.jsp?topic=/com.ibm.wp.ent.doc/wcm/wcm_config_smtp.html) you may need to add a username and password if your SMTP server requires authentication.

Step 1:
Check WCMConfigService.properties file under /wcm/shared/app/config/wcmservices

Step 2:
Add defaultusername and defaultpassword. See example:

#SMTP Mail Setup
connect.connector.mailconnector = defaultsmtpserver, defaultfromaddress, defaultreplytoaddress, defaultusername, defaultpassword
connect.connector.mailconnector.defaultsmtpserver= mail.myserver.com
connect.connector.mailconnector.defaultfromaddress= chirag@myserver.com
connect.connector.mailconnector.defaultreplytoaddress= chirag@myserver.com

#Add these lines:
connect.connector.mailconnector.defaultusername= chirag@myserver.com
connect.connector.mailconnector.defaultpassword= mypassword

Step 3:
Restart IBM WebSphere Portal Server for the new settings to take effect.

Note: For the 6.1 server the config file should be under: was_profile_root/PortalServer/wcm/shared/app/config/wcmservices/

Sunday, August 22, 2010

Sample Code to retrieve IBM WebSphere Portal Users Group information using PUMA API

This is very useful sample code to retrieve user groups of websphere portal 6.0 using PUMA API. There are some changes in PUMA API in 6.1 but the basics still remains the same.

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.portlet.PortletRequest;
import javax.servlet.http.HttpServletRequest;
import com.ibm.portal.portlet.service.PortletServiceHome;
import com.ibm.portal.puma.Group;
import com.ibm.portal.puma.User;
import com.ibm.portal.um.PumaHome;
import com.ibm.portal.um.PumaLocator;
import com.ibm.portal.um.PumaProfile;
import com.ibm.wps.pe.pc.std.core.PortletUtils;

public class GroupInformation {
public List getUserGroups(PortletRequest prequest){
//Start get the servlet request from the portlet request
HttpServletRequest httpRequest = null;
      try{
         httpRequest = PortletUtils.getIncludeServletRequest(prequest);
}
catch (Exception e){
      e.printStackTrace();
}
//End
PortletServiceHome psh;
PumaHome pumahome = null;
List groupsNames = new ArrayList();
      try{
javax.naming.Context context = new javax.naming.InitialContext();
psh = (PortletServiceHome) context.lookup ("portletservice/com.ibm.portal.um.portletservice.PumaHome");
if (psh != null)
pumahome = (PumaHome) psh.getPortletService(PumaHome.class);
PumaProfile pumaprofile = (PumaProfile)pumahome.getProfile(httpRequest);
User user = (User) pumaprofile.getCurrentUser();
PumaLocator pumalocator = pumahome.getLocator(httpRequest);
List groups = pumalocator.findGroupsByPrincipal(user, false);
Iterator iter = groups.iterator();
while (iter.hasNext()){
Group grp = (Group) iter.next();
groupsNames.add(grp.getName());
}
      }
      catch (Exception e){
      e.printStackTrace();
      }
      return groupsNames;
      }
}