01: package com.opensymphony.workflow.loader;
02:
03: import java.io.PrintWriter;
04:
05: import org.w3c.dom.Element;
06:
07: /**
08: * @author jackflit
09: * Date: 2003-11-21
10: */
11: public class PermissionConditionDescriptor extends
12: ConfigConditionDescriptor {
13: protected String owner;
14:
15: public PermissionConditionDescriptor(PaletteDescriptor palette) {
16: super (palette);
17: }
18:
19: public PermissionConditionDescriptor(PaletteDescriptor palette,
20: Element condition) {
21: super (palette, condition);
22: }
23:
24: public PermissionConditionDescriptor(
25: PermissionConditionDescriptor permission) {
26: super (permission);
27: owner = permission.getOwner();
28: }
29:
30: public void writeXML(PrintWriter writer, int indent) {
31: throw new UnsupportedOperationException();
32: }
33:
34: protected void init(Element condition) {
35: super .init(condition);
36: owner = XMLUtil.getChildText(condition, "owner");
37: }
38:
39: public String getOwner() {
40: return owner;
41: }
42:
43: public void setOwner(String string) {
44: owner = string;
45: }
46: }
|