Disabling Groups and Roles is a long time feature we want to provide (hence the
preliminary api you've found), but which still isn't implemented fully yet.
Currently, this feature is slated for the next major release, 2.2.
See: https://issues.apache.org/jira/browse/JS2-27
Regards,
Ate
Kumar, Ravi R wrote:
Hi,
I checked the group manager api.
setGroupEnabled(String groupFullPathName, boolean enabled)
Enable or disable a group.
groupManager.setGroupEnabled("Communications", false);
But still iam not able to disable the group.When I retrieve the all
groups the status is still true.
Regards
Ravi
-----Original Message-----
From: David Sean Taylor [mailto:[EMAIL PROTECTED]
Sent: Friday, July 06, 2007 12:12 AM
To: Jetspeed Users List
Subject: Re: Group Enable/Disable is not working
On Jul 5, 2007, at 7:00 AM, Kumar, Ravi R wrote:
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);
Try this API:
http://portals.apache.org/jetspeed-2/multiproject/jetspeed-api/
apidocs/org/apache/jetspeed/security/GroupManager.html#setGroupEnabled
(java.lang.String,%20boolean)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]