001 /*
002 * Copyright 2005-2008 The Kuali Foundation
003 *
004 *
005 * Licensed under the Educational Community License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 * http://www.opensource.org/licenses/ecl2.php
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.kuali.rice.kew.useroptions;
018
019 import java.util.Collection;
020 import java.util.List;
021 import java.util.Map;
022
023
024 /**
025 * Sits on top of the UserOptionsTable and manages certain aspects of action list refresh behaviors.
026 * This service could probably be broken up and it's dao put somewhere else and injected in the appropriate places.
027 *
028 * @author Kuali Rice Team (rice.collab@kuali.org)
029 */
030 public interface UserOptionsService {
031 public Collection<UserOptions> findByWorkflowUser(String principalId);
032 public List<UserOptions> findByUserQualified(String principalId, String likeString);
033 public void save(UserOptions userOptions);
034 public void save(String principalId, Map<String,String> optionsMap);
035 public void save(String principalId, String optionId, String optionValue);
036 public void deleteUserOptions(UserOptions userOptions);
037 public UserOptions findByOptionId(String optionId, String principalId);
038 public Collection<UserOptions> findByOptionValue(String optionId, String optionValue);
039 public boolean refreshActionList(String principalId);
040 public void saveRefreshUserOption(String principalId);
041 }