com.opensymphony.user.provider
Interface UserProvider

All Superinterfaces:
Serializable
All Known Subinterfaces:
AccessProvider, CredentialsProvider, ProfileProvider
All Known Implementing Classes:
EmbeddedCrowdAbstractProvider, EmbeddedCrowdAccessProvider, EmbeddedCrowdCredentialsProvider, EmbeddedCrowdProfileProvider

Deprecated.

@Deprecated
public interface UserProvider
extends Serializable

A UserProvider is a plug-in implementation that allows a UserManager to access data in the back-end store.

A UserProvider implementation should always contain a public default constructor. The init() method shall always be called before any other methods.

Almost all methods return a boolean. This is to signify whether the operation was successful.

Version:
$Revision: 1.3 $
Author:
Joe Walnes
See Also:
CredentialsProvider, AccessProvider, ProfileProvider

Method Summary
 boolean create(String name)
          Deprecated. Create new Entity with given name.
 void flushCaches()
          Deprecated. Flush the providers caches - if it is caching.
 boolean handles(String name)
          Deprecated. Determine whether this UserProvider implementation is responsible for handling this Entity.
 boolean init(Properties properties)
          Deprecated. Called by UserManager before any other method.
 List<String> list()
          Deprecated. Returns List of names (Strings) of all Entities that can be accessed by this UserProvider If this UserProvider cannot retrieve a list of names, null is to be returned.
 boolean remove(String name)
          Deprecated. Remove Entity with given name.
 

Method Detail

create

boolean create(String name)
Deprecated. 
Create new Entity with given name.

Returns:
Whether entity was successfully created.

flushCaches

void flushCaches()
Deprecated. 
Flush the providers caches - if it is caching. Providers may implement their own caching strategies. This method merely indicates to the provider that it should flush it's caches now.


handles

boolean handles(String name)
Deprecated. 
Determine whether this UserProvider implementation is responsible for handling this Entity.


init

boolean init(Properties properties)
Deprecated. 
Called by UserManager before any other method. Allows for UserProvider specific initialization.

Parameters:
properties - Extra properties passed across by UserManager.

list

List<String> list()
Deprecated. 
Returns List of names (Strings) of all Entities that can be accessed by this UserProvider If this UserProvider cannot retrieve a list of names, null is to be returned. If there are no current Entities stored by this provider, an empty List is to be returned. The order of names returned can be determined by the UserProvider (it may or may not be relevant). This List should be immutable.


remove

boolean remove(String name)
Deprecated. 
Remove Entity with given name.

Returns:
Whether entity was successfully removed.


Copyright © 2002-2011 Atlassian. All Rights Reserved.