com.ibm.di.connector.NT4UserMetaDataConnector
Class GroupInfo

java.lang.Object
  extended by com.ibm.di.connector.NT4UserMetaDataConnector.GroupInfo

public class GroupInfo
extends Object

The GroupInfo class represents Windows Group's data structure and capsulates methods that import and export that data to an Entry object.


Field Summary
static String GROUP_ATTR_COMMENT
           
static String GROUP_ATTR_GROUP_NAME
           
static String GROUP_ATTR_GROUPS
           
static String GROUP_ATTR_IS_GLOBAL
           
static String GROUP_ATTR_USERS
           
 
Constructor Summary
  GroupInfo()
          Default constructor.
protected GroupInfo(Entry aGroupEntry)
          Constructs the GroupInfo object and populates its members with Group data from the given Entry parameter.
 
Method Summary
protected  void completeGroupData(GroupInfo aGroupInfo)
          All "null" data members are assigned the values of the corresponding aGroupInfo's data members.
protected  void copyDataFromGroupEntry(Entry aGroupEntry)
          Copies data from a group entry.
 String getComment()
           
 String getGroupName()
           
 Boolean getIsGlobal()
           
protected static void populateGroupEntryAttributes(Entry aGroupEntry, GroupInfo aGroupInfo, Vector aUserNames, Vector aGroupNames)
          Given a group attributes' values creates and adds those attributes to the given entry.
protected static Vector queryGroupSchema()
          Retrieves conntector group entry's structure.
 void setComment(String aComment)
           
 void setGroupName(String aGroupName)
           
 void setIsGlobal(Boolean aIsGlobal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_ATTR_GROUP_NAME

public static final String GROUP_ATTR_GROUP_NAME
See Also:
Constant Field Values

GROUP_ATTR_COMMENT

public static final String GROUP_ATTR_COMMENT
See Also:
Constant Field Values

GROUP_ATTR_IS_GLOBAL

public static final String GROUP_ATTR_IS_GLOBAL
See Also:
Constant Field Values

GROUP_ATTR_USERS

public static final String GROUP_ATTR_USERS
See Also:
Constant Field Values

GROUP_ATTR_GROUPS

public static final String GROUP_ATTR_GROUPS
See Also:
Constant Field Values
Constructor Detail

GroupInfo

public GroupInfo()
Default constructor.


GroupInfo

protected GroupInfo(Entry aGroupEntry)
Constructs the GroupInfo object and populates its members with Group data from the given Entry parameter.

Parameters:
aGroupEntry - The Group Entry object containing data to initialize the new GroupInfo object with.
Method Detail

getGroupName

public String getGroupName()

getComment

public String getComment()

getIsGlobal

public Boolean getIsGlobal()

setGroupName

public void setGroupName(String aGroupName)

setComment

public void setComment(String aComment)

setIsGlobal

public void setIsGlobal(Boolean aIsGlobal)

copyDataFromGroupEntry

protected void copyDataFromGroupEntry(Entry aGroupEntry)
Copies data from a group entry.

Parameters:
aGroupEntry - The group entry to copy from.

completeGroupData

protected void completeGroupData(GroupInfo aGroupInfo)
All "null" data members are assigned the values of the corresponding aGroupInfo's data members.

Parameters:
aGroupInfo - The GroupInfo instance which data members' data will be copied.

populateGroupEntryAttributes

protected static void populateGroupEntryAttributes(Entry aGroupEntry,
                                                   GroupInfo aGroupInfo,
                                                   Vector aUserNames,
                                                   Vector aGroupNames)
Given a group attributes' values creates and adds those attributes to the given entry.

Parameters:
aGroupEntry - The group entry object where attributes will be added.
aGroupInfo - The GroupInfo structure containig the base group attributes.
aUserNames - Vector of Strings containing the names of the group's users.
aGroupNames - Vector of Strings containing the names of the group's groups. When populating a global group entry this parameter is null.

queryGroupSchema

protected static Vector queryGroupSchema()
Retrieves conntector group entry's structure.

Returns:
Vector of elements of type Entry describing each groups's attribute structure.