com.trackstudio.app.adapter.auth
Class StripEmailPartAdapter

java.lang.Object
  extended by com.trackstudio.app.adapter.auth.StripEmailPartAdapter
All Implemented Interfaces:
Adapter, AuthAdapter

public class StripEmailPartAdapter
extends java.lang.Object
implements AuthAdapter

Created by IntelliJ IDEA. User: User Date: 03.04.2008 Time: 10:41:14 To change this template use File | Settings | File Templates.


Constructor Summary
StripEmailPartAdapter()
           
 
Method Summary
 boolean authorizeImpl(java.lang.String userId, java.lang.String password, boolean result)
          Do authoriztion
 void changePasswordImpl(java.lang.String userId, java.lang.String password)
          Do nothing
 java.lang.String getDescription()
          Adapter's description
 boolean init()
          Initialize adapter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StripEmailPartAdapter

public StripEmailPartAdapter()
Method Detail

init

public boolean init()
Description copied from interface: Adapter
Initialize adapter. TrackStudio calls this method during startup.

Specified by:
init in interface Adapter
Returns:
true when adapter initialized, false otherwise.

getDescription

public java.lang.String getDescription()
Adapter's description

Specified by:
getDescription in interface Adapter
Returns:
adapter's description

authorizeImpl

public boolean authorizeImpl(java.lang.String userId,
                             java.lang.String password,
                             boolean result)
                      throws GranException
Do authoriztion

Specified by:
authorizeImpl in interface AuthAdapter
Parameters:
userId - loaded (by login) user's id
password - password
result - if true, does nothing and return true
Returns:
true for correct password, false otherwise.
Throws:
GranException

changePasswordImpl

public void changePasswordImpl(java.lang.String userId,
                               java.lang.String password)
                        throws GranException
Do nothing

Specified by:
changePasswordImpl in interface AuthAdapter
Parameters:
userId - loaded (by login) user's id
password - new password
Throws:
GranException


Copyright © 2002-2008 TrackStudio, Ltd. All Rights Reserved.