|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of profile that this provider providespublic interface ProfileExtensionProvider<T extends ProfileExtension>
Defines the interface that need to be implemented by all providers of profile extensions.
Implementations of this interface must be stateless and should be able to handle users and profiles from allRealms.
| Method Summary | |
|---|---|
java.util.List<java.util.List<java.lang.String>> |
export(User user)
This method should return a list of values whose size is equal to the size of the list returned by getExportColumnHeaders(). |
java.util.List<java.lang.String> |
getExportColumnHeaders()
This method should return a constant list of strings which are the column headers of the values that are exported by this profile extension. |
T |
getProfileFor(User user)
Gets the profile for the given user. |
void |
onCreate(User user)
Call back method that will be invoked by the framework when the given User get created. |
void |
onDelete(User user)
Call back method that will be invoked by the framework when the given User get deleted. |
void |
update(T profile)
Updates the given profile. |
| Method Detail |
|---|
void onCreate(User user)
User get created.
user - the User instance that just has been createdvoid onDelete(User user)
User get deleted.
user - the User instance that just has been deleted
T getProfileFor(User user)
throws UserManagementException
user - the User to get the profile for
UserManagementException - on error
void update(T profile)
throws UserManagementException
profile - the profile to update
UserManagementException - on errorjava.util.List<java.lang.String> getExportColumnHeaders()
java.util.List<java.util.List<java.lang.String>> export(User user)
throws UserManagementException
getExportColumnHeaders(). Each entry in the returned list is a list of strings and represents
a single profile property. Single-valued profile properties are to be represented by a list of length
1. Multi-valued profile properties can be represented by a list of appropriate size.
user - the user whose profile to export
UserManagementException - on error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||