org.opencms.workplace.tools.content.check
public class CmsContentCheckResource extends java.lang.Object
| Constructor and Description |
|---|
CmsContentCheckResource(org.opencms.file.CmsResource res)
Constructor, creates an CmsContentCheckResource object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(java.lang.String error)
Adds a new error to the list of errors for this resource.
|
void |
addErrors(java.util.List errors)
Adds a list of errors to the list of errors for this resource.
|
void |
addWarning(java.lang.String warning)
Adds a new warning to the list of warnings for this resource.
|
void |
addWarnings(java.util.List warnings)
Adds a list of warnings to the list of warnings for this resource.
|
byte[] |
getContent()
Gets the encapuslated file content.
|
java.util.List |
getErrors()
Gets the list of all errors found during the content checks for this resource.
|
org.opencms.file.CmsResource |
getResource()
Gets the encapsulated CmsResource.
|
java.lang.String |
getResourceName()
Gets the root path of the encapsulated CmsResource.
|
java.util.List |
getWarnings()
Gets the list of all warnings found during the content checks for this resource.
|
org.opencms.xml.content.CmsXmlContent |
getXmlContent()
Gets the encapuslated and unmarshalled xml content.
|
void |
upgradeContent(org.opencms.file.CmsObject cms)
Loads the content of the encapsulated CmsResource and stores it within the
CmsContentCheckResource.
|
void |
upgradeXmlContent(org.opencms.file.CmsObject cms)
Unmarshalls the content of the encapsulated CmsResource and stores it within the
CmsContentCheckResource.
|
public CmsContentCheckResource(org.opencms.file.CmsResource res)
res - the CmsResource to encapsulate in the CmsContentCheckResource.public void addError(java.lang.String error)
error - the error message to be addedpublic void addErrors(java.util.List errors)
errors - the error messages to be addedpublic void addWarning(java.lang.String warning)
warning - the warning message to be addedpublic void addWarnings(java.util.List warnings)
warnings - the error messages to be addedpublic byte[] getContent()
public java.util.List getErrors()
public org.opencms.file.CmsResource getResource()
public java.lang.String getResourceName()
public java.util.List getWarnings()
public org.opencms.xml.content.CmsXmlContent getXmlContent()
public void upgradeContent(org.opencms.file.CmsObject cms)
throws org.opencms.main.CmsException
cms - the CmsObjectorg.opencms.main.CmsException - if loading of the content failspublic void upgradeXmlContent(org.opencms.file.CmsObject cms)
throws org.opencms.main.CmsException
cms - the CmsObjectorg.opencms.main.CmsException - if loading of the content fails