Package org.kuali.rice.kew.useroptions
Interface UserOptionsService
- All Known Implementing Classes:
UserOptionsServiceImpl
public interface UserOptionsService
Sits on top of the UserOptionsTable and manages certain aspects of action list refresh behaviors.
This service could probably be broken up and it's dao put somewhere else and injected in the appropriate places.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteUserOptions(UserOptions userOptions) Removes the givenUserOptionsfrom the underlining datasource.findByOptionId(String optionId, String principalId) Find aUserOptionsfor the given option id and principal id.findByUserQualified(String principalId, String likeString) Finds a collection ofUserOptionsfor the given principal id and search string.findByWorkflowUser(String principalId) FindsUserOptionsfor the given workflow id.retrieveEmailPreferenceUserOptions(String emailSetting) Finds aListofUserOptionsfor the given email setting.voidCombines the given parameters into anUserOptionsand persists the object to the datasource.voidThis overridden method saves an option for each optionsMap entry, all for the given principalId.voidsave(UserOptions userOptions) Persists the givenUserOptionsto the datasource.
-
Method Details
-
findByWorkflowUser
FindsUserOptionsfor the given workflow id.- Parameters:
principalId- the workflow id to search by- Returns:
- a collection of
UserOptionsor an empty collection if no results were found.
-
findByUserQualified
Finds a collection ofUserOptionsfor the given principal id and search string.- Parameters:
principalId- the workflow id.likeString- the option id search string.- Returns:
- A
ListofUserOptionsor an empty collection if no results are found.
-
save
Persists the givenUserOptionsto the datasource.- Parameters:
userOptions- theUserOptionsto persist to the datasource
-
save
This overridden method saves an option for each optionsMap entry, all for the given principalId.- Parameters:
principalId- the unique identifieroptionsMap- aMapof user options keyed with option ids
-
save
Combines the given parameters into anUserOptionsand persists the object to the datasource.- Parameters:
principalId- the principal id to persist to the datasourceoptionId- the option id to persist to the datasourceoptionValue- the option value to persist to the datasource
-
deleteUserOptions
Removes the givenUserOptionsfrom the underlining datasource.- Parameters:
userOptions- theUserOptionsto delete
-
findByOptionId
Find aUserOptionsfor the given option id and principal id.- Parameters:
optionId- the option id to search by.principalId- the workflow id to search by- Returns:
- a
UserOptionsor null if no results are found.
-
retrieveEmailPreferenceUserOptions
Finds aListofUserOptionsfor the given email setting.- Parameters:
emailSetting- the option value to search by.- Returns:
- a
ListofUserOptionsor an empty collection if no results are found.
-