01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.core.service.impl;
17:
18: import java.util.Collection;
19:
20: import org.kuali.core.bo.user.KualiModuleUserProperty;
21: import org.kuali.core.bo.user.UniversalUser;
22: import org.kuali.core.dao.KualiModuleUserPropertyDao;
23: import org.kuali.core.service.KualiModuleUserPropertyService;
24: import org.springframework.transaction.annotation.Transactional;
25:
26: @Transactional
27: public class KualiModuleUserPropertyServiceImpl implements
28: KualiModuleUserPropertyService {
29:
30: private KualiModuleUserPropertyDao moduleUserPropertyDao;
31:
32: public void save(KualiModuleUserProperty prop) {
33: moduleUserPropertyDao.save(prop);
34: }
35:
36: public void save(Collection<KualiModuleUserProperty> properties) {
37: moduleUserPropertyDao.save(properties);
38: }
39:
40: public Collection<KualiModuleUserProperty> getPropertiesForUser(
41: UniversalUser user) {
42: return moduleUserPropertyDao.getPropertiesForUser(user);
43: }
44:
45: public Collection<KualiModuleUserProperty> getPropertiesForUser(
46: String personUniversalIdentifier) {
47: return moduleUserPropertyDao
48: .getPropertiesForUser(personUniversalIdentifier);
49: }
50:
51: public KualiModuleUserPropertyDao getModuleUserPropertyDao() {
52: return moduleUserPropertyDao;
53: }
54:
55: public void setModuleUserPropertyDao(
56: KualiModuleUserPropertyDao moduleUserPropertyDao) {
57: this.moduleUserPropertyDao = moduleUserPropertyDao;
58: }
59:
60: }
|