001/** 002 * Copyright 2005-2018 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 */ 016package org.kuali.rice.kns.document.authorization; 017 018import java.util.HashSet; 019import java.util.Set; 020 021import org.kuali.rice.kns.document.MaintenanceDocument; 022import org.kuali.rice.krad.service.KRADServiceLocatorWeb; 023 024/** 025 * Base class for all MaintenanceDocumentPresentationControllers. 026 * 027 * @deprecated Use {@link org.kuali.rice.krad.maintenance.MaintenanceDocumentPresentationControllerBase}. 028 */ 029@Deprecated 030public class MaintenanceDocumentPresentationControllerBase extends DocumentPresentationControllerBase 031 implements MaintenanceDocumentPresentationController { 032 private static final long serialVersionUID = 1L; 033 034 @Override 035 public boolean canCreate(Class boClass) { 036 return KRADServiceLocatorWeb.getDocumentDictionaryService().getAllowsNewOrCopy( 037 KRADServiceLocatorWeb.getDocumentDictionaryService().getMaintenanceDocumentTypeName(boClass)); 038 } 039 040 @Override 041 public boolean canMaintain(Object dataObject) { 042 return true; 043 } 044 045 @Override 046 public Set<String> getConditionallyHiddenPropertyNames(Object businessObject) { 047 return new HashSet<String>(); 048 } 049 050 @Override 051 public Set<String> getConditionallyHiddenSectionIds(Object businessObject) { 052 return new HashSet<String>(); 053 } 054 055 @Override 056 public Set<String> getConditionallyReadOnlyPropertyNames(MaintenanceDocument document) { 057 return new HashSet<String>(); 058 } 059 060 @Override 061 public Set<String> getConditionallyReadOnlySectionIds(MaintenanceDocument document) { 062 return new HashSet<String>(); 063 } 064 065 @Override 066 public Set<String> getConditionallyRequiredPropertyNames(MaintenanceDocument document) { 067 return new HashSet<String>(); 068 } 069}