Klasse UpdateUserAction

java.lang.Object
eu.hobbydev.bracheus.actions.SearchAction
eu.hobbydev.bracheus.actions.UpdateUserAction
Alle implementierten Schnittstellen:
Actions, HumanizerTools

public class UpdateUserAction extends SearchAction implements Actions
The UpdateUserAction class is responsible for updating user data for both regular Instagram users and the Seleniagram user. It handles the process of searching for the user, retrieving their data, and updating the relevant user information in the system.

This class extends the SearchAction class and implements the Actions interface. It provides functionality to update either a regular Instagram user or the Seleniagram user based on the input parameters.

Siehe auch:
  • Konstruktordetails

    • UpdateUserAction

      public UpdateUserAction(String user)
      Constructs an UpdateUserAction for the specified user with the default flag for Seleniagram user as false.
      Parameter:
      user - The username of the user whose data needs to be updated.
    • UpdateUserAction

      public UpdateUserAction(String user, boolean seleniagramUser)
      Constructs an UpdateUserAction for the specified user, with an option to specify whether the user is a Seleniagram user.
      Parameter:
      user - The username of the user whose data needs to be updated.
      seleniagramUser - A flag indicating whether the user is a Seleniagram user (true) or not (false).
  • Methodendetails

    • handleAction

      public void handleAction()
      Handles the action of updating the user's data. It performs the following steps:
      • Performs a direct search for the user.
      • Retrieves the user's data.
      • If the user is a regular Instagram user, updates the user information in the system.
      • If the user is a Seleniagram user, updates the Seleniagram user information in the system.
      If the data is not found or is incomplete, an error is logged.
      Angegeben von:
      handleAction in Schnittstelle Actions
      Setzt außer Kraft:
      handleAction in Klasse SearchAction
    • getName

      public String getName()
      Returns the name of the action. This name is used for logging and tracking purposes.
      Angegeben von:
      getName in Schnittstelle Actions
      Setzt außer Kraft:
      getName in Klasse SearchAction
      Gibt zurück:
      The name of the action as a string ("UpdateUserAction").