001 /** 002 * Copyright 2005-2012 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 */ 016 package org.kuali.rice.krad.app.persistence.jpa; 017 018 import java.util.HashSet; 019 import java.util.Set; 020 021 /** 022 * The class which exposes the names of all KNS business object entities - which are managed 023 * by all JPA persistence units 024 * 025 * @author Kuali Rice Team (rice.collab@kuali.org) 026 * 027 */ 028 public class KRADPersistableBusinessObjectClassExposer implements 029 PersistableBusinessObjectClassExposer { 030 031 /** 032 * Exposes all KNS objects - a hard coded list for now - to persistence units 033 * 034 * @see PersistableBusinessObjectClassExposer#exposePersistableBusinessObjectClassNames() 035 */ 036 @Override 037 public Set<String> exposePersistableBusinessObjectClassNames() { 038 Set<String> knsBOs = new HashSet<String>(); 039 /*knsBOs.add(org.kuali.rice.kns.document.DocumentBase.class.getName()); 040 knsBOs.add(org.kuali.rice.kns.document.MaintenanceDocumentBase.class.getName()); 041 knsBOs.add(org.kuali.rice.kns.document.MaintenanceLock.class.getName()); 042 knsBOs.add(org.kuali.rice.kns.document.TransactionalDocumentBase.class.getName()); 043 knsBOs.add(org.kuali.rice.krad.bo.AdHocRoutePerson.class.getName()); 044 knsBOs.add(org.kuali.rice.krad.bo.AdHocRouteRecipient.class.getName()); 045 knsBOs.add(org.kuali.rice.kns.bo.AdHocRouteWorkgroup.class.getName()); 046 knsBOs.add(org.kuali.rice.krad.bo.Attachment.class.getName()); 047 //knsBOs.add(org.kuali.rice.kns.bo.CampusImpl.class.getName()); 048 //knsBOs.add(org.kuali.rice.kns.bo.CampusTypeImpl.class.getName()); 049 knsBOs.add(org.kuali.rice.kns.bo.DocumentAttachment.class.getName()); 050 knsBOs.add(org.kuali.rice.kns.bo.DocumentHeader.class.getName()); 051 knsBOs.add(org.kuali.rice.krad.bo.GlobalBusinessObjectDetailBase.class.getName()); 052 knsBOs.add(org.kuali.rice.kns.bo.LookupResults.class.getName()); 053 knsBOs.add(org.kuali.rice.krad.bo.KualiCodeBase.class.getName()); 054 knsBOs.add(org.kuali.rice.krad.bo.MultipleValueLookupMetadata.class.getName()); 055 knsBOs.add(NamespaceBo.class.getName()); 056 knsBOs.add(org.kuali.rice.krad.bo.Note.class.getName()); 057 knsBOs.add(org.kuali.rice.krad.bo.NoteType.class.getName()); 058 knsBOs.add(ParameterBo.class.getName()); 059 knsBOs.add(ComponentBo.class.getName()); 060 knsBOs.add(ParameterTypeBo.class.getName()); 061 knsBOs.add(CampusBo.class.getName()); 062 knsBOs.add(CampusTypeBo.class.getName()); 063 knsBOs.add(org.kuali.rice.krad.bo.PersistableAttachmentBase.class.getName()); 064 knsBOs.add(org.kuali.rice.krad.bo.PersistableBusinessObjectBase.class.getName()); 065 knsBOs.add(org.kuali.rice.krad.bo.PersistableBusinessObjectExtensionBase.class.getName()); 066 knsBOs.add(org.kuali.rice.krad.document.authorization.PessimisticLock.class.getName()); 067 knsBOs.add(org.kuali.rice.krad.bo.SelectedObjectIds.class.getName()); 068 knsBOs.add(org.kuali.rice.location.impl.country.CountryBo.class.getName()); 069 knsBOs.add(org.kuali.rice.kns.bo.CountyImpl.class.getName()); 070 knsBOs.add(org.kuali.rice.kns.bo.StateImpl.class.getName()); 071 knsBOs.add(org.kuali.rice.kns.bo.PostalCodeImpl.class.getName()); 072 knsBOs.add(org.kuali.rice.kns.bo.SessionDocument.class.getName()); */ 073 return knsBOs; 074 } 075 076 }