Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 11, 2024
1 parent 2673844 commit 80f24cb
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
31 changes: 31 additions & 0 deletions core/src/main/java/hudson/search/SearchGroup.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package hudson.search;

import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;

@ExportedBean(defaultVisibility = 999)
public class SearchGroup {

private final String displayName;

public SearchGroup(String displayName) {
this.displayName = displayName;
}

@Exported
public String getDisplayName() {
return displayName;
}

public static final SearchGroup VIEW = new SearchGroup(Messages.SearchGroup_views());

public static final SearchGroup BUILD = new SearchGroup(Messages.SearchGroup_builds());

public static final SearchGroup COMPUTER = new SearchGroup(Messages.SearchGroup_nodes());

public static final SearchGroup PROJECT = new SearchGroup(Messages.SearchGroup_projects());

public static final SearchGroup PEOPLE = new SearchGroup(Messages.SearchGroup_people());

public static final SearchGroup OTHER = new SearchGroup(Messages.SearchGroup_other());
}
6 changes: 6 additions & 0 deletions core/src/main/resources/hudson/search/Messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@
# THE SOFTWARE.

UserSearchProperty.DisplayName=Setting for search
SearchGroup.views=Views
SearchGroup.builds=Builds
SearchGroup.nodes=Nodes
SearchGroup.other=Other
SearchGroup.people=People
SearchGroup.projects=Projects

0 comments on commit 80f24cb

Please sign in to comment.