net.hurstfrost.jenkins.avatar.user
Class AvatarProperty
java.lang.Object
hudson.model.UserProperty
net.hurstfrost.jenkins.avatar.user.AvatarProperty
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Action, hudson.model.Describable<hudson.model.UserProperty>, hudson.model.ModelObject, hudson.model.ReconfigurableDescribable<hudson.model.UserProperty>
public class AvatarProperty
- extends hudson.model.UserProperty
- implements hudson.model.Action
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Fields inherited from class hudson.model.UserProperty |
user |
Methods inherited from class hudson.model.UserProperty |
all, getDescriptor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_AVATAR_IMAGE_SIZE
public static final int MAX_AVATAR_IMAGE_SIZE
- See Also:
- Constant Field Values
AvatarProperty
public AvatarProperty()
getAvatarUrl
@Exported
public String getAvatarUrl()
getUnsavedAvatarUrl
public String getUnsavedAvatarUrl()
isHasAvatar
public boolean isHasAvatar()
isHasAvatarBeforeSave
public boolean isHasAvatarBeforeSave()
getResetTrigger
public boolean getResetTrigger()
isHasError
public boolean isHasError()
getLastError
public String getLastError()
isHasWarning
public boolean isHasWarning()
getLastWarning
public String getLastWarning()
doImage
public void doImage(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
- Throws:
IOException
doUpload
public void doUpload(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
hudson.model.Descriptor.FormException
- Receive file upload from startUpload.jelly.
File is placed in $JENKINS_HOME/userContent directory.
- Throws:
javax.servlet.ServletException
IOException
hudson.model.Descriptor.FormException
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
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interface hudson.model.Action
- Specified by:
getDisplayName
in interface hudson.model.ModelObject
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interface hudson.model.Action
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interface hudson.model.Action
Copyright © 2004-2013. All Rights Reserved.