public class CmsPublishListVerifier extends java.lang.Object
| Constructor and Description |
|---|
CmsPublishListVerifier()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
CmsUUID |
addForbiddenParentFolder(java.lang.String parentFolder,
java.lang.String reason)
Adds a forbidden parent folder.
|
void |
checkPublishList(CmsPublishList publishList)
Checks whether the given publish job is OK, and throws an exception otherwise.
|
void |
removeForbiddenParentFolder(CmsUUID id)
Removes the forbidden parent folder using the id obtained while it was added.
|
public CmsPublishListVerifier()
public CmsUUID addForbiddenParentFolder(java.lang.String parentFolder, java.lang.String reason)
parentFolder - the forbidden parent folderreason - the reason why publishing is not allowedpublic void checkPublishList(CmsPublishList publishList) throws CmsException
publishList - the publish listCmsException - if there's something wrong with the publish jobpublic void removeForbiddenParentFolder(CmsUUID id)
id - the id to remove the parent folder