@ExportedBean(defaultVisibility=999)
public class FavoriteUserProperty
extends hudson.model.UserProperty
Favorites
.Modifier and Type | Field and Description |
---|---|
static hudson.model.UserPropertyDescriptor |
DESCRIPTOR |
Constructor and Description |
---|
FavoriteUserProperty() |
Modifier and Type | Method and Description |
---|---|
void |
addFavorite(String job) |
Set<String> |
getAllFavorites() |
Class |
getAssetClass() |
hudson.model.UserPropertyDescriptor |
getDescriptor() |
List<String> |
getFavorites()
Deprecated.
|
boolean |
hasFavorite(String job)
Checks if the user has a favorite entry for this job
e.g.
|
boolean |
isJobFavorite(String job) |
hudson.model.UserProperty |
reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form) |
void |
removeFavorite(String job) |
boolean |
toggleFavorite(String job) |
@Extension public static final hudson.model.UserPropertyDescriptor DESCRIPTOR
@Deprecated public List<String> getFavorites()
public void addFavorite(String job) throws IOException
IOException
public void removeFavorite(String job) throws IOException
IOException
public boolean toggleFavorite(String job) throws IOException
IOException
public hudson.model.UserProperty reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form) throws hudson.model.Descriptor.FormException
reconfigure
in interface hudson.model.ReconfigurableDescribable<hudson.model.UserProperty>
reconfigure
in class hudson.model.UserProperty
hudson.model.Descriptor.FormException
public boolean isJobFavorite(String job)
public boolean hasFavorite(String job)
job
- pathpublic hudson.model.UserPropertyDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.model.UserProperty>
getDescriptor
in class hudson.model.UserProperty
public Class getAssetClass()
Copyright © 2016. All rights reserved.