@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() |
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
IOExceptionpublic void removeFavorite(String job) throws IOException
IOExceptionpublic boolean toggleFavorite(String job) throws IOException
IOExceptionpublic 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.UserPropertyhudson.model.Descriptor.FormExceptionpublic 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.UserPropertyCopyright © 2016. All rights reserved.