com.ibm.di.connector.tam
Class User

java.lang.Object
  extended by com.ibm.di.connector.tam.CommonBase
      extended by com.ibm.di.connector.tam.User

public class User
extends CommonBase

User class contains the functionality to find, add, modify and delete Users from TAM using the TAM Connector for TDI

Version:
1.7, 8/22/06

Field Summary
 
Fields inherited from class com.ibm.di.connector.tam.CommonBase
DATE_FORMAT, MAX_SIGNED_DWORD, MAX_UNSIGNED_DWORD, mLogProxy, mPDContext, mPDMessages, QSS_BOOLEAN, QSS_BYTE_ARRAY, QSS_DATE, QSS_INTEGER, QSS_LONG, QSS_STRING, QSS_VECTOR
 
Constructor Summary
User(Entry entry, com.tivoli.pd.jutil.PDContext context, Log log)
          Constructor used to instantiate a User from the Entry object.
User(SearchCriteria searchcriteria, com.tivoli.pd.jutil.PDContext context, Log log)
          Constructor used to instantiate a User from the search criteria.
User(String s, com.tivoli.pd.jutil.PDContext context, Log log)
          Constructor used to instantiate a User from the PDUser object.
 
Method Summary
 void delete(boolean deleteReg)
          Delete user entry.
 String desc()
           
 Entry getAttributes()
          Constructs an Entry object from the user details.
 List getGroups()
          Returns the Groups associated with the user
 String getLoginID()
          Return the Login ID for the User
 Attribute groupsAttribute()
           
 Boolean isAccountValid()
           
 Boolean isPasswordValid()
           
 Boolean isSSOUser()
           
static List list(com.tivoli.pd.jutil.PDContext pdContext)
          Returns a list (ArrayList) of all the Users for the TAM Context
 Integer maxFailedLogins()
           
 void modify(Entry changes)
          Modify a user entry.
 String password()
           
 void put(boolean importReg)
          Creates a user in TAM from the TDI input details
 Boolean replaceGroups()
           
static Vector schema()
          returns the schema for TDI.
 
Methods inherited from class com.ibm.di.connector.tam.CommonBase
addSchemaEntry, createAndAddEntryAttribute, debug, debug, error, getBooleanEntryAttributeValue, getByteArrayEntryAttributeValue, getDateEntryAttributeValue, getIntegerEntryAttributeValue, getLongEntryAttributeValue, getPDMessage, getStringEntryAttributeValue, logmsg, printEntry, processMsgs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

User

public User(String s,
            com.tivoli.pd.jutil.PDContext context,
            Log log)
     throws com.tivoli.pd.jutil.PDException
Constructor used to instantiate a User from the PDUser object.

Uses the common log object from the TAMConnector class.

Parameters:
s - Contains the User name
context - The TAM Context
log - The Connector log
Throws:
com.tivoli.pd.jutil.PDException
See Also:
PDUser, TAMConnector

User

public User(Entry entry,
            com.tivoli.pd.jutil.PDContext context,
            Log log)
Constructor used to instantiate a User from the Entry object.

Uses the common log object from the TAMConnector class.

Parameters:
entry - the Entry object
context - the TAM context
log - the LogProxyImpl object
See Also:
Entry, TAMConnector

User

public User(SearchCriteria searchcriteria,
            com.tivoli.pd.jutil.PDContext context,
            Log log)
     throws TAMConnectorException,
            com.tivoli.pd.jutil.PDException
Constructor used to instantiate a User from the search criteria.

Uses the common log object from the TAMConnector class.

Parameters:
searchcriteria - the user login search criteria
context - the TAM context
log - the LogProxyImpl object
Throws:
TAMConnectorException
com.tivoli.pd.jutil.PDException
See Also:
SearchCriteria, PDContext, TAMConnector
Method Detail

getGroups

public List getGroups()
Returns the Groups associated with the user

Returns:
mUserGroups
See Also:
Vector

getLoginID

public String getLoginID()
Return the Login ID for the User

Returns:
mLoginID

getAttributes

public Entry getAttributes()
Constructs an Entry object from the user details.

The Entry object is used by TDI

Returns:
Entry
See Also:
Entry

put

public void put(boolean importReg)
         throws TAMConnectorException
Creates a user in TAM from the TDI input details

Parameters:
importReg - true if the user should be import created, false if the use should be created without importing.
Throws:
TAMConnectorException
com.tivoli.pd.jutil.PDException

desc

public String desc()

password

public String password()

isAccountValid

public Boolean isAccountValid()

isPasswordValid

public Boolean isPasswordValid()

isSSOUser

public Boolean isSSOUser()

maxFailedLogins

public Integer maxFailedLogins()

replaceGroups

public Boolean replaceGroups()

groupsAttribute

public Attribute groupsAttribute()

modify

public void modify(Entry changes)
            throws TAMConnectorException
Modify a user entry.

Parameters:
changes - The user entry to modify.
Throws:
TAMConnectorException
com.tivoli.pd.jutil.PDException

delete

public void delete(boolean deleteReg)
            throws TAMConnectorException,
                   com.tivoli.pd.jutil.PDException
Delete user entry.

Parameters:
deleteReg - true to delete the user details from TAM and the registry false to delete from TAM and not the registry
Throws:
TAMConnectorException
com.tivoli.pd.jutil.PDException

schema

public static Vector schema()
returns the schema for TDI.

Returns:
Vector

list

public static List list(com.tivoli.pd.jutil.PDContext pdContext)
                 throws com.tivoli.pd.jutil.PDException
Returns a list (ArrayList) of all the Users for the TAM Context

Parameters:
pdContext - The TAM Context
Returns:
List (ArrayList)
Throws:
com.tivoli.pd.jutil.PDException