Holger's
Java API

Uses of Interface
com.antelmann.mgmt.User

Packages that use User
com.antelmann.mgmt This package contains generally useful classes for business management. 
com.antelmann.sql This package contains classes to ease JDBC development. 
com.antelmann.timeregister This package contains classes that implement a time register solution for a small business. 
 

Uses of User in com.antelmann.mgmt
 

Classes in com.antelmann.mgmt that implement User
 class UserImpl
          This class represents a default User implementation that can serve as the basis for more specific implementations.
 

Methods in com.antelmann.mgmt that return User
 User JPasswordChangeForm.commitFormAction(JComponent c)
          calls setPassword(String) on the returned User object
 User UserTableModel.get(int row)
           
 User RevisionEvent.getUser()
           
 User LoginEvent.getUser()
          if the return value is null, this represents a failed login
 User JUserLoginPanel.getUser()
          returns the user (if any) that was identified after the component was acted upon
 User DBUpdateEvent.getUser()
          returns the user that was associated with the database of the source while this event was created
 User Database.getUser()
          returns the user credentials of the one currently using this database
 User AbstractDatabase.getUser()
           
 User UserLoginStore.loginUser(String name, char[] password)
          returns the User that corresponds to the credentials provided
static User JUserLoginPanel.showDialog(String title, Component parent, UserLoginStore uls)
           
static User JUserLoginPanel.showDialog(String title, Component parent, UserLoginStore uls, Image image, String borderLayoutOrientation)
          on every failed login attempt, the waiting period is extended by one second
 

Methods in com.antelmann.mgmt with parameters of type User
 int UserImpl.compareTo(User user)
          first compares the name, then the id (using a UniversalComparator in both cases)
 void DBListener.databaseAccessed(User user, String method)
          called upon successfully reading from the database
 void DBListener.Adapter.databaseAccessed(User user, String method)
           
 void DBListener.databaseError(User user, Throwable t)
          called if an error occurred on accessing the database
 void DBListener.Adapter.databaseError(User user, Throwable t)
           
 void LoginListener.logoutPerformed(User user)
           
 int UserTableModel.rowOf(User user)
          returns either the row or -1 if the user is not found
 void Database.setUser(User user)
          sets the user credentials for accessing resources
 void AbstractDatabase.setUser(User user)
           
static int JPasswordChangeForm.showDialog(Component parent, User user)
          displays a dialog and returns either CHANGED or UNCHANGED, indicating whether the password on the user was actually changed.
static int JPasswordChangeForm.showDialog(Component parent, User user, Filter<String> passwordValidator)
          displays a dialog and returns either CHANGED or UNCHANGED, indicating whether the password on the user was actually changed.
 

Method parameters in com.antelmann.mgmt with type arguments of type User
 void UserTableModel.refresh(Collection<? extends User> col)
           
 

Constructors in com.antelmann.mgmt with parameters of type User
AbstractDatabase(T database, User user, LogWriter logWriter)
           
JPasswordChangeForm(User user)
           
JPasswordChangeForm(User user, Filter<String> passwordValidator)
           
LoginEvent(Object source, User user, Exception exception)
          if the user is null and the exception is null, the login was canceled; both (user and exception) cannot be non-null at the same them.
RevisionEvent(Object source, User user, Status oldStatus, Status newStatus, String reason)
           
UserImpl(Object id, User user)
          attention: accessible objects are copied from the given user ONLY if it is a UserImpl instance
 

Constructor parameters in com.antelmann.mgmt with type arguments of type User
UserTableModel(Collection<? extends User> col)
           
 

Uses of User in com.antelmann.sql
 

Constructors in com.antelmann.sql with parameters of type User
SQLDatabase(Connection con, User user, LogWriter logWriter)
          the logWriter remains unchecked regarding access during a non-active transaction
 

Uses of User in com.antelmann.timeregister
 

Classes in com.antelmann.timeregister that implement User
 class TimeUser
          This class implements a special User that adds a WorkUnitValidator as a member.
 

Fields in com.antelmann.timeregister declared as User
protected  User PunchAdminTool.currentUser
           
 

Methods in com.antelmann.timeregister that return User
 User JPunchDataAnalyzer.getEmployee()
           
 User WorkUnit.getUser()
           
 User PunchData.getUser()
           
 User SQLPunchDB.getUser(String id)
           
 

