Class GroupInfo


  • public class GroupInfo
    extends java.lang.Object
    Deprecated.
    Use the Group class instead
    This is a data class to store the group information from the groups.xml file
    Author:
    Jason Johns , OpenNMS
    • Constructor Summary

      Constructors 
      Constructor Description
      GroupInfo()
      Deprecated.
      Default constructor, intializes the users list
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addGroupDutySchedule​(DutySchedule aSchedule)
      Deprecated.
      This method adds a duty schedule
      void addUser​(java.lang.String aUser)
      Deprecated.
      Adds a username to the list of users
      int getDutyScheduleCount()
      Deprecated.
      Returns the number of DutySchedule object for a group
      java.util.List<DutySchedule> getDutySchedules()
      Deprecated.
      Returns the full list of DutySchedules
      java.lang.String getGroupComments()
      Deprecated.
      Returns the comments for the group
      java.lang.String getGroupName()
      Deprecated.
      Returns the group name
      int getUserCount()
      Deprecated.
      Returns a count of the users in the list
      java.util.List<java.lang.String> getUsers()
      Deprecated.
      Returns the list of users
      boolean isOnDuty​(java.util.Calendar aTime)
      Deprecated.
      Returns a boolean indicating if the user is on duty at the specified time.
      void removeUser​(java.lang.String aUser)
      Deprecated.
      Removes a username from the list of users
      void setDutySchedule​(java.util.List<DutySchedule> someSchedules)
      Deprecated.
      This method sets a full list of duty schedules for a group
      void setGroupComments​(java.lang.String someComments)
      Deprecated.
      Sets the comments for the group
      void setGroupName​(java.lang.String aName)
      Deprecated.
      Sets the group name
      java.lang.String toString()
      Deprecated.
      Returns a String representation of the group, used primarily for debugging.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GroupInfo

        public GroupInfo()
        Deprecated.
        Default constructor, intializes the users list
    • Method Detail

      • setGroupName

        public void setGroupName​(java.lang.String aName)
        Deprecated.
        Sets the group name
        Parameters:
        aName - the name of the group
      • getGroupName

        public java.lang.String getGroupName()
        Deprecated.
        Returns the group name
        Returns:
        the name of the group
      • setGroupComments

        public void setGroupComments​(java.lang.String someComments)
        Deprecated.
        Sets the comments for the group
        Parameters:
        someComments - the comments for the group
      • getGroupComments

        public java.lang.String getGroupComments()
        Deprecated.
        Returns the comments for the group
        Returns:
        the comments for the group
      • addUser

        public void addUser​(java.lang.String aUser)
        Deprecated.
        Adds a username to the list of users
        Parameters:
        aUser - a new username
      • removeUser

        public void removeUser​(java.lang.String aUser)
        Deprecated.
        Removes a username from the list of users
        Parameters:
        aUser - the user to remove
      • getUsers

        public java.util.List<java.lang.String> getUsers()
        Deprecated.
        Returns the list of users
        Returns:
        the list of users
      • getUserCount

        public int getUserCount()
        Deprecated.
        Returns a count of the users in the list
        Returns:
        how many users in this group
      • addGroupDutySchedule

        public void addGroupDutySchedule​(DutySchedule aSchedule)
        Deprecated.
        This method adds a duty schedule
        Parameters:
        aSchedule - a new duty schedule to associate with a group
      • setDutySchedule

        public void setDutySchedule​(java.util.List<DutySchedule> someSchedules)
        Deprecated.
        This method sets a full list of duty schedules for a group
        Parameters:
        someSchedules - a list of DutySchedule objects for a group
      • getDutyScheduleCount

        public int getDutyScheduleCount()
        Deprecated.
        Returns the number of DutySchedule object for a group
        Returns:
        the number of DutySchedules
      • getDutySchedules

        public java.util.List<DutySchedule> getDutySchedules()
        Deprecated.
        Returns the full list of DutySchedules
        Returns:
        the full list of DutySchedules
      • isOnDuty

        public boolean isOnDuty​(java.util.Calendar aTime)
        Deprecated.
        Returns a boolean indicating if the user is on duty at the specified time.
        Parameters:
        aTime - a time to see if the user is on duty
        Returns:
        true if the user is on duty, false otherwise
      • toString

        public java.lang.String toString()
        Deprecated.
        Returns a String representation of the group, used primarily for debugging.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation