* @param context The velocity context for this request.
*/
public void doDelete(RunData rundata, Context context)
throws Exception
{
Group group = null;
try
{
//
// get the group object from the selected group entry in the browser
//
group = JetspeedSecurity.getGroup(
rundata.getParameters().getString( SecurityConstants.PARAM_ENTITY_ID) );
//
// remove the group
//
JetspeedSecurity.removeGroup(group.getName());
}
catch (Exception e)
{
// log the error msg
logger.error("Exception", e);
//
// error on delete - display error message
//
DynamicURI duri = new DynamicURI (rundata);
duri.addPathInfo(SecurityConstants.PANE_NAME, SecurityConstants.PANEID_GROUP_UPDATE);
duri.addPathInfo(SecurityConstants.PARAM_MSGID, SecurityConstants.MID_DELETE_FAILED);
if (group != null)
duri.addPathInfo(SecurityConstants.PARAM_ENTITY_ID, group.getName());
duri.addQueryData(SecurityConstants.PARAM_MODE, SecurityConstants.PARAM_MODE_DELETE);
rundata.setRedirectURI(duri.toString());
// save values that user just entered so they don't have to re-enter
if (group != null)