Class AbstractGroupUpdater

    • Constructor Detail

      • AbstractGroupUpdater

        public AbstractGroupUpdater()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(Object obj,
                               String group)
        Performs checks on the object.
        Parameters:
        obj - the object to check
        group - the new group
        Returns:
        null if successful, otherwise error message
      • doUpdateGroup

        protected abstract String doUpdateGroup​(Object obj,
                                                String group)
        Updates the group of the object.
        Parameters:
        obj - the object to process
        group - the new group
        Returns:
        null if successful, otherwise error message
      • updateGroup

        public String updateGroup​(Object obj,
                                  String group)
        Updates the group of the object.
        Specified by:
        updateGroup in interface GroupUpdater
        Parameters:
        obj - the object to process
        group - the new group
        Returns:
        null if successful, otherwise error message