Class CmsPublishListVerifier

  • public class CmsPublishListVerifier
    extends java.lang.Object
    Performs some additional checks on publish lists to prevent inconsistent VFS states.

    • Method Detail

      • addForbiddenParentFolder

        public CmsUUID addForbiddenParentFolder​(java.lang.String parentFolder,
                                                java.lang.String reason)
        Adds a forbidden parent folder.

        parentFolder - the forbidden parent folder
        reason - the reason why publishing is not allowed
        an ID which can be used later to remove the forbidden parent folder
      • checkPublishList

        public void checkPublishList​(CmsPublishList publishList)
                              throws CmsException
        Checks whether the given publish job is OK, and throws an exception otherwise.

        publishList - the publish list
        CmsException - if there's something wrong with the publish job
      • removeForbiddenParentFolder

        public void removeForbiddenParentFolder​(CmsUUID id)
        Removes the forbidden parent folder using the id obtained while it was added.

        id - the id to remove the parent folder