|
Großmarkt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--users.UserManager | +--market.UMUserBase
The market's UserManager.
Field Summary | |
static int |
CUSTOMER
|
static int |
MANAGER
|
static int |
SELLER
|
static int |
WAREHOUSE_WORKER
|
Fields inherited from class users.UserManager |
m_lhListeners |
Constructor Summary | |
UMUserBase()
|
Method Summary | |
static User |
createUser(String sName,
int type,
String qualification)
creates a new User with given name, type and qualification |
static void |
deleteUser(UPerson user)
Removes a User from market. |
int |
getCurrentWages()
Sums up and returns wages of all currently employed persons. |
UserFilter |
getCustomers()
Gets the customer filter . |
static UMUserBase |
getGlobalBase()
Static method that gets the global user manager . |
UserFilter |
getManager()
Gets the mangaer filter . |
static int |
getNumberOfManagers()
Counts and returns the number of Users that are managers. |
UserFilter |
getSeller()
Gets the sellers filter . |
UserFilter |
getStaff()
Gets the staff filter . |
UserFilter |
getWarehouseWorker()
Gets the warehouse worker filter . |
static boolean |
isLoggedOn(User user)
Checks whether there is a SalesPoint with the searched User logged on. |
static boolean |
isUser(String userName)
Checks the global UserManager for a String. |
Methods inherited from class users.UserManager |
addUser, addUserDataListener, createUser, deleteUser, fireUserAdded, fireUserDeleted, getCurrentUser, getGlobalUM, getUser, getUserNames, getUsers, logOff, logOn, removeUserDataListener, setDefaultCapability, setDefaultCaps, setGlobalUM, setUserCreator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CUSTOMER
public static final int WAREHOUSE_WORKER
public static final int SELLER
public static final int MANAGER
Constructor Detail |
public UMUserBase()
Method Detail |
public static UMUserBase getGlobalBase()
global user manager
.
public static User createUser(String sName, int type, String qualification)
sName
- the User's IDtype
- the User's type: 1 for customer, other numbers for employees.qualification
- the employee's qualification (manager, seller, warehouse worker)public static boolean isUser(String userName)
userName
- the name of the user
true
if a User could be identified by userName
, otherwise
false
.public UserFilter getCustomers()
customer filter
.
public UserFilter getWarehouseWorker()
warehouse worker filter
.
public UserFilter getSeller()
sellers filter
.
public UserFilter getManager()
mangaer filter
.
public UserFilter getStaff()
staff filter
.
public static int getNumberOfManagers()
public static boolean isLoggedOn(User user)
user
- the searched user.
true
if the user is logged on on any open SalesPoint,
otherwise false
.public static void deleteUser(UPerson user) throws VetoException
user
- the user to be removed.
VetoException
- if user to be removed is currently logged on.public int getCurrentWages()
|
Großmarkt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |