1 /** 2 * Copyright 2005-2013 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 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.rice.krad.app.persistence.jpa; 17 18 import java.util.HashSet; 19 import java.util.Set; 20 21 /** 22 * Exposes the names of all KNS business object entities - which are managed 23 * by all JPA persistence units 24 * 25 * @author Kuali Rice Team (rice.collab@kuali.org) 26 */ 27 public class KRADPersistableBusinessObjectClassExposer implements 28 PersistableBusinessObjectClassExposer { 29 30 /** 31 * Exposes all KNS objects - a hard coded list for now - to persistence units 32 * 33 * @see PersistableBusinessObjectClassExposer#exposePersistableBusinessObjectClassNames() 34 */ 35 @Override 36 public Set<String> exposePersistableBusinessObjectClassNames() { 37 Set<String> knsBOs = new HashSet<String>(); 38 /*knsBOs.add(org.kuali.rice.kns.document.DocumentBase.class.getName()); 39 knsBOs.add(org.kuali.rice.kns.document.MaintenanceDocumentBase.class.getName()); 40 knsBOs.add(org.kuali.rice.kns.document.MaintenanceLock.class.getName()); 41 knsBOs.add(org.kuali.rice.kns.document.TransactionalDocumentBase.class.getName()); 42 knsBOs.add(org.kuali.rice.krad.bo.AdHocRoutePerson.class.getName()); 43 knsBOs.add(org.kuali.rice.krad.bo.AdHocRouteRecipient.class.getName()); 44 knsBOs.add(org.kuali.rice.kns.bo.AdHocRouteWorkgroup.class.getName()); 45 knsBOs.add(org.kuali.rice.krad.bo.Attachment.class.getName()); 46 //knsBOs.add(org.kuali.rice.kns.bo.CampusImpl.class.getName()); 47 //knsBOs.add(org.kuali.rice.kns.bo.CampusTypeImpl.class.getName()); 48 knsBOs.add(org.kuali.rice.kns.bo.DocumentAttachment.class.getName()); 49 knsBOs.add(org.kuali.rice.kns.bo.DocumentHeader.class.getName()); 50 knsBOs.add(org.kuali.rice.krad.bo.GlobalBusinessObjectDetailBase.class.getName()); 51 knsBOs.add(org.kuali.rice.kns.bo.LookupResults.class.getName()); 52 knsBOs.add(org.kuali.rice.krad.bo.KualiCodeBase.class.getName()); 53 knsBOs.add(org.kuali.rice.kns.lookup.MultipleValueLookupMetadata.class.getName()); 54 knsBOs.add(NamespaceBo.class.getName()); 55 knsBOs.add(org.kuali.rice.krad.bo.Note.class.getName()); 56 knsBOs.add(org.kuali.rice.krad.bo.NoteType.class.getName()); 57 knsBOs.add(ParameterBo.class.getName()); 58 knsBOs.add(ComponentBo.class.getName()); 59 knsBOs.add(ParameterTypeBo.class.getName()); 60 knsBOs.add(CampusBo.class.getName()); 61 knsBOs.add(CampusTypeBo.class.getName()); 62 knsBOs.add(org.kuali.rice.krad.bo.PersistableAttachmentBase.class.getName()); 63 knsBOs.add(org.kuali.rice.krad.bo.PersistableBusinessObjectBase.class.getName()); 64 knsBOs.add(org.kuali.rice.krad.bo.PersistableBusinessObjectExtensionBase.class.getName()); 65 knsBOs.add(org.kuali.rice.krad.document.authorization.PessimisticLock.class.getName()); 66 knsBOs.add(org.kuali.rice.kns.lookup.SelectedObjectIds.class.getName()); 67 knsBOs.add(org.kuali.rice.location.impl.country.CountryBo.class.getName()); 68 knsBOs.add(org.kuali.rice.kns.bo.CountyImpl.class.getName()); 69 knsBOs.add(org.kuali.rice.kns.bo.StateImpl.class.getName()); 70 knsBOs.add(org.kuali.rice.kns.bo.PostalCodeImpl.class.getName()); 71 knsBOs.add(org.kuali.rice.kns.bo.SessionDocument.class.getName()); */ 72 return knsBOs; 73 } 74 75 }