com.openexchange.admin.rmi.impl
Class OXLogin

java.lang.Object
  extended by com.openexchange.admin.rmi.impl.OXCommonImpl
      extended by com.openexchange.admin.rmi.impl.OXLogin
All Implemented Interfaces:
OXLoginInterface, Remote

public class OXLogin
extends OXCommonImpl
implements OXLoginInterface

Author:
d7, cutmasta

Field Summary
 
Fields inherited from interface com.openexchange.admin.rmi.OXLoginInterface
RMI_NAME
 
Constructor Summary
OXLogin(BundleContext context)
           
 
Method Summary
 void login(Context ctx, Credentials auth)
          Login method to check if given credentials are correct.
 void login(Credentials auth)
          Login method for the master admin account.
 User login2User(Context ctx, Credentials auth)
          Login method for a context admin or a normal user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OXLogin

public OXLogin(BundleContext context)
        throws RemoteException,
               StorageException
Throws:
RemoteException
StorageException
Method Detail

login

public void login(Context ctx,
                  Credentials auth)
           throws RemoteException,
                  StorageException,
                  InvalidCredentialsException,
                  NoSuchContextException,
                  InvalidDataException,
                  DatabaseUpdateException
Description copied from interface: OXLoginInterface
Login method to check if given credentials are correct.

Specified by:
login in interface OXLoginInterface
Throws:
RemoteException
StorageException
InvalidCredentialsException
NoSuchContextException
InvalidDataException
DatabaseUpdateException

login

public void login(Credentials auth)
           throws RemoteException,
                  StorageException,
                  InvalidCredentialsException,
                  InvalidDataException
Description copied from interface: OXLoginInterface
Login method for the master admin account.

Specified by:
login in interface OXLoginInterface
Throws:
RemoteException
StorageException
InvalidCredentialsException
InvalidDataException

login2User

public User login2User(Context ctx,
                       Credentials auth)
                throws RemoteException,
                       StorageException,
                       InvalidCredentialsException,
                       NoSuchContextException,
                       InvalidDataException,
                       DatabaseUpdateException
Description copied from interface: OXLoginInterface
Login method for a context admin or a normal user.

Specified by:
login2User in interface OXLoginInterface
Returns:
An user object with all data of the user who just logged in.
Throws:
RemoteException
StorageException
InvalidCredentialsException
NoSuchContextException
InvalidDataException
DatabaseUpdateException