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.lookup;
17:
18: import org.kuali.core.bo.BusinessObject;
19: import org.kuali.core.bo.Parameter;
20: import org.kuali.core.util.GlobalVariables;
21:
22: /**
23: * This is a description of what this class does - kellerj don't forget to fill this in.
24: *
25: * @author Kuali Rice Team (kuali-rice@googlegroups.com)
26: *
27: */
28: public class ParameterLookupableHelperServiceImpl extends
29: KualiLookupableHelperServiceImpl {
30:
31: /**
32: * Hides the edit/copy links when not valid for the current user.
33: *
34: * @see org.kuali.core.lookup.AbstractLookupableHelperServiceImpl#getActionUrls(org.kuali.core.bo.BusinessObject)
35: */
36: @Override
37: public String getActionUrls(BusinessObject businessObject) {
38: Parameter parm = (Parameter) businessObject;
39: if (GlobalVariables.getUserSession().getUniversalUser()
40: .isMember(parm.getParameterWorkgroupName())) {
41: return super .getActionUrls(businessObject);
42: } else {
43: return " ";
44: }
45: }
46: }
|