Class UserOptionsServiceImpl

java.lang.Object
org.kuali.rice.kew.useroptions.UserOptionsServiceImpl
All Implemented Interfaces:
UserOptionsService

@Transactional public class UserOptionsServiceImpl extends Object implements UserOptionsService
/** An implementation of the UserOptionsService.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • UserOptionsServiceImpl

      public UserOptionsServiceImpl()
  • Method Details

    • findByWorkflowUser

      public Collection<UserOptions> findByWorkflowUser(String principalId)
      Finds UserOptions for the given workflow id.
      Specified by:
      findByWorkflowUser in interface UserOptionsService
      Parameters:
      principalId - the workflow id to search by
      Returns:
      a collection of UserOptions or an empty collection if no results were found.
    • findByUserQualified

      public List<UserOptions> findByUserQualified(String principalId, String likeString)
      Finds a collection of UserOptions for the given principal id and search string.
      Specified by:
      findByUserQualified in interface UserOptionsService
      Parameters:
      principalId - the workflow id.
      likeString - the option id search string.
      Returns:
      A List of UserOptions or an empty collection if no results are found.
    • findByOptionId

      public UserOptions findByOptionId(String optionId, String principalId)
      Find a UserOptions for the given option id and principal id.
      Specified by:
      findByOptionId in interface UserOptionsService
      Parameters:
      optionId - the option id to search by.
      principalId - the workflow id to search by
      Returns:
      a UserOptions or null if no results are found.
    • save

      public void save(UserOptions userOptions)
      Persists the given UserOptions to the datasource.
      Specified by:
      save in interface UserOptionsService
      Parameters:
      userOptions - the UserOptions to persist to the datasource
    • save

      public void save(String principalId, Map<String,String> optionsMap)
      This overridden method saves an option for each optionsMap entry, all for the given principalId.
      Specified by:
      save in interface UserOptionsService
      Parameters:
      principalId - the unique identifier
      optionsMap - a Map of user options keyed with option ids
    • save

      public void save(String principalId, String optionId, String optionValue)
      Combines the given parameters into an UserOptions and persists the object to the datasource.
      Specified by:
      save in interface UserOptionsService
      Parameters:
      principalId - the principal id to persist to the datasource
      optionId - the option id to persist to the datasource
      optionValue - the option value to persist to the datasource
    • deleteUserOptions

      public void deleteUserOptions(UserOptions userOptions)
      Removes the given UserOptions from the underlining datasource.
      Specified by:
      deleteUserOptions in interface UserOptionsService
      Parameters:
      userOptions - the UserOptions to delete
    • retrieveEmailPreferenceUserOptions

      public List<UserOptions> retrieveEmailPreferenceUserOptions(String emailSetting)
      Finds a List of UserOptions for the given email setting.
      Specified by:
      retrieveEmailPreferenceUserOptions in interface UserOptionsService
      Parameters:
      emailSetting - the option value to search by.
      Returns:
      a List of UserOptions or an empty collection if no results are found.
    • getDataObjectService

      public org.kuali.rice.krad.data.DataObjectService getDataObjectService()
      Returns an instance of the DataObjectService.
      Returns:
      a instance of DataObjectService
    • setDataObjectService

      public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)
      See Also: