1 package org.enhydra.shark.corba.poa; 2 3 4 import org.enhydra.shark.corba.WorkflowService.ApplicationMapPOA; 5 import org.omg.CORBA.ORB ; 6 7 12 public class ApplicationMapCORBA extends ApplicationMapPOA { 13 14 private String toolAgentClassName = ""; 15 16 private String username = ""; 17 18 private String password = ""; 19 20 private String applicationName = ""; 21 22 private int applicationMode = -Integer.MAX_VALUE; 23 24 private String processDefId = ""; 25 26 private String packageId = ""; 27 28 private String applicationDefinitionId = ""; 29 30 public ApplicationMapCORBA(Collective toJoin) { 31 } 33 34 public ApplicationMapCORBA(Collective toJoin, 35 org.enhydra.shark.api.client.wfservice.ApplicationMap am) { 36 setToolAgentClassName(am.getToolAgentClassName()); 38 setUsername(am.getUsername()); 39 setPassword(am.getPassword()); 40 setApplicationName(am.getApplicationName()); 41 if (am.getApplicationMode() != null) { 42 setApplicationMode(am.getApplicationMode().intValue()); 43 } 44 setPackageId(am.getPackageId()); 45 setProcessDefinitionId(am.getProcessDefinitionId()); 46 setApplicationDefinitionId(am.getApplicationDefinitionId()); 47 } 48 49 public String getToolAgentClassName() { 50 return toolAgentClassName; 51 } 52 53 public void setToolAgentClassName(String name) { 54 if (name == null) return; 55 this.toolAgentClassName = name; 56 } 57 58 public String getPackageId() { 59 return packageId; 60 } 61 62 public void setPackageId(String id) { 63 if (id == null) return; 64 this.packageId = id; 65 } 66 67 public String getApplicationDefinitionId() { 68 return applicationDefinitionId; 69 } 70 71 public void setApplicationDefinitionId(String id) { 72 if (id == null) return; 73 this.applicationDefinitionId = id; 74 } 75 76 public String getProcessDefinitionId() { 77 return processDefId; 78 } 79 80 public void setProcessDefinitionId(String id) { 81 if (id == null) return; 82 this.processDefId = id; 83 } 84 85 public String getUsername() { 86 return username; 87 } 88 89 public void setUsername(String username) { 90 if (username == null) return; 91 this.username = username; 92 } 93 94 public String getPassword() { 95 return password; 96 } 97 98 public void setPassword(String password) { 99 if (password == null) return; 100 this.password = password; 101 } 102 103 public String getApplicationName() { 104 return applicationName; 105 } 106 107 public void setApplicationName(String appName) { 108 if (applicationName == null) return; 109 this.applicationName = appName; 110 } 111 112 public int getApplicationMode() { 113 return applicationMode; 114 } 115 116 public void setApplicationMode(int appMode) { 117 this.applicationMode = appMode; 118 } 119 120 } | Popular Tags |