提交 ddcd6d6a 编写于 作者: K kohsuke

need to have the factory method implemented.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6227 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a6517254
......@@ -6,9 +6,12 @@ import hudson.model.Descriptor;
import hudson.model.Hudson;
import hudson.util.DescriptorList;
import org.acegisecurity.Authentication;
import org.kohsuke.stapler.StaplerRequest;
import java.io.Serializable;
import net.sf.json.JSONObject;
/**
* Controls authorization throughout Hudson.
*
......@@ -76,6 +79,10 @@ public abstract class AuthorizationStrategy implements Describable<Authorization
public String getDisplayName() {
return "Anyone can do anything";
}
public AuthorizationStrategy newInstance(StaplerRequest req, JSONObject formData) throws FormException {
return UNSECURED;
}
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册