Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-5415

capability plugin should expose onEnable() and onDisable()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Capabilities
    • Labels:
      None

      Description

      as of v 2.1.1 capability plugin does not differentiate between
      user-initiated enable/disable via "Enabled" gui check box
      and activate/passivate via system-initiated conditions;

      proper solution would be to expose onEnable() onDisable()
      inside DefaultCapabilityReference, specifically, here:

      ValidState.enable()

      EnabledState.disable()

      finally, passivate() should happen before release() here:

      public void disable()
      {
      getLogger().debug( "Disabling capability {} ({})", capability, id );
      activationHandler.release();
      DefaultCapabilityReference.this.passivate();
      state = new ValidState();
      }

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            andrei.pozolotin Andrei Pozolotin
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title