org.jenkinsci.plugins.authorizeproject
Class AuthorizeProjectStrategy

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<AuthorizeProjectStrategy>
      extended by org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategy
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<AuthorizeProjectStrategy>
Direct Known Subclasses:
AnonymousAuthorizationStrategy, SpecificUsersAuthorizationStrategy, TriggeringUsersAuthorizationStrategy

public abstract class AuthorizeProjectStrategy
extends hudson.model.AbstractDescribableImpl<AuthorizeProjectStrategy>
implements hudson.ExtensionPoint

Extension point to define a new strategy to authorize builds configured in project configuration pages.


Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
AuthorizeProjectStrategy()
           
 
Method Summary
static hudson.DescriptorExtensionList<AuthorizeProjectStrategy,hudson.model.Descriptor<AuthorizeProjectStrategy>> all()
           
 org.acegisecurity.Authentication authenticate(hudson.model.AbstractProject<?,?> project, hudson.model.Queue.Item item)
          Deprecated. use authenticate(hudson.model.Job, Queue.Item) instead.
 org.acegisecurity.Authentication authenticate(hudson.model.Job<?,?> project, hudson.model.Queue.Item item)
          Returns the Authentication for the build.
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizeProjectStrategy

public AuthorizeProjectStrategy()
Method Detail

all

public static hudson.DescriptorExtensionList<AuthorizeProjectStrategy,hudson.model.Descriptor<AuthorizeProjectStrategy>> all()
Returns:
all the registered AuthorizeProjectStrategy.

authenticate

public org.acegisecurity.Authentication authenticate(hudson.model.Job<?,?> project,
                                                     hudson.model.Queue.Item item)
Returns the Authentication for the build.

Parameters:
project - the project to run.
item - the item in queue, which will be a build.
Returns:

authenticate

@Deprecated
public org.acegisecurity.Authentication authenticate(hudson.model.AbstractProject<?,?> project,
                                                                hudson.model.Queue.Item item)
Deprecated. use authenticate(hudson.model.Job, Queue.Item) instead.



Copyright © 2004-2015. All Rights Reserved.