Class UpdateImpl

  • All Implemented Interfaces:
    Update

    public class UpdateImpl
    extends java.lang.Object
    implements Update
    • Field Detail

      • name

        private java.lang.String name
      • description

        private java.lang.String[] description
      • relative_url_base

        private java.lang.String relative_url_base
      • old_version

        private java.lang.String old_version
      • new_version

        private java.lang.String new_version
      • mandatory

        private boolean mandatory
      • restart_required

        private int restart_required
      • description_url

        private java.lang.String description_url
      • user_object

        private java.lang.Object user_object
      • cancelled

        private volatile boolean cancelled
      • complete

        private volatile boolean complete
      • succeeded

        private volatile boolean succeeded
    • Constructor Detail

    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Update
      • getDescription

        public java.lang.String[] getDescription()
        Specified by:
        getDescription in interface Update
      • getRelativeURLBase

        public java.lang.String getRelativeURLBase()
        Specified by:
        getRelativeURLBase in interface Update
      • setRelativeURLBase

        public void setRelativeURLBase​(java.lang.String base)
        Specified by:
        setRelativeURLBase in interface Update
      • getDesciptionURL

        public java.lang.String getDesciptionURL()
        Specified by:
        getDesciptionURL in interface Update
        Returns:
        null if no description url
      • setDescriptionURL

        public void setDescriptionURL​(java.lang.String url)
        Specified by:
        setDescriptionURL in interface Update
        Parameters:
        url - URL to load instead of showing the description text)
      • getOldVersion

        public java.lang.String getOldVersion()
        Specified by:
        getOldVersion in interface Update
      • getNewVersion

        public java.lang.String getNewVersion()
        Specified by:
        getNewVersion in interface Update
      • isMandatory

        public boolean isMandatory()
        Specified by:
        isMandatory in interface Update
      • setRestartRequired

        public void setRestartRequired​(int _restart_required)
        Specified by:
        setRestartRequired in interface Update
      • setUserObject

        public void setUserObject​(java.lang.Object obj)
        Specified by:
        setUserObject in interface Update
      • getUserObject

        public java.lang.Object getUserObject()
        Specified by:
        getUserObject in interface Update
      • cancel

        public void cancel()
        Description copied from interface: Update
        cancel this update
        Specified by:
        cancel in interface Update
      • complete

        public void complete​(boolean success)
        Description copied from interface: Update
        mark the update as complete and inform any listeners
        Specified by:
        complete in interface Update
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface Update
      • isComplete

        public boolean isComplete()
        Specified by:
        isComplete in interface Update
      • wasSuccessful

        public boolean wasSuccessful()
        Specified by:
        wasSuccessful in interface Update
      • getDecision

        public java.lang.Object getDecision​(int decision_type,
                                            java.lang.String decision_name,
                                            java.lang.String decision_description,
                                            java.lang.Object decision_data)
        Specified by:
        getDecision in interface Update