public interface UserOptionsService
Modifier and Type | Method and Description |
---|---|
void |
deleteUserOptions(UserOptions userOptions)
Removes the given
UserOptions from the underlining datasource. |
UserOptions |
findByOptionId(String optionId,
String principalId)
Find a
UserOptions for the given option id and principal id. |
List<UserOptions> |
findByUserQualified(String principalId,
String likeString)
Finds a collection of
UserOptions for the given principal id and search string. |
Collection<UserOptions> |
findByWorkflowUser(String principalId)
Finds
UserOptions for the given workflow id. |
List<UserOptions> |
retrieveEmailPreferenceUserOptions(String emailSetting)
Finds a
List of UserOptions for the given email setting. |
void |
save(String principalId,
Map<String,String> optionsMap)
This overridden method saves an option for each optionsMap entry, all for the given principalId.
|
void |
save(String principalId,
String optionId,
String optionValue)
Combines the given parameters into an
UserOptions and persists the object to the datasource. |
void |
save(UserOptions userOptions)
Persists the given
UserOptions to the datasource. |
Collection<UserOptions> findByWorkflowUser(String principalId)
UserOptions
for the given workflow id.principalId
- the workflow id to search byUserOptions
or an empty collection if no results were found.List<UserOptions> findByUserQualified(String principalId, String likeString)
UserOptions
for the given principal id and search string.principalId
- the workflow id.likeString
- the option id search string.List
of UserOptions
or an empty collection if no results are found.void save(UserOptions userOptions)
UserOptions
to the datasource.userOptions
- the UserOptions
to persist to the datasourcevoid save(String principalId, Map<String,String> optionsMap)
principalId
- the unique identifieroptionsMap
- a Map
of user options keyed with option idsvoid save(String principalId, String optionId, String optionValue)
UserOptions
and persists the object to the datasource.principalId
- the principal id to persist to the datasourceoptionId
- the option id to persist to the datasourceoptionValue
- the option value to persist to the datasourcevoid deleteUserOptions(UserOptions userOptions)
UserOptions
from the underlining datasource.userOptions
- the UserOptions
to deleteUserOptions findByOptionId(String optionId, String principalId)
UserOptions
for the given option id and principal id.optionId
- the option id to search by.principalId
- the workflow id to search byUserOptions
or null if no results are found.List<UserOptions> retrieveEmailPreferenceUserOptions(String emailSetting)
List
of UserOptions
for the given email setting.emailSetting
- the option value to search by.List
of UserOptions
or an empty collection if no results are found.Copyright © 2005–2016 The Kuali Foundation. All rights reserved.