/// <summary> /// Initializes a new instance of the <see cref="UIExerciser" /> class. /// </summary> /// <param name="device">The <see cref="JediDevice" /> object.</param> internal UIExerciser(DirtyDeviceManager owner, JediOmniDevice device, JediOmniPreparationManager preparationManager) { _owner = owner; _device = device; _preparationManager = preparationManager; _controlPanel = device.ControlPanel; }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniMyQApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniMyQApp(JediOmniDevice device) : base(device.ControlPanel) { _controlPanel = device.ControlPanel; _masthead = new JediOmniMasthead(device); _launchHelper = new JediOmniLaunchHelper(device); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); }
/// <summary> /// Initializes a new instance of the <see cref="JetAdvantageLinkTriage"/> class. /// </summary> /// <param name="linkUI">JetAdantageLink UI</param> /// <param name="device">Target device</param> /// <param name="pluginExecutionData"></param> public JetAdvantageLinkTriage(IDevice device, JetAdvantageLinkUI linkUI, PluginExecutionData pluginExecutionData) : base(pluginExecutionData) { _linkUI = linkUI; _omniUI = ((JediOmniDevice)device).ControlPanel; _pluginExecutionData = pluginExecutionData; _logger = new TriageDataLog(_pluginExecutionData); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniAuthenticator"/> class. /// </summary> /// <param name="device">The device.</param> /// <param name="credential">The credential.</param> /// <param name="provider">The provider.</param> public JediOmniAuthenticator(JediOmniDevice device, AuthenticationCredential credential, AuthenticationProvider provider) : base(credential, provider) { ControlPanel = device.ControlPanel; _provider = provider; // The ProviderMap maps the text on the device, authentication drop down, to the authentication provider enum. ProviderMap.Add(AuthenticationProvider.Windows, new ProviderMapItem("Windows", "Windows")); ProviderMap.Add(AuthenticationProvider.DSS, new ProviderMapItem("DSS", "DSS")); ProviderMap.Add(AuthenticationProvider.LDAP, new ProviderMapItem("LDAP", "LDAP")); ProviderMap.Add(AuthenticationProvider.LocalDevice, new ProviderMapItem("Local Device", "Local Device")); ProviderMap.Add(AuthenticationProvider.SafeCom, new ProviderMapItem("SafeCom", "SafeCom")); ProviderMap.Add(AuthenticationProvider.SafeComUC, new ProviderMapItem("KOFAX", "KOFAX")); ProviderMap.Add(AuthenticationProvider.HpacDra, new ProviderMapItem("HPAC - DRA Server", "HPAC - DRA Server")); ProviderMap.Add(AuthenticationProvider.HpacIrm, new ProviderMapItem("HPAC - IRM Server", "HPAC - IRM Server")); ProviderMap.Add(AuthenticationProvider.HpacAgentLess, new ProviderMapItem("IRM Authentication", "IRM Authentication")); ProviderMap.Add(AuthenticationProvider.HpacPic, new ProviderMapItem("HPAC - PIC Server", "HPAC - PIC Server")); ProviderMap.Add(AuthenticationProvider.HpacWindows, new ProviderMapItem("HPAC-Windows", "HPAC-Windows")); ProviderMap.Add(AuthenticationProvider.Equitrac, new ProviderMapItem("Equitrac Authentication Agent", "Equitrac Authentication Agent")); ProviderMap.Add(AuthenticationProvider.EquitracWindows, new ProviderMapItem("Equitrac Authentication Agent", "Equitrac Authentication Agent")); ProviderMap.Add(AuthenticationProvider.Blueprint, new ProviderMapItem("Pharos Authentication Agent", "Pharos Authentication Agent")); ProviderMap.Add(AuthenticationProvider.PaperCut, new ProviderMapItem("PaperCut", "PaperCut")); ProviderMap.Add(AuthenticationProvider.ISecStar, new ProviderMapItem("User Authentication", "User Authentication")); ProviderMap.Add(AuthenticationProvider.Celiveo, new ProviderMapItem("Celiveo Authentication", "Celiveo Authentication")); ProviderMap.Add(AuthenticationProvider.SafeQ, new ProviderMapItem("YSoft SafeQ", "YSoft SafeQ")); ProviderMap.Add(AuthenticationProvider.AutoStore, new ProviderMapItem("AutoStore", "AutoStore")); ProviderMap.Add(AuthenticationProvider.PaperCutAgentless, new ProviderMapItem("PaperCut MF", "PaperCut MF")); ProviderMap.Add(AuthenticationProvider.UdocxScan, new ProviderMapItem("Udocx Scan", "Udocx Scan")); ProviderMap.Add(AuthenticationProvider.GeniusBytesGuest, new ProviderMapItem("Genius Bytes Guest Login", "Genius Bytes Guest Login")); ProviderMap.Add(AuthenticationProvider.GeniusBytesManual, new ProviderMapItem("Genius Bytes Manual Login", "Genius Bytes Manual Login")); ProviderMap.Add(AuthenticationProvider.GeniusBytesPin, new ProviderMapItem("Genius Bytes PIN Login", "Genius Bytes PIN Login")); ProviderMap.Add(AuthenticationProvider.HpRoamPin, new ProviderMapItem("Embedded Badge Authentication", "Embedded Badge Authentication")); ProviderMap.Add(AuthenticationProvider.HpId, new ProviderMapItem("HP Login", "HP Login")); }
private const int _footerOffset = 50; // This is based on a 800 x 600 screen. If the screen is smaller, this value will likely need changing. /// <summary> /// Initializes a new instance of the <see cref="JediOmniHpcrApp"/> class. /// </summary> /// <param name="device">The device.</param> /// <param name="buttonTitle">The button title.</param> /// <param name="scanDestination">The scan destination.</param> /// <param name="scanDistribution">The scan distribution.</param> /// <param name="documentName">Name of the document.</param> /// <param name="imagePreview">if set to <c>true</c> [image preview].</param> public JediOmniHpcrApp(JediOmniDevice device, string buttonTitle, string scanDestination, string scanDistribution, string documentName, bool imagePreview) : base() { _buttonTitle = buttonTitle; _device = device; _controlPanel = device.ControlPanel; _documentName = documentName; _scanDestination = scanDestination; _scanDistribution = scanDistribution; _imagePreview = imagePreview; _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); _masthead = new JediOmniMasthead(_device); _launchHelper = new JediOmniLaunchHelper(device); _engine = new OxpdBrowserEngine(_device.ControlPanel, HpcrResource.HpcrJavaScript); _screenWidth = _controlPanel.GetScreenSize().Width; if (_screenWidth.Equals(1024)) { _yOffset = 75; _panelBottom = 640; } else if (_screenWidth.Equals(480)) { _yOffset = 40; _swipeBottomIndex = 3; _panelBottom = 215; } }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniUdocxScanAuthenticator" /> class. /// </summary> /// <param name="controlPanel">The <see cref="JediOmniControlPanel"/> object.</param> /// <param name="credential">The <see cref="AuthenticationCredential"/> object.</param> /// <param name="pacekeeper">The <see cref="Pacekeeper"/> object.</param> public JediOmniUdocxScanAuthenticator(JediOmniControlPanel controlPanel, AuthenticationCredential credential, Pacekeeper pacekeeper) : base(controlPanel, credential, pacekeeper) { _engine = new OxpdBrowserEngine(controlPanel); _controlPanel = controlPanel; _idleTimeoutOffset = TimeSpan.FromMilliseconds(1000); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniHpRoamApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniHpRoamApp(JediOmniDevice device) : base(device.Snmp, device.ControlPanel) { _controlPanel = device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _jediOmniPopupManager = new JediOmniPopupManager(_controlPanel); _masthead = new JediOmniMasthead(device); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniMasthead"/> class. /// </summary> /// <param name="controlPanel">The control panel.</param> public JediOmniMasthead(JediOmniControlPanel controlPanel) { if (controlPanel == null) { throw new ArgumentNullException(nameof(controlPanel)); } _controlPanel = controlPanel; }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniHpecApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniHpecApp(JediOmniDevice device) { _device = device; _controlPanel = _device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _notificationPanel = new JediOmniNotificationPanel(device); _engine = new OxpdBrowserEngine(_device.ControlPanel, HpecResource.HpecJavaScript); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniAppAuthenticatorBase" /> class. /// </summary> /// <param name="controlPanel">The <see cref="JediOmniControlPanel"/> object.</param> /// <param name="credential">The <see cref="AuthenticationCredential"/> object.</param> /// <param name="pacekeeper">The <see cref="Pacekeeper"/> object.</param> protected JediOmniAppAuthenticatorBase(JediOmniControlPanel controlPanel, AuthenticationCredential credential, Pacekeeper pacekeeper) { ControlPanel = controlPanel; Credential = credential; Pacekeeper = pacekeeper; _popupManager = new JediOmniPopupManager(controlPanel); _oxpdEngine = new Lazy<OxpdBrowserEngine>(() => new OxpdBrowserEngine(controlPanel)); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniHpacApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniHpacApp(JediOmniDevice device) : base(device.Snmp, device.ControlPanel) { _controlPanel = device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _masthead = new JediOmniMasthead(device); IsWindJammer = false; }
/// <summary> /// Creates a new instance of JediOmniQuicksetManager. /// </summary> /// <param name="device"></param> public JediOmniQuicksetManager(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _controlPanel = device.ControlPanel; }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniMasthead" /> class. /// </summary> /// <param name="device">The device.</param> /// <exception cref="ArgumentNullException"><paramref name="device" /> is null.</exception> public JediOmniMasthead(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _controlPanel = device.ControlPanel; }
/// <param name="device"></param> public JediOmniUdocxScanApp(JediOmniDevice device) : base(device.ControlPanel) { _controlPanel = device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _masthead = new JediOmniMasthead(device); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); _engine = new OxpdBrowserEngine(_controlPanel, UdocxScanResource.UdocxScanJavaScript); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniiSecStarApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniiSecStarApp(JediOmniDevice device) : base(device.Snmp, device.ControlPanel) { _controlPanel = device.ControlPanel; _controlPanel.DefaultWaitTime = TimeSpan.FromSeconds(2); _launchHelper = new JediOmniLaunchHelper(device); _masthead = new JediOmniMasthead(device); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniPreparationManager" /> class. /// </summary> /// <param name="device">The device.</param> public JediOmniPreparationManager(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; _controlPanel = _device.ControlPanel; }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniLaunchHelper" /> class. /// </summary> /// <param name="device">The device.</param> /// <exception cref="ArgumentNullException"><paramref name="device" /> is null.</exception> public JediOmniLaunchHelper(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _controlPanel = device.ControlPanel; _notificationPanel = new JediOmniNotificationPanel(device); }
/// <summary> /// Waits for the specified element to be visible, enabled, and stationary. /// </summary> /// <param name="controlPanel">The control panel.</param> /// <param name="elementSelector">The element selector.</param> /// <param name="waitTime">The amount of time to wait for the element to be available.</param> /// <returns><c>true</c> if the element was available within the specified time, <c>false</c> otherwise.</returns> public static bool WaitForAvailable(this JediOmniControlPanel controlPanel, string elementSelector, TimeSpan waitTime) { bool isReady() { return(controlPanel.CheckState(elementSelector, OmniElementState.Enabled) && controlPanel.CheckState(elementSelector, OmniElementState.Useable)); } return(Wait.ForTrue(isReady, waitTime)); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniJobOptionsManager" /> class. /// </summary> /// <param name="device">The device.</param> public JediOmniJobOptionsManager(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; _deviceScreen = new DeviceScreen(device.ControlPanel); _controlPanel = _device.ControlPanel; }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniBlueprintApp"/> class. /// </summary> /// <param name="device">The device.</param> public JediOmniBlueprintApp(JediOmniDevice device) : base(device.Snmp, device.ControlPanel) { _controlPanel = device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _masthead = new JediOmniMasthead(device); _engine = new OxpdBrowserEngine(device.ControlPanel); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniTraySettingsApp" /> class. /// </summary> /// <param name="device">The device.</param> public JediOmniTraySettingsApp(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; _controlPanel = _device.ControlPanel; _preparationManager = new JediOmniPreparationManager(device); Pacekeeper = new Pacekeeper(TimeSpan.Zero); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniContactsApp" /> class. /// </summary> /// <param name="device">The device.</param> public JediOmniContactsApp(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; _controlPanel = _device.ControlPanel; // _optionsManager = new JediOmniFaxJobOptions(device); _preparationManager = new JediOmniPreparationManager(device); Pacekeeper = new Pacekeeper(TimeSpan.Zero); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniJobExecutionManager" /> class. /// </summary> /// <param name="device">The device.</param> public JediOmniJobExecutionManager(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; _controlPanel = _device.ControlPanel; _optionsManager = new JediOmniJobOptionsManager(_device); _popupManager = new JediOmniPopupManager(_device); _masthead = new JediOmniMasthead(_device); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniCardAuthenticator" /> class. /// </summary> /// <param name="controlPanel">The <see cref="JediOmniControlPanel"/> object.</param> /// <param name="credential">The <see cref="AuthenticationCredential"/> object.</param> /// <param name="pacekeeper">The <see cref="Pacekeeper"/> object.</param> public JediOmniCardAuthenticator(JediOmniControlPanel controlPanel, AuthenticationCredential credential, Pacekeeper pacekeeper) : base(controlPanel, credential, pacekeeper) { //Check card with user _badge = Credential.BadgeBoxInfo.Badges.FirstOrDefault(x => x.UserName.Equals(Credential.UserName, StringComparison.OrdinalIgnoreCase)); if (_badge == null) { throw new DeviceInvalidOperationException($"Unable to find badge info for User {Credential.UserName}"); } RobotControllerClient badgeBox = new RobotControllerClient(Credential.BadgeBoxInfo.Address); _badgeBoxEndPoint = badgeBox.GetEndpoint <RfidSwitch>(); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniAutoStoreApp" /> class. /// </summary> /// <param name="device">The device.</param> /// <param name="appButtonTitle">The application button title.</param> /// <param name="documentName">Name of the document.</param> public JediOmniAutoStoreApp(JediOmniDevice device, string appButtonTitle, string documentName) : base() { ButtonTitle = appButtonTitle; DocumentName = documentName; _device = device; _controlPanel = device.ControlPanel; _masthead = new JediOmniMasthead(_device); _engine = new OxpdBrowserEngine(_device.ControlPanel, AutoStoreResource.AutoStoreJavaScript); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); ScreenWidth = _controlPanel.GetScreenSize().Width; }
/// <summary> /// Constructor for JediOmin Device. /// </summary> /// <param name="device">JediOmni Device </param> public JediOmniJobStorageScanApp(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; _controlPanel = _device.ControlPanel; _optionsManager = new JediOmniJobStorageJobOptions(device); _executionManager = new JediOmniJobExecutionManager(device); _launchHelper = new JediOmniLaunchHelper(device); Pacekeeper = new Pacekeeper(TimeSpan.Zero); }
/// <summary> /// Constructor for JediOmin Device. /// </summary> /// <param name="device">JediOmni Device </param> public JediOmniJobStoragePrintApp(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; _controlPanel = _device.ControlPanel; _optionsManager = new JediOmniJobStorageJobOptions(device); _executionManager = new JediOmniJobExecutionManager(device); _launchHelper = new JediOmniLaunchHelper(device); _masthead = new JediOmniMasthead(_device); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); Pacekeeper = new Pacekeeper(TimeSpan.Zero); }
/// <summary> /// Initializes a new instance of the <see cref="OmniAuthenticatorDriver"/> class. /// </summary> /// <param name="device">The device.</param> /// <param name="solutionButton">The solution button.</param> public OmniAuthenticatorDriver(JediOmniDevice device, string solutionButton, DeviceWorkflowLogger workflowLogger) { _omniDevice = device; _controlPanel = device.ControlPanel; _launchHelper = new JediOmniLaunchHelper(device); _launchHelper.WorkflowLogger = workflowLogger; _preparationManager = new JediOmniPreparationManager(_omniDevice); _preparationManager.WorkflowLogger = workflowLogger; _solutionButton = solutionButton; _workflowLogger = workflowLogger; _initMethod = AuthInitMethod.GetInitiationMethod(solutionButton); PrepareDevice(); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniDssWorkflowApp" /> class. /// </summary> /// <param name="device">The device.</param> public JediOmniDssWorkflowApp(JediOmniDevice device) { if (device == null) { throw new ArgumentNullException(nameof(device)); } _device = device; _controlPanel = _device.ControlPanel; _masthead = new JediOmniMasthead(device); _launchHelper = new JediOmniLaunchHelper(device); _notificationPanel = new JediOmniNotificationPanel(device); _enhancedWorkflowApp = new DssEnhancedWorkflowApp(_controlPanel); _idleTimeoutOffset = device.PowerManagement.GetInactivityTimeout().Subtract(TimeSpan.FromSeconds(10)); _popupManager = new JediOmniPopupManager(device); _engine = new OxpdBrowserEngine(_device.ControlPanel, DssWorkflowResource.DssWorkflowJavaScript); Pacekeeper = new Pacekeeper(TimeSpan.Zero); }
/// <summary> /// Initializes a new instance of the <see cref="JediOmniCeliveoAuthenticator" /> class. /// </summary> /// <param name="controlPanel">The <see cref="JediOmniControlPanel"/> object.</param> /// <param name="credential">The <see cref="AuthenticationCredential"/> object.</param> /// <param name="pacekeeper">The <see cref="Pacekeeper"/> object.</param> public JediOmniCeliveoAuthenticator(JediOmniControlPanel controlPanel, AuthenticationCredential credential, Pacekeeper pacekeeper) : base(controlPanel, credential, pacekeeper) { }