com.atlassian.jira.user.osuser
Class JiraOFBizAccessProvider

java.lang.Object
  extended by com.opensymphony.user.provider.ofbiz.OFBizAbstractProvider
      extended by com.atlassian.jira.user.osuser.JiraOFBizAccessProvider
All Implemented Interfaces:
AccessProvider, UserProvider, Serializable

public final class JiraOFBizAccessProvider
extends OFBizAbstractProvider
implements AccessProvider

A new implementation of AccessProvider written to not have concurrency and performance issues associated with com.opensymphony.user.provider.ofbiz.OFBizAbstractProvider.

Currently this is just a copy/paste with a small modification to inGroup(String userName, String groupName) to get it to run quicker.

Since:
v4.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.user.provider.ofbiz.OFBizAbstractProvider
exclusiveAccess, userEntity
 
Constructor Summary
JiraOFBizAccessProvider()
           
 
Method Summary
 boolean addToGroup(String userName, String groupName)
           
 boolean create(String name)
           
 void flushCaches()
           
 boolean handles(String name)
           
 boolean inGroup(String userName, String groupName)
           
 boolean init(Properties properties)
           
 List<String> list()
           
 List<String> listGroupsContainingUser(String userName)
           
 List<String> listUsersInGroup(String groupname)
           
 boolean load(String name, Entity.Accessor accessor)
           
 boolean remove(String name)
           
 boolean removeFromGroup(String username, String groupname)
           
 
Methods inherited from class com.opensymphony.user.provider.ofbiz.OFBizAbstractProvider
clearAllCache, clearUserCache, findUser, getDelegator, 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
store
 

Constructor Detail

JiraOFBizAccessProvider

public JiraOFBizAccessProvider()
Method Detail

addToGroup

public boolean addToGroup(String userName,
                          String groupName)
Specified by:
addToGroup in interface AccessProvider

create

public boolean create(String name)
Specified by:
create in interface UserProvider
Overrides:
create in class OFBizAbstractProvider

flushCaches

public void flushCaches()
Specified by:
flushCaches in interface UserProvider
Overrides:
flushCaches in class OFBizAbstractProvider

handles

public boolean handles(String name)
Specified by:
handles in interface UserProvider

inGroup

public boolean inGroup(String userName,
                       String groupName)
Specified by:
inGroup in interface AccessProvider

init

public boolean init(Properties properties)
Specified by:
init in interface UserProvider
Overrides:
init in class OFBizAbstractProvider

list

public List<String> list()
Specified by:
list in interface UserProvider
Overrides:
list in class OFBizAbstractProvider

listGroupsContainingUser

public List<String> listGroupsContainingUser(String userName)
Specified by:
listGroupsContainingUser in interface AccessProvider

listUsersInGroup

public List<String> listUsersInGroup(String groupname)
Specified by:
listUsersInGroup in interface AccessProvider

load

public boolean load(String name,
                    Entity.Accessor accessor)
Specified by:
load in interface UserProvider
Overrides:
load in class OFBizAbstractProvider

remove

public boolean remove(String name)
Specified by:
remove in interface UserProvider
Overrides:
remove in class OFBizAbstractProvider

removeFromGroup

public boolean removeFromGroup(String username,
                               String groupname)
Specified by:
removeFromGroup in interface AccessProvider


Copyright © 2002-2010 Atlassian. All Rights Reserved.