Class PlaceholderUtils

java.lang.Object
com.priint.pubserver.util.PlaceholderUtils

public class PlaceholderUtils extends Object
Utils helpful for dealing with the Comet Placeholders.
  • Method Details

    • getPlaceholder

      public static CometPlaceholder getPlaceholder(int placeholderId) throws CometException, InvalidSessionException
      Gets the Comet Placeholder by placeholder ID from the active CometConfiguration session.
      Parameters:
      placeholderId - ID of the placeholder
      Returns:
      CometPlaceholder or null if it does not exist
      Throws:
      CometException - if the CometConfiguration service or placeholder cannot be loaded
      InvalidSessionException - if no authorized session is bound to the current thread
    • getPlaceholder

      @Deprecated(since="4.9.0", forRemoval=true) public static CometPlaceholder getPlaceholder(String tenant, String project, int placeholderId) throws ConfigManagerException, jakarta.xml.bind.JAXBException
      Deprecated, for removal: This API element is subject to removal in a future version.
      use getPlaceholder(int); placeholder resolution is based on the active session
      Gets the Comet Placeholder by placeholder ID after verifying that the requested tenant and project match the active CometConfiguration session.
      Parameters:
      tenant - tenant associated with the active session
      project - project associated with the active session
      placeholderId - ID of the placeholder
      Returns:
      CometPlaceholder
      Throws:
      ConfigManagerException
      jakarta.xml.bind.JAXBException