001 002package org.opencms.relations; 003 004import java.util.List; 005 006/** 007 * Relation validator entry information bean.<p> 008 * 009 * @since 6.5.5 010 */ 011public final class CmsRelationValidatorInfoEntry { 012 013 /** The original entry name. */ 014 private String m_entryName; 015 /** The broken relation sources. */ 016 private List<CmsRelation> m_relations; 017 /** The resource name. */ 018 private String m_resourceName; 019 /** The site name. */ 020 private String m_siteName; 021 /** The site root. */ 022 private String m_siteRoot; 023 024 /** 025 * Default constructor.<p> 026 * 027 * @param entryName the entry name 028 * @param resourceName the resource name 029 * @param siteName the site title 030 * @param siteRoot the site root 031 * @param relations the broken relation source list 032 */ 033 public CmsRelationValidatorInfoEntry( 034 String entryName, 035 String resourceName, 036 String siteName, 037 String siteRoot, 038 List<CmsRelation> relations) { 039 040 m_entryName = entryName; 041 m_resourceName = resourceName; 042 m_siteName = siteName; 043 m_siteRoot = siteRoot; 044 m_relations = relations; 045 } 046 047 /** 048 * Returns the entry Name.<p> 049 * 050 * @return the entry Name 051 */ 052 public String getName() { 053 054 return m_entryName; 055 } 056 057 /** 058 * Returns all the relations for this entry.<p> 059 * 060 * @return a list of {@link CmsRelation} objects 061 */ 062 public List<CmsRelation> getRelations() { 063 064 return m_relations; 065 } 066 067 /** 068 * Returns the resource name.<p> 069 * 070 * @return the resource name 071 */ 072 public String getResourceName() { 073 074 return m_resourceName; 075 } 076 077 /** 078 * Returns the site name.<p> 079 * 080 * @return the site name 081 */ 082 public String getSiteName() { 083 084 return m_siteName; 085 } 086 087 /** 088 * Returns the site root.<p> 089 * 090 * @return the site root 091 */ 092 public String getSiteRoot() { 093 094 return m_siteRoot; 095 } 096}