|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PunchAdminDB
adds the ability to administrate a punch entry database
| Method Summary | |
|---|---|
void |
delete(Holiday h)
|
void |
delete(PunchData entry)
deletes the given entry from the database without any consistency checking. |
void |
delete(WorkUnit unit)
|
void |
delete(WorkUnitValidator schedule)
|
void |
deleteUser(User user)
use with caution: this also deletes all associated records of the given user |
HolidayCalendar |
getHolidays()
|
List<WorkUnit> |
getWorkUnits(User user,
WorkUnit.Type type,
Date beginFrom,
Date beginUntil,
String activity)
retrieves the relevant set of WorkUnit objects |
List<WorkUnit> |
getWorkUnitsFor(User user,
Date time)
returns all work units that enclose the given time based on the given user (or all users if user is null). |
Map<String,WorkUnitValidator> |
getWorkUnitValidators(Filter<WorkUnitValidator> filter)
filter may be null, in which case no restrictions apply and all validators found will be returned |
void |
insert(Holiday h)
|
void |
insert(WorkUnit unit)
inserts the given unit into the database |
void |
insertUser(User user)
|
void |
save(WorkUnitValidator schedule)
if the schedule exists (based on equals(Object)), it will be updated; otherwise the entry will be created |
void |
store(PunchData entry)
stores the given entry into the database without any consistency checking and without calling the listeners on punch(PunchData). |
void |
updateUser(User user)
|
| Methods inherited from interface com.antelmann.timeregister.PunchDB |
|---|
addPunchListener, getFirstPunch, getLastPunch, getPunchData, getUsers, punch, updatePassword |
| Method Detail |
|---|
void store(PunchData entry)
throws DatabaseException
punch(PunchData).
This method is for administrative tools to add missing data.
This method should be used with caution since it may endanger consistency.
DatabaseExceptionPunchDB.punch(PunchData)
void delete(PunchData entry)
throws DatabaseException
DatabaseException
void insertUser(User user)
throws DatabaseException
DatabaseException
void updateUser(User user)
throws DatabaseException
DatabaseException
void deleteUser(User user)
throws DatabaseException,
UnsupportedOperationException
DatabaseException
UnsupportedOperationException
void insert(WorkUnit unit)
throws DatabaseException
DatabaseException
void delete(WorkUnit unit)
throws DatabaseException
DatabaseException
List<WorkUnit> getWorkUnits(User user,
WorkUnit.Type type,
Date beginFrom,
Date beginUntil,
String activity)
throws DatabaseException
user - limits retrieval by employee; if null, this limit does not applybeginFrom - limits retrieval by begin date no earlier than given; if null, this limit does not applybeginUntil - limits retrieval by begin date no later than given; if null, this limit does not applytype - limits retrieval by type; if null, this limit does not applyactivity - limits retrieval by activity; if null, this limit does not apply
DatabaseExceptionPunchData
List<WorkUnit> getWorkUnitsFor(User user,
Date time)
throws DatabaseException
DatabaseException
Map<String,WorkUnitValidator> getWorkUnitValidators(Filter<WorkUnitValidator> filter)
throws DatabaseException
DatabaseException
void save(WorkUnitValidator schedule)
throws DatabaseException
equals(Object)), it will be updated; otherwise the entry will be created
DatabaseException
void delete(WorkUnitValidator schedule)
throws DatabaseException
DatabaseException
void insert(Holiday h)
throws DatabaseException
DatabaseException
void delete(Holiday h)
throws DatabaseException
DatabaseException
HolidayCalendar getHolidays()
throws DatabaseException
DatabaseException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||