提交 102cc762 编写于 作者: K kohsuke

UserProperty is exposed (#1393)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7561 71c3de6d-444a-0410-be80-ed276b4c234a
上级 4560b66d
......@@ -163,7 +163,7 @@ public class User extends AbstractModelObject {
/**
* List of all {@link UserProperties} exposed primarily for the remoting API.
*/
@Exported(name="property")
@Exported(name="property",inline=true)
public List<UserProperty> getAllProperties() {
return Collections.unmodifiableList(properties);
}
......
......@@ -3,6 +3,7 @@ package hudson.model;
import hudson.ExtensionPoint;
import hudson.Plugin;
import hudson.tasks.Mailer;
import org.kohsuke.stapler.export.ExportedBean;
/**
* Extensible property of {@link User}.
......@@ -22,6 +23,7 @@ import hudson.tasks.Mailer;
* @author Kohsuke Kawaguchi
* @see UserProperties#LIST
*/
@ExportedBean
public abstract class UserProperty implements Describable<UserProperty>, ExtensionPoint {
/**
* The user object that owns this property.
......
......@@ -2,14 +2,19 @@ package hudson.tasks;
import hudson.Launcher;
import hudson.maven.AbstractMavenProject;
import hudson.model.*;
import hudson.model.AbstractProject;
import hudson.model.Build;
import hudson.model.BuildListener;
import hudson.model.Descriptor;
import hudson.model.Project;
import hudson.model.User;
import hudson.model.UserPropertyDescriptor;
import hudson.util.FormFieldValidator;
import org.apache.tools.ant.types.selectors.SelectorUtils;
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;
import javax.mail.Authenticator;
import javax.mail.Message;
......@@ -338,7 +343,6 @@ public class Mailer extends Publisher {
/**
* Per user property that is e-mail address.
*/
@ExportedBean(defaultVisibility=2)
public static class UserProperty extends hudson.model.UserProperty {
public static final DescriptorImpl DESCRIPTOR = new DescriptorImpl();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册