net.hurstfrost.jenkins.avatar.user
Class AvatarProperty

java.lang.Object
  extended by hudson.model.UserProperty
      extended by 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 Class Summary
static class AvatarProperty.AvatarImage
           
static class AvatarProperty.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static int MAX_AVATAR_IMAGE_SIZE
           
 
Fields inherited from class hudson.model.UserProperty
user
 
Constructor Summary
AvatarProperty()
           
 
Method Summary
 void doImage(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 void doUpload(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Receive file upload from startUpload.jelly.
 String getAvatarUrl()
           
 String getDisplayName()
           
 String getIconFileName()
           
 String getLastError()
           
 String getLastWarning()
           
 boolean getResetTrigger()
           
 String getUnsavedAvatarUrl()
           
 String getUrlName()
           
 boolean isHasAvatar()
           
 boolean isHasAvatarBeforeSave()
           
 boolean isHasError()
           
 boolean isHasWarning()
           
 hudson.model.UserProperty reconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject form)
           
 
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
 

Field Detail

MAX_AVATAR_IMAGE_SIZE

public static final int MAX_AVATAR_IMAGE_SIZE
See Also:
Constant Field Values
Constructor Detail

AvatarProperty

public AvatarProperty()
Method Detail

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.