Holger's
Java API

com.antelmann.timeregister
Class RemotePunchDBImpl

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by com.antelmann.timeregister.RemotePunchDBImpl
All Implemented Interfaces:
RemotePunchDB, Serializable, Remote

public class RemotePunchDBImpl
extends UnicastRemoteObject
implements RemotePunchDB

implements the server for a remote PunchDB

Author:
Holger Antelmann
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface com.antelmann.timeregister.RemotePunchDB
BINDING_NAME
 
Constructor Summary
RemotePunchDBImpl(PunchDB db)
           
 
Method Summary
 PunchData remoteGetFirstPunch(User user)
           
 PunchData remoteGetLastPunch(User user)
           
 Map remoteGetUsers()
           
 void remotePunch(PunchData entry)
           
 PunchDataAnalyzer remoteRetrievePunchData(User user, Date from, Date until, String location, String activity)
           
 void remoteUpdatePassword(User user)
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemotePunchDBImpl

public RemotePunchDBImpl(PunchDB db)
                  throws RemoteException
Throws:
RemoteException
Method Detail

remotePunch

public void remotePunch(PunchData entry)
                 throws RemoteException,
                        DatabaseException,
                        FormatException
Specified by:
remotePunch in interface RemotePunchDB
Throws:
RemoteException
DatabaseException
FormatException

remoteRetrievePunchData

public PunchDataAnalyzer remoteRetrievePunchData(User user,
                                                 Date from,
                                                 Date until,
                                                 String location,
                                                 String activity)
                                          throws RemoteException,
                                                 DatabaseException
Specified by:
remoteRetrievePunchData in interface RemotePunchDB
Throws:
RemoteException
DatabaseException

remoteGetLastPunch

public PunchData remoteGetLastPunch(User user)
                             throws RemoteException,
                                    DatabaseException
Specified by:
remoteGetLastPunch in interface RemotePunchDB
Throws:
RemoteException
DatabaseException

remoteGetFirstPunch

public PunchData remoteGetFirstPunch(User user)
                              throws RemoteException,
                                     DatabaseException
Specified by:
remoteGetFirstPunch in interface RemotePunchDB
Throws:
RemoteException
DatabaseException

remoteGetUsers

public Map remoteGetUsers()
                   throws RemoteException,
                          DatabaseException
Specified by:
remoteGetUsers in interface RemotePunchDB
Throws:
RemoteException
DatabaseException

remoteUpdatePassword

public void remoteUpdatePassword(User user)
                          throws RemoteException,
                                 DatabaseException,
                                 IllegalArgumentException
Specified by:
remoteUpdatePassword in interface RemotePunchDB
Throws:
RemoteException
DatabaseException
IllegalArgumentException


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