com.atlassian.jira.user
Class ExternalEntityJiraProfileProvider
java.lang.Object
com.atlassian.jira.user.ExternalEntityJiraProfileProvider
- All Implemented Interfaces:
- com.opensymphony.user.provider.ProfileProvider, com.opensymphony.user.provider.UserProvider, java.io.Serializable
public class ExternalEntityJiraProfileProvider
- extends java.lang.Object
- implements com.opensymphony.user.provider.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
Method Summary |
boolean |
create(java.lang.String s)
|
void |
flushCaches()
|
com.opensymphony.module.propertyset.PropertySet |
getPropertySet(java.lang.String name)
This method returns the property set for the given user. |
boolean |
handles(java.lang.String s)
|
boolean |
init(java.util.Properties properties)
Make sure that we force the OFBizProfileProvider to use the ExternalEntity EntityName for its propertySet and for
its username lookups |
java.util.List<java.lang.String> |
list()
|
boolean |
load(java.lang.String s,
com.opensymphony.user.Entity.Accessor accessor)
|
boolean |
remove(java.lang.String s)
|
boolean |
store(java.lang.String s,
com.opensymphony.user.Entity.Accessor accessor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalEntityJiraProfileProvider
public ExternalEntityJiraProfileProvider()
getPropertySet
public com.opensymphony.module.propertyset.PropertySet getPropertySet(java.lang.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 com.opensymphony.user.provider.ProfileProvider
- Parameters:
name
- user name
- Returns:
- user's property set
flushCaches
public void flushCaches()
- Specified by:
flushCaches
in interface com.opensymphony.user.provider.UserProvider
handles
public boolean handles(java.lang.String s)
- Specified by:
handles
in interface com.opensymphony.user.provider.UserProvider
init
public boolean init(java.util.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 com.opensymphony.user.provider.UserProvider
- Parameters:
properties
- properties to set
- Returns:
- true if init succeded correctly, false otherwise
create
public boolean create(java.lang.String s)
- Specified by:
create
in interface com.opensymphony.user.provider.UserProvider
list
public java.util.List<java.lang.String> list()
- Specified by:
list
in interface com.opensymphony.user.provider.UserProvider
load
public boolean load(java.lang.String s,
com.opensymphony.user.Entity.Accessor accessor)
- Specified by:
load
in interface com.opensymphony.user.provider.UserProvider
remove
public boolean remove(java.lang.String s)
- Specified by:
remove
in interface com.opensymphony.user.provider.UserProvider
store
public boolean store(java.lang.String s,
com.opensymphony.user.Entity.Accessor accessor)
- Specified by:
store
in interface com.opensymphony.user.provider.UserProvider
Copyright © 2002-2011 Atlassian. All Rights Reserved.