Package org.opencms.publish
Class CmsPublishListVerifier
java.lang.Object
org.opencms.publish.CmsPublishListVerifier
Performs some additional checks on publish lists to prevent inconsistent VFS states.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddForbiddenParentFolder(String parentFolder, String reason) Adds a forbidden parent folder.voidcheckPublishList(CmsPublishList publishList) Checks whether the given publish job is OK, and throws an exception otherwise.voidRemoves the forbidden parent folder using the id obtained while it was added.
- 
Constructor Details- 
CmsPublishListVerifierpublic CmsPublishListVerifier()Creates a new instance.
 
- 
- 
Method Details- 
addForbiddenParentFolderAdds a forbidden parent folder.- Parameters:
- parentFolder- the forbidden parent folder
- reason- the reason why publishing is not allowed
- Returns:
- an ID which can be used later to remove the forbidden parent folder
 
- 
checkPublishListChecks whether the given publish job is OK, and throws an exception otherwise.- Parameters:
- publishList- the publish list
- Throws:
- CmsException- if there's something wrong with the publish job
 
- 
removeForbiddenParentFolderRemoves the forbidden parent folder using the id obtained while it was added.- Parameters:
- id- the id to remove the parent folder
 
 
-