Package com.priint.pubserver.util
Class PlaceholderUtils
java.lang.Object
com.priint.pubserver.util.PlaceholderUtils
Utils helpful for dealing with the Comet Placeholders.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CometPlaceholdergetPlaceholder(int placeholderId) Gets the Comet Placeholder by placeholder ID from the active CometConfiguration session.static CometPlaceholdergetPlaceholder(String tenant, String project, int placeholderId) Deprecated, for removal: This API element is subject to removal in a future version.
-
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
nullif it does not exist - Throws:
CometException- if the CometConfiguration service or placeholder cannot be loadedInvalidSessionException- 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.usegetPlaceholder(int); placeholder resolution is based on the active sessionGets 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 sessionproject- project associated with the active sessionplaceholderId- ID of the placeholder- Returns:
- CometPlaceholder
- Throws:
ConfigManagerExceptionjakarta.xml.bind.JAXBException
-
getPlaceholder(int); placeholder resolution is based on the active session