Class UsherConfigValidation


  • public class UsherConfigValidation
    extends java.lang.Object
    Sets up Usher configuration for a given Intelligence Server metadata. The validation checks the Usher server, AppID, OrgID and security token to ensures invalid parameters will not be saved.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void validateUsherConfig​(java.lang.String url, java.lang.String appId)
      Validate Usher configuration just for the server url and app Id to ensure that we can get QR code.
      void validateUsherConfig​(java.lang.String url, java.lang.String orgId, java.lang.String appId, java.lang.String token)
      Validates Usher configuration settings.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UsherConfigValidation

        public UsherConfigValidation​(AppContext context)
    • Method Detail

      • validateUsherConfig

        public void validateUsherConfig​(java.lang.String url,
                                        java.lang.String orgId,
                                        java.lang.String appId,
                                        java.lang.String token)
                                 throws UsherConnectionException
        Validates Usher configuration settings. An Usher Network Manager badge administrator will obtain these settings and configure them here - this will link the underlying Intelligence Server's metadata (and hence all Intelligence Servers that utilize the metadata) to the Usher badge.
        Parameters:
        url - URL of the Usher Server.
        orgId - The OrgID value
        appId - The AppID value
        token - The security token value
        Throws:
        UsherConnectionException
      • validateUsherConfig

        public void validateUsherConfig​(java.lang.String url,
                                        java.lang.String appId)
                                 throws UsherConnectionException
        Validate Usher configuration just for the server url and app Id to ensure that we can get QR code.
        Parameters:
        url - The URL of the Usher Server
        appId - The AppID value
        Throws:
        UsherConnectionException