hudson.plugins.favorite.user
Class FavoriteUserProperty
java.lang.Object
hudson.model.UserProperty
hudson.plugins.favorite.user.FavoriteUserProperty
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.model.UserProperty>, hudson.model.ReconfigurableDescribable<hudson.model.UserProperty>
@ExportedBean(defaultVisibility=999)
public class FavoriteUserProperty
- extends hudson.model.UserProperty
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary |
static hudson.model.UserPropertyDescriptor |
DESCRIPTOR
|
Fields inherited from class hudson.model.UserProperty |
user |
Methods inherited from class hudson.model.UserProperty |
all |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DESCRIPTOR
@Extension
public static final hudson.model.UserPropertyDescriptor DESCRIPTOR
FavoriteUserProperty
@DataBoundConstructor
public FavoriteUserProperty()
getFavorites
public List<String> getFavorites()
addFavorite
public void addFavorite(String job)
throws IOException
- Throws:
IOException
removeFavorite
public void removeFavorite(String job)
throws IOException
- Throws:
IOException
toggleFavorite
public void toggleFavorite(String job)
throws IOException
- Throws:
IOException
reconfigure
public hudson.model.UserProperty reconfigure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject form)
throws hudson.model.Descriptor.FormException
- Specified by:
reconfigure
in interface hudson.model.ReconfigurableDescribable<hudson.model.UserProperty>
- Overrides:
reconfigure
in class hudson.model.UserProperty
- Throws:
hudson.model.Descriptor.FormException
isJobFavorite
public boolean isJobFavorite(String job)
getDescriptor
public hudson.model.UserPropertyDescriptor getDescriptor()
- Specified by:
getDescriptor
in interface hudson.model.Describable<hudson.model.UserProperty>
- Overrides:
getDescriptor
in class hudson.model.UserProperty
Copyright © 2004-2012. All Rights Reserved.