com.atlassian.jira.user
Class ExternalEntityJiraProfileProvider

java.lang.Object
  extended by com.atlassian.jira.user.ExternalEntityJiraProfileProvider
All Implemented Interfaces:
ProfileProvider, UserProvider, Serializable

public class ExternalEntityJiraProfileProvider
extends Object
implements ProfileProvider

This class is a local profile provider that is backed by the OFBizProfileProvider. All methods delegate to backing profile provider. Only getPropertySet(String) has modified behavior, where is creates the user with given name if he does not exist.

See Also:
Serialized Form

Constructor Summary
ExternalEntityJiraProfileProvider()
           
 
Method Summary
 boolean create(String s)
           
 void flushCaches()
           
 com.opensymphony.module.propertyset.PropertySet getPropertySet(String name)
          This method returns the property set for the given user.
 boolean handles(String s)
           
 boolean init(Properties properties)
          Make sure that we force the OFBizProfileProvider to use the ExternalEntity EntityName for its propertySet and for its username lookups
 List list()
           
 boolean load(String s, Entity.Accessor accessor)
           
 boolean remove(String s)
           
 boolean store(String s, Entity.Accessor accessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalEntityJiraProfileProvider

public ExternalEntityJiraProfileProvider()
Method Detail

getPropertySet

public com.opensymphony.module.propertyset.PropertySet getPropertySet(String name)
This method returns the property set for the given user.

NOTE: If the user with given name does not exit locally, it will be created.

Specified by:
getPropertySet in interface ProfileProvider
Parameters:
name - user name
Returns:
user's property set

flushCaches

public void flushCaches()
Specified by:
flushCaches in interface UserProvider

handles

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

init

public boolean init(Properties properties)
Make sure that we force the OFBizProfileProvider to use the ExternalEntity EntityName for its propertySet and for its username lookups

Specified by:
init in interface UserProvider
Parameters:
properties - properties to set
Returns:
true if init succeded correctly, false otherwise

create

public boolean create(String s)
Specified by:
create in interface UserProvider

list

public List list()
Specified by:
list in interface UserProvider

load

public boolean load(String s,
                    Entity.Accessor accessor)
Specified by:
load in interface UserProvider

remove

public boolean remove(String s)
Specified by:
remove in interface UserProvider

store

public boolean store(String s,
                     Entity.Accessor accessor)
Specified by:
store in interface UserProvider


Copyright © 2002-2008 Atlassian. All Rights Reserved.