001 /**
002 * Copyright 2005-2012 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.rice.kew.useroptions.dao;
017
018 import java.util.Collection;
019 import java.util.List;
020
021 import org.kuali.rice.kew.useroptions.UserOptions;
022
023
024 public interface UserOptionsDAO {
025
026 public Collection<UserOptions> findByWorkflowUser(String principalId);
027 public List<UserOptions> findByUserQualified(String principalId, String likeString);
028 public void deleteByUserQualified(String principalId, String likeString);
029 public void save(UserOptions userOptions);
030 public void save(Collection<UserOptions> userOptions);
031 public void deleteUserOptions(UserOptions userOptions);
032 public UserOptions findByOptionId(String optionId, String principalId);
033 public Collection<UserOptions> findByOptionValue(String optionId, String optionValue);
034 public Long getNewOptionIdForActionList();
035
036 /**
037 *
038 * This method fetches all of the user options which are used for email preferences
039 * and are set to the given email setting.
040 *
041 * @param emailSetting
042 * @return
043 */
044 public List<UserOptions> findEmailUserOptionsByType(String emailSetting);
045 }