Class GroupInfo


  • public class GroupInfo
    extends PrincipalInfo
    This class represents a group on the Tibjms server. A group can contain users (but not other groups) and can be a principal in access control.
    • Constructor Summary

      Constructors 
      Constructor Description
      GroupInfo​(java.lang.String groupName)
      Public constructor to create a GroupInfo with no description.
      GroupInfo​(java.lang.String groupName, java.lang.String description)
      Public constructor to create a GroupInfo.
    • Constructor Detail

      • GroupInfo

        public GroupInfo​(java.lang.String groupName,
                         java.lang.String description)
        Public constructor to create a GroupInfo. The group will not be created on the server until the GroupInfo is passed to TibjmsAdmin.createGroup().
        Parameters:
        groupName - the name of the new group.
        description - the description for the new group.
      • GroupInfo

        public GroupInfo​(java.lang.String groupName)
        Public constructor to create a GroupInfo with no description. The group will not be created on the server until the GroupInfo is passed to TibjmsAdmin.createGroup().
        Parameters:
        groupName - the name of the new group.
    • Method Detail

      • getUsers

        public UserInfo[] getUsers()
        Get the array of users that belong to this group.
        Returns:
        the array of UserInfos that belong to this group.
      • toString

        public java.lang.String toString()
        Generate a string representation of this GroupInfo.
        Overrides:
        toString in class PrincipalInfo
        Returns:
        a string representation of this GroupInfo.