1 package org.enhydra.shark.appmappersistence; 2 3 import org.enhydra.shark.api.internal.appmappersistence.ApplicationMap; 4 5 10 public class DODSApplicationMap implements ApplicationMap { 11 12 private String toolAgentName; 13 private String username; 14 private String password; 15 private String applicationName; 16 private Integer applicationMode; 17 private String processDefId; 18 private String packageId; 19 private String applicationDefinitionId; 20 21 public DODSApplicationMap() { 22 } 23 24 public DODSApplicationMap( 25 String toolAgentName, 26 String username, 27 String password, 28 String appName, 29 Integer appMode ) { 30 31 setToolAgentClassName( toolAgentName ); 32 setUsername( username ); 33 setPassword( password ); 34 setApplicationName( appName ); 35 setApplicationMode( appMode ); 36 37 } 38 39 public String getToolAgentClassName() { 40 return toolAgentName; 41 } 42 43 public void setToolAgentClassName( String name ) { 44 if( name != null && !name.trim().equals("") ) 45 this.toolAgentName = name; 46 else 47 this.toolAgentName = null; 48 } 49 50 public String getPackageId() { 51 return packageId; 52 } 53 54 public void setPackageId( String packageId ) { 55 if ( packageId != null && !packageId.trim().equals("") ) 56 this.packageId = packageId; 57 else 58 this.packageId = null; 59 } 60 61 public String getApplicationDefinitionId() { 62 return applicationDefinitionId; 63 } 64 65 public void setApplicationDefinitionId( String applicationDefinitionId ) { 66 if( applicationDefinitionId != null && !applicationDefinitionId.trim().equals("") ) 67 this.applicationDefinitionId = applicationDefinitionId; 68 else 69 this.applicationDefinitionId = null; 70 } 71 72 public String getProcessDefinitionId() { 73 return processDefId; 74 } 75 76 public void setProcessDefinitionId( String processDefId ) { 77 if( processDefId != null && !processDefId.trim().equals("") ) 78 this.processDefId = processDefId; 79 else 80 this.processDefId = null; 81 } 82 83 public String getUsername() { 84 return username; 85 } 86 87 public void setUsername( String username ) { 88 if( username != null && !username.trim().equals("") ) 89 this.username = username; 90 else 91 this.username = null; 92 } 93 94 public String getPassword() { 95 return password; 96 } 97 98 public void setPassword( String password ) { 99 this.password = password; 100 } 101 102 public String getApplicationName() { 103 return applicationName; 104 } 105 106 public void setApplicationName( String appName ) { 107 if( appName != null && !appName.trim().equals("") ) 108 this.applicationName = appName; 109 else 110 this.applicationName = null; 111 } 112 113 public Integer getApplicationMode() { 114 return applicationMode; 115 } 116 117 public void setApplicationMode( Integer appMode ) { 118 this.applicationMode = appMode; 119 } 120 121 public String toString() { 122 String retVal = ""; 123 retVal += "toolAgentClassName=" + toolAgentName + "\n"; 124 retVal += "username=" + username + "\n"; 125 retVal += "password=" + password + "\n"; 126 retVal += "applicationName=" + applicationName + "\n"; 127 retVal += "applicationMode=" + applicationMode + "\n"; 128 retVal += "processDefId=" + processDefId + "\n"; 129 retVal += "packageId=" + packageId + "\n"; 130 retVal += "applicationDefinitionId=" + applicationDefinitionId + "\n"; 131 return retVal; 132 } 133 134 } 135 | Popular Tags |