01: /* Copyright 2001 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.channels.groupsmanager.commands;
07:
08: import org.jasig.portal.channels.groupsmanager.CGroupsManagerSessionData;
09: import org.jasig.portal.channels.groupsmanager.GroupsManagerXML;
10: import org.w3c.dom.Document;
11: import org.w3c.dom.Element;
12:
13: /**
14: * A Groups Manager command to hide properties for any entity or group
15: *
16: * @author Alex Vigdor
17: * @version $Revision: 34756 $
18: */
19:
20: public class HideProperties extends GroupsManagerCommand {
21:
22: public HideProperties() {
23: }
24:
25: /**
26: * put your documentation comment here
27: * @param sessionData
28: * @throws Exception
29: */
30: public void execute(CGroupsManagerSessionData sessionData)
31: throws Exception {
32: Document model = getXmlDoc(sessionData);
33: String id = this .getCommandArg(sessionData.runtimeData);
34: Element e = GroupsManagerXML.getElementById(model, id);
35: GroupsManagerXML
36: .removeElementsForTagName(e, PROPERTIES_TAGNAME);
37: }
38: }
|