Class OrganizationChildOrphanedItemsProperty

    • Constructor Detail

      • OrganizationChildOrphanedItemsProperty

        @DataBoundConstructor
        public OrganizationChildOrphanedItemsProperty​(com.cloudbees.hudson.plugins.folder.computed.OrphanedItemStrategy strategy)
        Our constructor.
        Parameters:
        strategy - the OrphanedItemStrategy to be applied to this property
    • Method Detail

      • newDefaultInstance

        public static OrganizationChildOrphanedItemsProperty newDefaultInstance()
        Creates a new default instance of this property.
        Returns:
        a new default instance of this property.
      • getStrategy

        public com.cloudbees.hudson.plugins.folder.computed.OrphanedItemStrategy getStrategy()
        Returns the strategy we enforce.
        Returns:
        the strategy we enforce.
      • decorate

        protected void decorate​(@NonNull
                                MultiBranchProject<?,​?> child,
                                @NonNull
                                TaskListener listener)
                         throws IOException
        SPI for performing an idempotent application of this property's decoration to the supplied child. If the child is already correctly decorated then the child must be unchanged.
        Specified by:
        decorate in class OrganizationFolderProperty<OrganizationFolder>
        Parameters:
        child - the child to decorate.
        listener - a listener to log any commentary to.
        Throws:
        IOException - as a convenience to implementations as some of the expected changes may call methods that could throw this but shouldn't because of the API's requirement that a BulkChange contains the child.