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.module.financial.document.authorization;
17:
18: import java.util.HashMap;
19: import java.util.List;
20: import java.util.Map;
21:
22: import org.apache.commons.logging.Log;
23: import org.apache.commons.logging.LogFactory;
24: import org.kuali.core.document.TransactionalDocument;
25: import org.kuali.kfs.bo.AccountingLine;
26: import org.kuali.kfs.document.authorization.AccountingDocumentAuthorizerBase;
27: import org.kuali.module.chart.bo.ChartUser;
28:
29: /**
30: * JournalVoucher-specific DocumentAuthorizer
31: */
32: public class JournalVoucherDocumentAuthorizer extends
33: AccountingDocumentAuthorizerBase {
34: private static Log LOG = LogFactory
35: .getLog(JournalVoucherDocumentAuthorizer.class);
36:
37: /**
38: * No accountingLines will ever be editable, since the only two possible editModes don't check editableAccounts
39: *
40: * @see org.kuali.core.authorization.TransactionalDocumentAuthorizer#getEditableAccounts(org.kuali.core.document.TransactionalDocument,
41: * org.kuali.core.bo.user.KualiUser)
42: */
43: public Map getEditableAccounts(TransactionalDocument document,
44: ChartUser user) {
45: return new HashMap();
46: }
47:
48: /**
49: * No accountingLines will ever be editable, since the only two possible editModes don't check editableAccounts
50: *
51: * @see org.kuali.kfs.document.authorization.AccountingDocumentAuthorizerBase#getEditableAccounts(java.util.List,
52: * org.kuali.module.chart.bo.ChartUser)
53: */
54: @Override
55: public Map getEditableAccounts(List<AccountingLine> lines,
56: ChartUser user) {
57: return new HashMap();
58: }
59:
60: }
|