com.ibm.di.connector.tam
Class Group

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

public class Group
extends CommonBase

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

Version:
1.6, 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
Group(Entry entry, com.tivoli.pd.jutil.PDContext context, Log log)
          Constructor for Group.
Group(SearchCriteria searchcriteria, com.tivoli.pd.jutil.PDContext context, Log log)
          Constructor for Group.
Group(String s, com.tivoli.pd.jutil.PDContext context, Log log)
          Constructor for Group.
 
Method Summary
 void delete(boolean deleteReg)
          Delete a Group
 Entry getAttributes()
          Returns the Group details in an Entry object
 String getDesc()
          Return the Group Description
 String getGroupID()
          Returns the Group Name
 List getUsers()
          Retuns the Users associated with the group.
static List list(com.tivoli.pd.jutil.PDContext pdContext)
          Return a List (ArrayList) of Groups
 void modify(Entry changes)
          Modify a Group
 void put(boolean importReg)
          Add a Group
 Boolean replaceUsers()
           
static Vector schema()
          Get the schema for TAM groups.
 Attribute usersAtt()
           
 
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

Group

public Group(String s,
             com.tivoli.pd.jutil.PDContext context,
             Log log)
      throws TAMConnectorException,
             com.tivoli.pd.jutil.PDException
Constructor for Group.

Parameters:
s - Contains the Group name
context - The TAM Context
log - The Connector log
Throws:
com.tivoli.pd.jutil.PDException
TAMConnectorException

Group

public Group(Entry entry,
             com.tivoli.pd.jutil.PDContext context,
             Log log)
Constructor for Group.

Parameters:
entry - The TDI Data
context - The TAM Context
log - The Connector log

Group

public Group(SearchCriteria searchcriteria,
             com.tivoli.pd.jutil.PDContext context,
             Log log)
      throws TAMConnectorException,
             com.tivoli.pd.jutil.PDException
Constructor for Group.

Parameters:
searchcriteria - The Group name
context - The TAM Context
log - The Connector log
Throws:
TAMConnectorException
com.tivoli.pd.jutil.PDException
Method Detail

getUsers

public List getUsers()
Retuns the Users associated with the group.

Returns:
mUsers
See Also:
Vector

getGroupID

public String getGroupID()
Returns the Group Name

Returns:
mGroupID

getDesc

public String getDesc()
Return the Group Description

Returns:
mDescription;

replaceUsers

public Boolean replaceUsers()

usersAtt

public Attribute usersAtt()

put

public void put(boolean importReg)
         throws TAMConnectorException
Add a Group

Parameters:
importReg - true to import the user details from the registry false to create the user details and add to the registry
Throws:
TAMConnectorException
com.tivoli.pd.jutil.PDException

modify

public void modify(Entry changes)
            throws TAMConnectorException
Modify a Group

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

getAttributes

public Entry getAttributes()
Returns the Group details in an Entry object

Returns:
Entry

delete

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

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

schema

public static Vector schema()
Get the schema for TAM groups.

Returns:
vector with the schema description

list

public static List list(com.tivoli.pd.jutil.PDContext pdContext)
                 throws com.tivoli.pd.jutil.PDException
Return a List (ArrayList) of Groups

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