1 31 32 package org.opencms.staticexport; 33 34 import org.opencms.file.CmsResource; 35 36 45 public class CmsStaticExportData { 46 47 48 private String m_parameters; 49 50 51 private CmsResource m_resource; 52 53 54 private String m_rfsName; 55 56 57 private String m_vfsName; 58 59 65 public CmsStaticExportData(String vfsName, String parameters) { 66 67 m_vfsName = vfsName; 68 m_rfsName = null; 69 m_resource = null; 70 m_parameters = parameters; 71 } 72 73 80 public CmsStaticExportData(String vfsName, String rfsName, CmsResource resource) { 81 82 m_vfsName = vfsName; 83 m_rfsName = rfsName; 84 m_resource = resource; 85 m_parameters = null; 86 } 87 88 96 public CmsStaticExportData(String vfsName, String rfsName, CmsResource resource, String parameters) { 97 98 m_vfsName = vfsName; 99 m_rfsName = rfsName; 100 m_resource = resource; 101 m_parameters = parameters; 102 103 } 104 105 110 public String getParameters() { 111 112 return m_parameters; 113 } 114 115 120 public CmsResource getResource() { 121 122 return m_resource; 123 } 124 125 130 public String getRfsName() { 131 132 return m_rfsName; 133 } 134 135 140 public String getVfsName() { 141 142 return m_vfsName; 143 } 144 145 148 public String toString() { 149 150 StringBuffer result = new StringBuffer (); 151 result.append(this.getClass().getName()); 152 result.append("[vfsName="); 153 result.append(m_vfsName); 154 result.append(", rfsName="); 155 result.append(m_rfsName); 156 if (m_resource != null) { 157 result.append(", structureId="); 158 result.append(m_resource.getStructureId()); 159 } 160 result.append("]"); 161 return result.toString(); 162 } 163 } | Popular Tags |