Hi,

We are using GroupManager jetspeed services in our application to
enable/disable a group as shown below.But this functionality is not
working.Is it a issue in jetspeed 2.1 or we are doing something wrong?

   // Enabling customer
    PortletConfig  portletConfig  =
(PortletConfig)request.getAttribute("javax.portlet.config");
    groupManager = (GroupManager)
portletConfig.getPortletContext().getAttribute(CommonPortletServices.CPS
_GROUP_MANAGER_COMPONENT);       
     GroupPrincipal gp=(GroupPrincipal)
groupManager.getGroup("Communications").getPrincipal();  
     gp.setEnabled(true);
   
        
   //Disabling customer
   PortletConfig  portletConfig  =
(PortletConfig)request.getAttribute("javax.portlet.config");
   groupManager = (GroupManager)
portletConfig.getPortletContext().getAttribute(CommonPortletServices.CPS
_GROUP_MANAGER_COMPONENT);
   GroupPrincipal gp=(GroupPrincipal)
groupManager.getGroup("Communications)").getPrincipal();  
   gp.setEnabled(false); 

 

regards

ravi


               
        

Reply via email to