mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
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
This commit is contained in:
1 parent
a6517254fa
commit
ddcd6d6a24
1 file changed
+7
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user