bucket.user.providers
Class ChainedAccessProvider

java.lang.Object
  extended by bucket.user.providers.ChainedUserProvider
      extended by bucket.user.providers.ChainedAccessProvider
All Implemented Interfaces:
com.opensymphony.user.provider.AccessProvider, com.opensymphony.user.provider.UserProvider, java.io.Serializable
Direct Known Subclasses:
CachingAccessProvider

public class ChainedAccessProvider
extends ChainedUserProvider
implements com.opensymphony.user.provider.AccessProvider

Allows chaining of access providers

See Also:
Serialized Form

Field Summary
static org.apache.log4j.Logger log
          Deprecated. 
 
Constructor Summary
ChainedAccessProvider()
           
 
Method Summary
 boolean addToGroup(java.lang.String s, java.lang.String s1)
           
protected  void flushCache(com.atlassian.cache.Cache cache)
           
protected  com.opensymphony.user.provider.AccessProvider getNextAccessProvider()
           
protected  java.lang.Class getProviderClass()
          Get the exact kind of provider we are chaining.
 boolean inGroup(java.lang.String s, java.lang.String s1)
           
 java.util.List listGroupsContainingUser(java.lang.String s)
           
 java.util.List listUsersInGroup(java.lang.String s)
           
 boolean removeFromGroup(java.lang.String s, java.lang.String s1)
           
 
Methods inherited from class bucket.user.providers.ChainedUserProvider
create, flushCaches, getNextProvider, handles, init, list, load, remove, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.opensymphony.user.provider.UserProvider
create, flushCaches, handles, init, list, load, remove, store
 

Field Detail

log

@Deprecated
public static final org.apache.log4j.Logger log
Deprecated. 
Constructor Detail

ChainedAccessProvider

public ChainedAccessProvider()
Method Detail

getNextAccessProvider

protected com.opensymphony.user.provider.AccessProvider getNextAccessProvider()

getProviderClass

protected java.lang.Class getProviderClass()
Description copied from class: ChainedUserProvider
Get the exact kind of provider we are chaining. Concrete subclasses should return the class we are enforcing providers to be a type of: i.e. AccessProvider, CredentialsProvider or ProfileProvider. If this provider class isn't a sub-type of UserProvider, things will fall over in a painful fashion.

Specified by:
getProviderClass in class ChainedUserProvider

addToGroup

public boolean addToGroup(java.lang.String s,
                          java.lang.String s1)
Specified by:
addToGroup in interface com.opensymphony.user.provider.AccessProvider

inGroup

public boolean inGroup(java.lang.String s,
                       java.lang.String s1)
Specified by:
inGroup in interface com.opensymphony.user.provider.AccessProvider

listGroupsContainingUser

public java.util.List listGroupsContainingUser(java.lang.String s)
Specified by:
listGroupsContainingUser in interface com.opensymphony.user.provider.AccessProvider

listUsersInGroup

public java.util.List listUsersInGroup(java.lang.String s)
Specified by:
listUsersInGroup in interface com.opensymphony.user.provider.AccessProvider

removeFromGroup

public boolean removeFromGroup(java.lang.String s,
                               java.lang.String s1)
Specified by:
removeFromGroup in interface com.opensymphony.user.provider.AccessProvider

flushCache

protected void flushCache(com.atlassian.cache.Cache cache)


Copyright © 2003-2014 Atlassian. All Rights Reserved.