Methods in com.antelmann.timeregister that return types with arguments of type User
static List<User> PunchUtils.getActiveUsers(PunchDB db)
          returns all users that are enabled
 Set<User> WorkUnitAnalyzer.getUsers()
          returns a set of all users currently in this analyzer
 

Methods in com.antelmann.timeregister with parameters of type User
 void SQLPunchDB.deleteUser(User user)
           
 void PunchDBClient.deleteUser(User user)
           
 void PunchAdminDB.deleteUser(User user)
          use with caution: this also deletes all associated records of the given user
 void PunchDataAnalyzer.filter(User user, Date from, Date until, String location, String activity, String comment)
          filters this analyzer according to the given restrictions.
 PunchData PunchDataAnalyzer.findPunch(User user, Date time)
           
static String TimeSheetReport.generateHTMLReport(PunchDB db, User user, Date from, Date until)
           
static String TimeSheetReport.generateHTMLReport(PunchDB db, User user, Date from, Date until, String template)
           
 String PunchDataAnalyzer.getActivityFor(User user)
          returns the current activity
 String PunchDataAnalyzer.getActivityFor(User user, Date date)
          returns the activity based on the PunchData last recorded for the given date; may return null if either the user is checked-out or if the current activity is indeed null.
 PunchData SQLPunchDB.getFirstPunch(User user)
           
 PunchData RemotePunchDBClient.getFirstPunch(User user)
           
 PunchData PunchDBClient.getFirstPunch(User user)
           
 PunchData PunchDB.getFirstPunch(User user)
          if user is null, the first punch of all is returned.
 PunchData PunchDataAnalyzer.getFirstPunch(User user)
          if employee is null, the first punch among all employees is returned
 PunchData FilePunchDB.getFirstPunch(User user)
           
 PunchData SQLPunchDB.getLastPunch(User user)
           
 PunchData RemotePunchDBClient.getLastPunch(User user)
           
 PunchData PunchDBClient.getLastPunch(User user)
           
 PunchData PunchDB.getLastPunch(User user)
          if user is null, the last punch of all is returned.
 PunchData PunchDataAnalyzer.getLastPunch(User user)
          if employee is null, the last punch among all employees is returned
 PunchData FilePunchDB.getLastPunch(User user)
           
protected  PunchData SQLPunchDB.getPunch(User user, boolean first)
           
 SortedSet<PunchData> PunchDataAnalyzer.getPunchData(User user)
          returns a view of the data (not backed by the real data, returned is a new Set)
 PunchDataAnalyzer SQLPunchDB.getPunchData(User user, Date from, Date until, String location, String activity)
           
 PunchDataAnalyzer RemotePunchDBClient.getPunchData(User user, Date from, Date until, String location, String activity)
           
 PunchDataAnalyzer PunchDBClient.getPunchData(User user, Date from, Date until, String location, String activity)
           
 PunchDataAnalyzer PunchDB.getPunchData(User user, Date from, Date until, String location, String activity)
          retrieves the relevant set of Punchdata objects in a PunchDataAnalyzer
 PunchDataAnalyzer PunchDataAnalyzer.getPunchData(User user, Date from, Date until, String location, String activity)
           
 PunchDataAnalyzer FilePunchDB.getPunchData(User user, Date after, Date before, String location, String activity)
          retrieves the relevant set of Punchdata objects
 ArrayList<PunchData> PunchDataAnalyzer.getPunchSequenceFor(User user, Date time)
          a punch sequence starts with the first check-in punch there is or after the most recent check-out before or at the given time; the sequence ends with the check-out (if complete).
 List<WorkUnit> SQLPunchDB.getWorkUnits(User user, WorkUnit.Type type, Date beginAfter, Date beginBefore, String activity)
           
 List<WorkUnit> PunchDBClient.getWorkUnits(User user, WorkUnit.Type type, Date beginFrom, Date beginUntil, String activity)
           
 List<WorkUnit> PunchAdminDB.getWorkUnits(User user, WorkUnit.Type type, Date beginFrom, Date beginUntil, String activity)
          retrieves the relevant set of WorkUnit objects
 List<WorkUnit> WorkUnitAnalyzer.getWorkUnitsFor(User user, Date date)
          returns those WorkUnits that enclose the given date; user constrain may be null
 List<WorkUnit> SQLPunchDB.getWorkUnitsFor(User user, Date date)
           
 List<WorkUnit> PunchDBClient.getWorkUnitsFor(User user, Date date)
           
 List<WorkUnit> PunchAdminDB.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).
 void SQLPunchDB.insertUser(User user)
           
 void PunchDBClient.insertUser(User user)
           
 void PunchAdminDB.insertUser(User user)
           
 boolean FilePunchDB.insertUser(User user)
           
 boolean PunchDataAnalyzer.isCurrentlyPresent(User user)
          by definition: if no punch data is available for the user, false is returned
