Skip to main content

Overview

The SalesManager class represents a sales manager in the application. It stores manager credentials, contact information, organization details, and manages an inventory of items.

Constructor

Default Constructor

public SalesManager()
Creates an empty SalesManager instance with no initialized fields.

Parameterized Constructor

public SalesManager(String name, String number, String password, String email, String orgName)
Creates a SalesManager with specified credentials and details.
name
String
The name of the sales manager
number
String
The phone number of the sales manager
password
String
The password for authentication
email
String
The email address of the sales manager
orgName
String
The organization name the manager belongs to

Fields

name
String
required
The name of the sales manager
number
String
required
The phone number of the sales manager
password
String
required
The password for authentication
email
String
required
The email address of the sales manager
orgName
String
required
The organization name the manager belongs to
inventoryItems
ArrayList<InventoryItem>
required
List of inventory items managed by this sales manager

Methods

getName()

public String getName()
Returns the name of the sales manager. Returns: String - The manager’s name

getNumber()

public String getNumber()
Returns the phone number of the sales manager. Returns: String - The manager’s phone number

getPassword()

public String getPassword()
Returns the password of the sales manager. Returns: String - The manager’s password

getEmail()

public String getEmail()
Returns the email address of the sales manager. Returns: String - The manager’s email address

getOrgName()

public String getOrgName()
Returns the organization name the manager belongs to. Returns: String - The organization name

Source Code Location

~/workspace/source/app/src/main/java/project/avishkar/salesmanagement/SalesManager.java

Build docs developers (and LLMs) love