Class OwnershipDescriptionSource<TSourceType>

java.lang.Object
org.jenkinsci.plugins.ownership.model.OwnershipDescriptionSource<TSourceType>
Type Parameters:
TSourceType - Type of the source items.
Direct Known Subclasses:
FolderOwnershipDescriptionSource, JobOwnershipDescriptionSource, NodeOwnershipDescriptionSource, OwnershipDescriptionSource.DisabledSource

public abstract class OwnershipDescriptionSource<TSourceType> extends Object
References the source of OwnershipDescription. This describable class is being used in UI (e.g. manage-owners page). The summary info can be retrieved using summary.jelly.
Since:
0.9
Author:
Oleg Nenashev
  • Constructor Details

    • OwnershipDescriptionSource

      public OwnershipDescriptionSource(@CheckForNull TSourceType item)
  • Method Details

    • getItem

      @CheckForNull public TSourceType getItem()
      Provides a reference to the item, which acts as a source. It may be Job, Node or whatever other class.
      Returns:
      Instance, which is referenced as an Item source. null means that there is no item, which could describe the OwnershipDescription.