Class 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 IBM Tivoli Directory Integrator.
    • Field Detail

      • GROUP_ATTR_GROUP_ID

        public static final java.lang.String GROUP_ATTR_GROUP_ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • Group

        public Group​(java.lang.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 IBM Tivoli Directory Integrator 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
      • Group

        public Group​(com.tivoli.pd.jutil.PDContext context,
                     SearchCriteria searchcriteria,
                     Log log)
              throws TAMConnectorException
        Constructor for Group. Designed to be used w/o a previous call to Locate() to initialise from the existing underlying PDObject
        Parameters:
        context - The TAM Context
        searchcriteria - The Group name
        log - The Connector log
        Throws:
        TAMConnectorException
    • Method Detail

      • getUsers

        public java.util.List getUsers()
        Retuns the Users associated with the group.
        Returns:
        mUsers
        See Also:
        Vector
      • getGroupID

        public java.lang.String getGroupID()
        Returns the Group Name
        Returns:
        mGroupID
      • getDesc

        public java.lang.String getDesc()
        Return the Group Description
        Returns:
        mDescription;
      • replaceUsers

        public java.lang.Boolean replaceUsers()
      • 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
      • 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 java.util.Vector schema()
        Get the schema for TAM groups.
        Returns:
        vector with the schema description
      • list

        public static java.util.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
      • list

        public static java.util.List list​(SearchCriteria searchCriteria,
                                          com.tivoli.pd.jutil.PDContext pdContext)
                                   throws com.tivoli.pd.jutil.PDException
        Returns a list (ArrayList) of all the Groups for the TAM Context matching search criteria value
        Parameters:
        pdContext - The TAM Context
        searchCriteria - The IDI search criteria
        Returns:
        List (ArrayList)
        Throws:
        com.tivoli.pd.jutil.PDException
      • list

        public static java.util.List list​(java.lang.String filter,
                                          com.tivoli.pd.jutil.PDContext pdContext)
                                   throws com.tivoli.pd.jutil.PDException
        Return a filtered List (ArrayList) of Groups
        Parameters:
        filter - A TAM Group filter string. The filter is a case-insensitive mixture of string constants and wildcards. Filtering is on the group name
        pdContext - The TAM Context
        Returns:
        List (ArrayList)
        Throws:
        com.tivoli.pd.jutil.PDException