@Transactional public class UserOptionsServiceImpl extends Object implements UserOptionsService
UserOptionsService
.Constructor and Description |
---|
UserOptionsServiceImpl() |
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. |
DataObjectService |
getDataObjectService()
Returns an instance of the
DataObjectService . |
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. |
void |
setDataObjectService(DataObjectService dataObjectService) |
public UserOptionsServiceImpl()
public Collection<UserOptions> findByWorkflowUser(String principalId)
UserOptions
for the given workflow id.findByWorkflowUser
in interface UserOptionsService
principalId
- the workflow id to search byUserOptions
or an empty collection if no results were found.public List<UserOptions> findByUserQualified(String principalId, String likeString)
UserOptions
for the given principal id and search string.findByUserQualified
in interface UserOptionsService
principalId
- the workflow id.likeString
- the option id search string.List
of UserOptions
or an empty collection if no results are found.public UserOptions findByOptionId(String optionId, String principalId)
UserOptions
for the given option id and principal id.findByOptionId
in interface UserOptionsService
optionId
- the option id to search by.principalId
- the workflow id to search byUserOptions
or null if no results are found.public void save(UserOptions userOptions)
UserOptions
to the datasource.save
in interface UserOptionsService
userOptions
- the UserOptions
to persist to the datasourcepublic void save(String principalId, Map<String,String> optionsMap)
save
in interface UserOptionsService
principalId
- the unique identifieroptionsMap
- a Map
of user options keyed with option idspublic void save(String principalId, String optionId, String optionValue)
UserOptions
and persists the object to the datasource.save
in interface UserOptionsService
principalId
- the principal id to persist to the datasourceoptionId
- the option id to persist to the datasourceoptionValue
- the option value to persist to the datasourcepublic void deleteUserOptions(UserOptions userOptions)
UserOptions
from the underlining datasource.deleteUserOptions
in interface UserOptionsService
userOptions
- the UserOptions
to deletepublic List<UserOptions> retrieveEmailPreferenceUserOptions(String emailSetting)
List
of UserOptions
for the given email setting.retrieveEmailPreferenceUserOptions
in interface UserOptionsService
emailSetting
- the option value to search by.List
of UserOptions
or an empty collection if no results are found.public DataObjectService getDataObjectService()
DataObjectService
.DataObjectService
public void setDataObjectService(DataObjectService dataObjectService)
getDataObjectService()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.