1 31 32 package org.opencms.db; 33 34 import org.opencms.main.OpenCms; 35 36 45 public class CmsExportPoint { 46 47 48 private String m_configuredDestination; 49 50 51 private String m_destinationPath; 52 53 54 private String m_uri; 55 56 59 public CmsExportPoint() { 60 61 m_uri = ""; 62 m_configuredDestination = ""; 63 m_destinationPath = ""; 64 } 65 66 73 public CmsExportPoint(String uri, String destination) { 74 75 m_uri = uri; 76 m_configuredDestination = destination; 77 m_destinationPath = OpenCms.getSystemInfo().getAbsoluteRfsPathRelativeToWebApplication(destination); 78 } 79 80 83 public boolean equals(Object obj) { 84 85 if (obj == this) { 86 return true; 87 } 88 if (obj instanceof CmsExportPoint) { 89 return ((CmsExportPoint)obj).m_uri.equals(m_uri); 90 } 91 return false; 92 } 93 94 104 public String getConfiguredDestination() { 105 106 return m_configuredDestination; 107 } 108 109 114 public String getDestinationPath() { 115 116 return m_destinationPath; 117 } 118 119 124 public String getUri() { 125 126 return m_uri; 127 } 128 129 132 public int hashCode() { 133 134 return getUri().hashCode(); 135 } 136 137 148 public void setConfiguredDestination(String value) { 149 150 m_configuredDestination = value; 151 m_destinationPath = OpenCms.getSystemInfo().getAbsoluteRfsPathRelativeToWebApplication(m_configuredDestination); 152 153 } 154 155 166 public void setDestinationPath(String value) { 167 168 if (value == null) { 169 } 171 } 172 173 178 public void setUri(String value) { 179 180 m_uri = value; 181 } 182 183 186 public String toString() { 187 188 return "[" + getClass().getName() + ", uri: " + m_uri + ", destination: " + m_destinationPath + "]"; 189 } 190 } | Popular Tags |