Class UpdatePublishStatusContext

java.lang.Object
ch.tocco.nice2.dms.spi.entitylistener.status.UpdatePublishStatusContext

public final class UpdatePublishStatusContext extends Object
There is a listener which sets the publish status of a ContentTreeNode to 'changed' automatically. To disable the listener temporarily, setPublishStatusListenerEnabled(boolean) can be set to false within the current thread. You should use the Invoker to accomplish this (disabled().
  • Method Details

    • setPublishStatusListenerEnabled

      public static void setPublishStatusListenerEnabled(boolean enabled)
    • isPublishStatusListenerEnabled

      public static boolean isPublishStatusListenerEnabled()
    • disabled

      public static UpdatePublishStatusContext.Invoker disabled()
      Returns:
      an invoker to disable the listener.
    • enabled

      public static UpdatePublishStatusContext.Invoker enabled()
      Returns:
      an invoker to enable the listener.