1 /* 2 * Copyright 2007 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 1.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/ecl1.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 * Business Object class exposer which adds non-KNS Rice entities to the KNS persistence units, so that these objects 23 * can be used with KNS functionality - for instance, PersonImpl objects can be looked up. 24 * 25 * @author Kuali Rice Team (rice.collab@kuali.org) 26 * 27 */ 28 public class RiceToNervousSystemBusinessObjectClassExposer implements PersistableBusinessObjectClassExposer { 29 30 /** 31 * Exposes a list of non-KNS entity class names 32 * 33 * @see PersistableBusinessObjectClassExposer#exposePersistableBusinessObjectClassNames() 34 */ 35 public Set<String> exposePersistableBusinessObjectClassNames() { 36 Set<String> exposedClasses = new HashSet<String>(); 37 /*exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.AddressTypeImpl.class.getName()); 38 exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.AffiliationTypeImpl.class.getName()); 39 exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.CitizenshipStatusImpl.class.getName()); 40 exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.EmailTypeImpl.class.getName()); 41 exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.EmploymentStatusImpl.class.getName()); 42 exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.EmploymentTypeImpl.class.getName()); 43 exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.EntityNameTypeImpl.class.getName()); 44 exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.EntityTypeImpl.class.getName()); 45 exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.ExternalIdentifierTypeImpl.class.getName()); 46 exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.PhoneTypeImpl.class.getName()); 47 exposedClasses.add(org.kuali.rice.kim.bo.types.impl.KimTypeImpl.class.getName()); 48 exposedClasses.add(org.kuali.rice.kim.bo.types.impl.KimAttributeImpl.class.getName()); 49 exposedClasses.add(org.kuali.rice.kim.bo.types.impl.KimTypeAttributeImpl.class.getName()); 50 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimPrincipalImpl.class.getName()); 51 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityImpl.class.getName()); 52 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityAffiliationImpl.class.getName()); 53 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityBioDemographicsImpl.class.getName()); 54 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityCitizenshipImpl.class.getName()); 55 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityEmploymentInformationImpl.class.getName()); 56 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityExternalIdentifierImpl.class.getName()); 57 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityPrivacyPreferencesImpl.class.getName()); 58 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityNameImpl.class.getName()); 59 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityEthnicityImpl.class.getName()); 60 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityResidencyImpl.class.getName()); 61 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityVisaImpl.class.getName()); 62 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityEntityTypeImpl.class.getName()); 63 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityAddressImpl.class.getName()); 64 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityEmailImpl.class.getName()); 65 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityPhoneImpl.class.getName()); 66 exposedClasses.add(org.kuali.rice.kim.bo.impl.GroupImpl.class.getName()); 67 exposedClasses.add(org.kuali.rice.kim.bo.group.impl.GroupMemberImpl.class.getName()); 68 exposedClasses.add(org.kuali.rice.kim.bo.group.impl.GroupAttributeDataImpl.class.getName()); 69 exposedClasses.add(org.kuali.rice.kim.impl.role.RoleBo.class.getName()); 70 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.RoleMemberImpl.class.getName()); 71 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.RoleMemberAttributeDataImpl.class.getName()); 72 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimDelegationImpl.class.getName()); 73 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimDelegationMemberImpl.class.getName()); 74 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimDelegationMemberAttributeDataImpl.class.getName()); 75 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimPermissionImpl.class.getName()); 76 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimPermissionTemplateImpl.class.getName()); 77 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.RolePermissionImpl.class.getName()); 78 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.PermissionAttributeDataImpl.class.getName()); 79 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimResponsibilityImpl.class.getName()); 80 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimResponsibilityTemplateImpl.class.getName()); 81 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.RoleResponsibilityImpl.class.getName()); 82 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.ResponsibilityAttributeDataImpl.class.getName()); 83 exposedClasses.add(org.kuali.rice.kim.bo.role.impl.RoleResponsibilityActionImpl.class.getName()); 84 exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityDefaultInfoCacheImpl.class.getName()); 85 exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentAffiliation.class.getName()); 86 exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentEmploymentInfo.class.getName()); 87 exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentPrivacy.class.getName()); 88 exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentName.class.getName()); 89 exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentAddress.class.getName()); 90 exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentEmail.class.getName()); 91 exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentPhone.class.getName()); 92 exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentRole.class.getName()); 93 exposedClasses.add(org.kuali.rice.kim.bo.ui.KimDocumentRoleMember.class.getName()); 94 exposedClasses.add(org.kuali.rice.kim.bo.ui.KimDocumentRoleQualifier.class.getName()); 95 exposedClasses.add(org.kuali.rice.kim.bo.ui.KimDocumentRoleResponsibilityAction.class.getName()); 96 exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentGroup.class.getName()); 97 exposedClasses.add(org.kuali.rice.kim.document.IdentityManagementRoleDocument.class.getName()); 98 exposedClasses.add(org.kuali.rice.kim.bo.ui.KimDocumentRolePermission.class.getName()); 99 exposedClasses.add(org.kuali.rice.kim.bo.ui.KimDocumentRoleResponsibility.class.getName()); 100 exposedClasses.add(org.kuali.rice.kim.bo.ui.RoleDocumentDelegation.class.getName()); 101 exposedClasses.add(org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMember.class.getName()); 102 exposedClasses.add(org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMemberQualifier.class.getName()); 103 exposedClasses.add(org.kuali.rice.kim.document.IdentityManagementGroupDocument.class.getName()); 104 exposedClasses.add(org.kuali.rice.kim.bo.ui.GroupDocumentMember.class.getName()); 105 exposedClasses.add(org.kuali.rice.kim.bo.ui.GroupDocumentQualifier.class.getName()); 106 exposedClasses.add(org.kuali.rice.kim.document.IdentityManagementKimDocument.class.getName()); 107 exposedClasses.add(org.kuali.rice.kim.document.IdentityManagementPersonDocument.class.getName()); 108 exposedClasses.add(org.kuali.rice.ken.bo.Notification.class.getName()); 109 exposedClasses.add(org.kuali.rice.ken.bo.NotificationChannel.class.getName()); 110 exposedClasses.add(org.kuali.rice.ken.bo.NotificationContentType.class.getName()); 111 exposedClasses.add(org.kuali.rice.ken.bo.NotificationPriority.class.getName()); 112 exposedClasses.add(org.kuali.rice.ken.bo.NotificationProducer.class.getName()); 113 exposedClasses.add(org.kuali.rice.ken.bo.NotificationChannelReviewer.class.getName()); 114 exposedClasses.add(org.kuali.rice.ken.bo.NotificationRecipient.class.getName()); 115 exposedClasses.add(org.kuali.rice.ken.bo.NotificationRecipientList.class.getName()); 116 exposedClasses.add(org.kuali.rice.ken.bo.NotificationSender.class.getName()); 117 exposedClasses.add(org.kuali.rice.ken.bo.UserChannelSubscription.class.getName()); 118 exposedClasses.add(org.kuali.rice.ken.bo.NotificationMessageDelivery.class.getName()); 119 */ 120 return exposedClasses; 121 } 122 123 }