|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.timeregister.PunchStation
public class PunchStation
PunchStation represents a location where employees can punch their times.
| Constructor Summary | |
|---|---|
PunchStation(PunchDB db,
String location,
TimeSystem ts)
|
|
PunchStation(PunchDB db,
String location,
TimeSystem ts,
Logger logger)
|
|
PunchStation(PunchDB db,
String location,
TimeSystem ts,
Logger logger,
String activity)
|
|
| Method Summary | |
|---|---|
String |
getActivity()
returns the value that all punches registered will be marked with (null by default) unless explicitly stated otherwise. |
String |
getLocation()
|
Logger |
getLogger()
|
PunchDB |
getPunchDB()
|
TimeSystem |
getTimeSystem()
|
PunchData |
punch(User user)
punches the given user in/out depending on whether he/she was checked out/in before. |
PunchData |
punch(User user,
boolean checkIn)
uses the current activity setting of this instance |
PunchData |
punch(User user,
boolean checkIn,
String activity)
stores the PunchData after checking some basic consistency w/ existing data. |
PunchData |
punch(User user,
String activity)
punches the given user in/out depending on whether he/she was checked out/in before. |
void |
setActivity(String activity)
setting the activity means that all punches registered through this station will be marked with this activity (unless explicitly stated otherwise). |
void |
setLocation(String location)
|
void |
setLogger(Logger logger)
|
void |
setPunchDB(PunchDB db)
|
void |
setTimeSystem(TimeSystem ts)
sets a time system to be used; if null, the system time is used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PunchStation(PunchDB db,
String location,
TimeSystem ts)
throws DatabaseException
DatabaseException
public PunchStation(PunchDB db,
String location,
TimeSystem ts,
Logger logger)
throws DatabaseException
DatabaseException
public PunchStation(PunchDB db,
String location,
TimeSystem ts,
Logger logger,
String activity)
throws DatabaseException
DatabaseException| Method Detail |
|---|
public TimeSystem getTimeSystem()
public void setTimeSystem(TimeSystem ts)
public Logger getLogger()
public void setLogger(Logger logger)
public void setActivity(String activity)
public String getActivity()
public PunchData punch(User user)
throws DatabaseException
DatabaseExceptionpunch(User, String)
public PunchData punch(User user,
String activity)
throws DatabaseException
DatabaseException
public PunchData punch(User user,
boolean checkIn)
throws DatabaseException,
FormatException
DatabaseException
FormatException
public PunchData punch(User user,
boolean checkIn,
String activity)
throws DatabaseException,
FormatException
DatabaseException
FormatExceptionPunchDB.punch(PunchData)public String getLocation()
public void setLocation(String location)
public PunchDB getPunchDB()
public void setPunchDB(PunchDB db)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||