Skip to content

Commit

Permalink
Move to Item
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Feb 19, 2025
1 parent 8f4f117 commit 85eedb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions core/src/main/java/hudson/model/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import java.io.IOException;
import java.util.Collection;
import jenkins.model.Jenkins;
import jenkins.search.SearchGroup;
import jenkins.util.SystemProperties;
import jenkins.util.io.OnMaster;
import org.kohsuke.stapler.StaplerRequest2;
Expand Down Expand Up @@ -249,6 +250,11 @@ default void onCreatedFromScratch() {
*/
void delete() throws IOException, InterruptedException;

@Override
default SearchGroup getSearchGroup() {
return SearchGroup.get(SearchGroup.ItemSearchGroup.class);
}

PermissionGroup PERMISSIONS = new PermissionGroup(Item.class, Messages._Item_Permissions_Title());
Permission CREATE =
new Permission(
Expand Down
6 changes: 0 additions & 6 deletions core/src/main/java/hudson/model/Job.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
import jenkins.model.RunIdMigrator;
import jenkins.model.lazy.LazyBuildMixIn;
import jenkins.scm.RunWithSCM;
import jenkins.search.SearchGroup;
import jenkins.security.HexStringConfidentialKey;
import jenkins.security.stapler.StaplerNotDispatchable;
import jenkins.triggers.SCMTriggerItem;
Expand Down Expand Up @@ -527,11 +526,6 @@ public String getSearchIcon() {
return "symbol-status-" + this.getIconColor().getIconName();
}

@Override
public SearchGroup getSearchGroup() {
return SearchGroup.get(SearchGroup.ItemSearchGroup.class);
}

@Override
protected SearchIndexBuilder makeSearchIndex() {
return super.makeSearchIndex().add(new SearchIndex() {
Expand Down

0 comments on commit 85eedb7

Please sign in to comment.