1 package com.opensymphony.workflow.loader; 2 3 import java.io.PrintWriter ; 4 5 import org.w3c.dom.Element ; 6 7 11 public class PermissionConditionDescriptor extends ConfigConditionDescriptor 12 { 13 protected String owner; 14 15 public PermissionConditionDescriptor(PaletteDescriptor palette) 16 { 17 super(palette); 18 } 19 20 public PermissionConditionDescriptor(PaletteDescriptor palette, Element condition) 21 { 22 super(palette, condition); 23 } 24 25 public PermissionConditionDescriptor(PermissionConditionDescriptor permission) 26 { 27 super(permission); 28 owner = permission.getOwner(); 29 } 30 31 public void writeXML(PrintWriter writer, int indent) 32 { 33 throw new UnsupportedOperationException (); 34 } 35 36 protected void init(Element condition) 37 { 38 super.init(condition); 39 owner = XMLUtil.getChildText(condition, "owner"); 40 } 41 42 public String getOwner() 43 { 44 return owner; 45 } 46 47 public void setOwner(String string) 48 { 49 owner = string; 50 } 51 } 52 | Popular Tags |