1 31 package com.opencms.legacy; 32 33 import org.opencms.search.A_CmsIndexResource; 34 35 import com.opencms.defaults.master.*; 36 37 38 50 public class CmsCosIndexResource extends A_CmsIndexResource { 51 52 60 public CmsCosIndexResource(CmsMasterDataSet ds, String path, String channel, String contentDefinition) { 61 m_data = ds; 62 m_id = ds.m_masterId; 63 m_name = ds.m_title; 64 m_type = ds.m_subId; 65 m_mimeType = null; 66 m_path = path; 67 m_channel = channel; 68 m_contentDefinition = contentDefinition; 69 } 70 71 74 public String getDocumentKey(boolean withMimeType) { 75 return CmsCosDocument.C_DOCUMENT_KEY_PREFIX + getType(); 76 } 77 78 81 protected String m_channel; 82 85 protected String m_contentDefinition; 86 87 92 public String getChannel() { 93 return m_channel; 94 } 95 96 101 public String getContentDefinition() { 102 return m_contentDefinition; 103 } 104 } 105 | Popular Tags |