Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
KRADPersistableBusinessObjectClassExposer |
|
| 1.0;1 |
1 | /** | |
2 | * Copyright 2005-2011 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 | * The class which 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 | */ | |
28 | 0 | public class KRADPersistableBusinessObjectClassExposer implements |
29 | PersistableBusinessObjectClassExposer { | |
30 | ||
31 | /** | |
32 | * Exposes all KNS objects - a hard coded list for now - to persistence units | |
33 | * | |
34 | * @see PersistableBusinessObjectClassExposer#exposePersistableBusinessObjectClassNames() | |
35 | */ | |
36 | @Override | |
37 | public Set<String> exposePersistableBusinessObjectClassNames() { | |
38 | 0 | Set<String> knsBOs = new HashSet<String>(); |
39 | /*knsBOs.add(org.kuali.rice.kns.document.DocumentBase.class.getName()); | |
40 | knsBOs.add(org.kuali.rice.kns.document.MaintenanceDocumentBase.class.getName()); | |
41 | knsBOs.add(org.kuali.rice.kns.document.MaintenanceLock.class.getName()); | |
42 | knsBOs.add(org.kuali.rice.kns.document.TransactionalDocumentBase.class.getName()); | |
43 | knsBOs.add(org.kuali.rice.krad.bo.AdHocRoutePerson.class.getName()); | |
44 | knsBOs.add(org.kuali.rice.krad.bo.AdHocRouteRecipient.class.getName()); | |
45 | knsBOs.add(org.kuali.rice.kns.bo.AdHocRouteWorkgroup.class.getName()); | |
46 | knsBOs.add(org.kuali.rice.krad.bo.Attachment.class.getName()); | |
47 | //knsBOs.add(org.kuali.rice.kns.bo.CampusImpl.class.getName()); | |
48 | //knsBOs.add(org.kuali.rice.kns.bo.CampusTypeImpl.class.getName()); | |
49 | knsBOs.add(org.kuali.rice.kns.bo.DocumentAttachment.class.getName()); | |
50 | knsBOs.add(org.kuali.rice.kns.bo.DocumentHeader.class.getName()); | |
51 | knsBOs.add(org.kuali.rice.krad.bo.GlobalBusinessObjectDetailBase.class.getName()); | |
52 | knsBOs.add(org.kuali.rice.kns.bo.LookupResults.class.getName()); | |
53 | knsBOs.add(org.kuali.rice.krad.bo.KualiCodeBase.class.getName()); | |
54 | knsBOs.add(org.kuali.rice.krad.bo.MultipleValueLookupMetadata.class.getName()); | |
55 | knsBOs.add(NamespaceBo.class.getName()); | |
56 | knsBOs.add(org.kuali.rice.krad.bo.Note.class.getName()); | |
57 | knsBOs.add(org.kuali.rice.krad.bo.NoteType.class.getName()); | |
58 | knsBOs.add(ParameterBo.class.getName()); | |
59 | knsBOs.add(ComponentBo.class.getName()); | |
60 | knsBOs.add(ParameterTypeBo.class.getName()); | |
61 | knsBOs.add(CampusBo.class.getName()); | |
62 | knsBOs.add(CampusTypeBo.class.getName()); | |
63 | knsBOs.add(org.kuali.rice.krad.bo.PersistableAttachmentBase.class.getName()); | |
64 | knsBOs.add(org.kuali.rice.krad.bo.PersistableBusinessObjectBase.class.getName()); | |
65 | knsBOs.add(org.kuali.rice.krad.bo.PersistableBusinessObjectExtensionBase.class.getName()); | |
66 | knsBOs.add(org.kuali.rice.krad.document.authorization.PessimisticLock.class.getName()); | |
67 | knsBOs.add(org.kuali.rice.krad.bo.SelectedObjectIds.class.getName()); | |
68 | knsBOs.add(org.kuali.rice.location.impl.country.CountryBo.class.getName()); | |
69 | knsBOs.add(org.kuali.rice.kns.bo.CountyImpl.class.getName()); | |
70 | knsBOs.add(org.kuali.rice.kns.bo.StateImpl.class.getName()); | |
71 | knsBOs.add(org.kuali.rice.kns.bo.PostalCodeImpl.class.getName()); | |
72 | knsBOs.add(org.kuali.rice.kns.bo.SessionDocument.class.getName()); */ | |
73 | 0 | return knsBOs; |
74 | } | |
75 | ||
76 | } |