com.zphinx.spine.utils
Class GroupUtils

java.lang.Object
  extended by com.zphinx.spine.utils.GroupUtils

public class GroupUtils
extends Object

A GroupUtils object is an utility object to retrieve StringAttributeBeans from the specified groupName and/or groupIds Array and vice versa.

Version:
$Revision: 1.12 $ $Date: 2008/06/15 01:47:10 $

copyright © Zphinx Software Solutions

Author:
David Ladapo

Method Summary
 ArrayList getGroupArray(ArrayList groupList)
          Creates and returns an Array of groupNames from ArrayList of StringAttributeBeans
 ArrayList getGroupValueList(String[] groupNames, String[] groupIds)
          Creates and returns an Arraylist of StringAttributeBeans from groupNames and Group Ids Array
static GroupUtils getInstance()
          Gets the GroupUtils object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGroupValueList

public ArrayList getGroupValueList(String[] groupNames,
                                   String[] groupIds)
Creates and returns an Arraylist of StringAttributeBeans from groupNames and Group Ids Array

Parameters:
groupNames - The array of groupNames
groupIds - The array of group ids
Returns:
ArrayList of StringAttributeBeans representing the groups member belongs to

getGroupArray

public ArrayList getGroupArray(ArrayList groupList)
Creates and returns an Array of groupNames from ArrayList of StringAttributeBeans

Parameters:
groupList - The ArrayList of StringAttributeBeans
Returns:
ArrayList An ArrayList of length 2 comprising {groupNames[],groupIds[]} representing the groups member belongs to

getInstance

public static GroupUtils getInstance()
Gets the GroupUtils object

Returns:
The static instance of this object