Skip to content
Permalink
Browse files
[JENKINS-31162] Another @jglick's comments were addressed
  • Loading branch information
recena committed Mar 21, 2016
1 parent 74b58dc commit 5c10e57078a58052e93556cff3c85fa89d5e3d7b
Showing 3 changed files with 9 additions and 0 deletions.
@@ -35,6 +35,8 @@
import jenkins.model.Jenkins;
import jenkins.util.xml.XMLUtils;
import org.acegisecurity.Authentication;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;

@@ -341,6 +343,7 @@ public synchronized TopLevelItem createProject( TopLevelItemDescriptor type, Str
*
* @return A object that represents a set of {@link Category}
*/
@Restricted(NoExternalUse.class)
public static Categories getCategories(Authentication a, ItemGroup c) {
Categories categories = new Categories();
int weight = 0;
@@ -1,5 +1,7 @@
package jenkins.model.item_category;

import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.HttpResponse;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
@@ -21,6 +23,7 @@
* This class is not thread-safe.
*/
@ExportedBean
@Restricted(NoExternalUse.class)
public class Categories implements HttpResponse, Serializable {

private List<Category> items;
@@ -1,6 +1,8 @@
package jenkins.model.item_category;

import hudson.model.TopLevelItem;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;

@@ -14,6 +16,7 @@
* This class is not thread-safe.
*/
@ExportedBean
@Restricted(NoExternalUse.class)
public class Category implements Serializable {

private String id;

0 comments on commit 5c10e57

Please sign in to comment.