Package org.kuali.rice.kew.useroptions
Class UserOptionsServiceImpl
java.lang.Object
org.kuali.rice.kew.useroptions.UserOptionsServiceImpl
- All Implemented Interfaces:
UserOptionsService
/**
An implementation of the
UserOptionsService.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
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.org.kuali.rice.krad.data.DataObjectServiceReturns an instance of theDataObjectService.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.voidsetDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)
-
Constructor Details
-
UserOptionsServiceImpl
public UserOptionsServiceImpl()
-
-
Method Details
-
findByWorkflowUser
FindsUserOptionsfor the given workflow id.- Specified by:
findByWorkflowUserin interfaceUserOptionsService- 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.- Specified by:
findByUserQualifiedin interfaceUserOptionsService- Parameters:
principalId- the workflow id.likeString- the option id search string.- Returns:
- A
ListofUserOptionsor an empty collection if no results are found.
-
findByOptionId
Find aUserOptionsfor the given option id and principal id.- Specified by:
findByOptionIdin interfaceUserOptionsService- Parameters:
optionId- the option id to search by.principalId- the workflow id to search by- Returns:
- a
UserOptionsor null if no results are found.
-
save
Persists the givenUserOptionsto the datasource.- Specified by:
savein interfaceUserOptionsService- Parameters:
userOptions- theUserOptionsto persist to the datasource
-
save
This overridden method saves an option for each optionsMap entry, all for the given principalId.- Specified by:
savein interfaceUserOptionsService- 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.- Specified by:
savein interfaceUserOptionsService- 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.- Specified by:
deleteUserOptionsin interfaceUserOptionsService- Parameters:
userOptions- theUserOptionsto delete
-
retrieveEmailPreferenceUserOptions
Finds aListofUserOptionsfor the given email setting.- Specified by:
retrieveEmailPreferenceUserOptionsin interfaceUserOptionsService- Parameters:
emailSetting- the option value to search by.- Returns:
- a
ListofUserOptionsor an empty collection if no results are found.
-
getDataObjectService
public org.kuali.rice.krad.data.DataObjectService getDataObjectService()Returns an instance of theDataObjectService.- Returns:
- a instance of
DataObjectService
-
setDataObjectService
public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService) - See Also:
-