public class DelegatingProfileProvider extends Object implements com.opensymphony.user.provider.ProfileProvider
Constructor and Description |
---|
DelegatingProfileProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
create(String name)
Create new Entity with given name using first delegate and return the result value.
|
void |
flushCaches()
Flushes the caches on all providers.
|
com.opensymphony.module.propertyset.PropertySet |
getPropertySet(String name)
Creates new instance of
PrioritizedCompositePropertySet that is instantiated with the same set of
profile provides that this class holds. |
boolean |
handles(String name)
Checks if the delegated profile providers handle the profile with given name.
|
boolean |
init(Properties props)
Initializes this provider.
|
List |
list()
Returns List of names (Strings) of all Entities that can be accessed by this UserProvider.
|
boolean |
load(String name,
com.opensymphony.user.Entity.Accessor accessor)
Load Entity using the first delegate profile provider.
|
boolean |
remove(String name)
Remove Entity with given name using the first delegate profile provider.
|
boolean |
store(String name,
com.opensymphony.user.Entity.Accessor accessor)
Stores changes to Entity using the first delegate profile provider.
|
public com.opensymphony.module.propertyset.PropertySet getPropertySet(String name)
PrioritizedCompositePropertySet
that is instantiated with the same set of
profile provides that this class holds.getPropertySet
in interface com.opensymphony.user.provider.ProfileProvider
name
- namepublic void flushCaches()
flushCaches
in interface com.opensymphony.user.provider.UserProvider
public boolean init(Properties props)
ClassNotFoundException
, IllegalAccessException
or InstantiationException
. Any of these
exceptions will cause a wrapping RuntimeException
to be thrown.init
in interface com.opensymphony.user.provider.UserProvider
props
- initialization propertiespublic boolean create(String name)
create
in interface com.opensymphony.user.provider.UserProvider
public boolean handles(String name)
handles
in interface com.opensymphony.user.provider.UserProvider
name
- profile namepublic List list()
list
in interface com.opensymphony.user.provider.UserProvider
public boolean load(String name, com.opensymphony.user.Entity.Accessor accessor)
load
in interface com.opensymphony.user.provider.UserProvider
public boolean remove(String name)
remove
in interface com.opensymphony.user.provider.UserProvider
public boolean store(String name, com.opensymphony.user.Entity.Accessor accessor)
store
in interface com.opensymphony.user.provider.UserProvider
Copyright © 2013 Atlassian. All Rights Reserved.