protected  void PunchAdminTool.login(User currentUser)
           
static Filter<WorkUnit> WorkUnitAnalyzer.makeFilter(User user, Date beginFrom, Date beginUntil, String activity, String comment)
          selects both dates inclusive
protected  boolean JPunchClock.passwordCheck(User user)
          returns true only if the correct password is entered or if no password is set
 PunchData PunchStation.punch(User user)
          punches the given user in/out depending on whether he/she was checked out/in before.
 PunchData PunchStation.punch(User user, boolean checkIn)
          uses the current activity setting of this instance
 PunchData PunchStation.punch(User user, boolean checkIn, String activity)
          stores the PunchData after checking some basic consistency w/ existing data.
 PunchData PunchStation.punch(User user, String activity)
          punches the given user in/out depending on whether he/she was checked out/in before.
 PunchData RemotePunchDBImpl.remoteGetFirstPunch(User user)
           
 PunchData RemotePunchDB.remoteGetFirstPunch(User user)
           
 PunchData RemotePunchDBImpl.remoteGetLastPunch(User user)
           
 PunchData RemotePunchDB.remoteGetLastPunch(User user)
           
 PunchDataAnalyzer RemotePunchDBImpl.remoteRetrievePunchData(User user, Date from, Date until, String location, String activity)
           
 PunchDataAnalyzer RemotePunchDB.remoteRetrievePunchData(User user, Date from, Date until, String location, String activity)
           
 void RemotePunchDBImpl.remoteUpdatePassword(User user)
           
 void RemotePunchDB.remoteUpdatePassword(User user)
           
protected  void SQLPunchDB.storeUser(ResultSet rs, User user)
           
 void SQLPunchDB.updatePassword(User user)
           
 void RemotePunchDBClient.updatePassword(User user)
           
 void PunchDBClient.updatePassword(User user)
           
 void PunchDB.updatePassword(User user)
          updates the permanent storage with the password that is now present in the user
 void PunchDataAnalyzer.updatePassword(User user)
          not supported with the analyzer; always throws DatabaseException
 void FilePunchDB.updatePassword(User user)
           
 void SQLPunchDB.updateUser(User user)
           
 void PunchDBClient.updateUser(User user)
           
 void PunchAdminDB.updateUser(User user)
           
 

Constructors in com.antelmann.timeregister with parameters of type User
JPunchDataAnalyzer(PunchDataAnalyzer analyzer, User employee)
          uses the beginning of the current week as the workBeginDate by default
JPunchDataAnalyzer(PunchDataAnalyzer analyzer, User employee, Date workBeginDate)
           
JWorkUnitEditor(PunchAdminDB db, User currentUser, Logger logger)
          each parameter must not be null
JWorkUnitValidatorEditor(PunchAdminDB db, User user, Logger logger)
           
PunchAdminTool(PunchAdminDB db, Logger logger, User currentUser)
           
PunchData(User user, Date time, boolean checkIn, String location)
           
PunchData(User user, Date time, boolean checkIn, String location, String activity, String comment)
          the activity is ignored on checkout
TimeUser(Object id, User user, WorkUnitValidator schedule)
           
WorkUnit(Date begin, Date end, User user)
          type WORK is used as the default
WorkUnit(Date begin, Date end, User user, WorkUnit.Type type, String activity)
           
WorkUnit(Date begin, Date end, User user, WorkUnit.Type type, String activity, long breakTime, String comment)
           
WorkUnit(Date begin, Date end, User user, WorkUnit.Type type, String activity, String comment)
           
WorkUnit(Date begin, long length, User user)
          type WORK is used as the default
WorkUnit(Date begin, long length, User user, WorkUnit.Type type, String activity)
           
WorkUnit(Date begin, long length, User user, WorkUnit.Type type, String activity, long breakTime, String comment)
           
 



(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads