001    /**
002     * Copyright 2005-2013 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     * Business Object class exposer which adds non-KNS Rice entities to the KNS persistence units, so that these objects
023     * can be used with KNS functionality - for instance, PersonImpl objects can be looked up. 
024     * 
025     * @author Kuali Rice Team (rice.collab@kuali.org)
026     *
027     */
028    public class RiceToNervousSystemBusinessObjectClassExposer implements PersistableBusinessObjectClassExposer {
029    
030            /**
031             * Exposes a list of non-KNS entity class names
032             * 
033             * @see PersistableBusinessObjectClassExposer#exposePersistableBusinessObjectClassNames()
034             */
035            public Set<String> exposePersistableBusinessObjectClassNames() {
036                    Set<String> exposedClasses = new HashSet<String>();
037                    /*exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.AddressTypeImpl.class.getName());
038                exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.AffiliationTypeImpl.class.getName());
039                exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.CitizenshipStatusImpl.class.getName());
040                exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.EmailTypeImpl.class.getName());
041                exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.EmploymentStatusImpl.class.getName());
042                exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.EmploymentTypeImpl.class.getName());
043                exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.EntityNameTypeImpl.class.getName());
044                exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.EntityTypeImpl.class.getName());
045                exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.ExternalIdentifierTypeImpl.class.getName());
046                exposedClasses.add(org.kuali.rice.kim.bo.reference.impl.PhoneTypeImpl.class.getName());
047                exposedClasses.add(org.kuali.rice.kim.bo.types.impl.KimTypeImpl.class.getName());
048                exposedClasses.add(org.kuali.rice.kim.bo.types.impl.KimAttributeImpl.class.getName());
049                exposedClasses.add(org.kuali.rice.kim.bo.types.impl.KimTypeAttributeImpl.class.getName());
050                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimPrincipalImpl.class.getName());
051                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityImpl.class.getName());
052                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityAffiliationImpl.class.getName());
053                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityBioDemographicsImpl.class.getName());
054                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityCitizenshipImpl.class.getName());
055                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityEmploymentInformationImpl.class.getName());
056                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityExternalIdentifierImpl.class.getName());
057                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityPrivacyPreferencesImpl.class.getName());
058                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityNameImpl.class.getName());
059                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityEthnicityImpl.class.getName());
060                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityResidencyImpl.class.getName());
061                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityVisaImpl.class.getName());
062                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityEntityTypeImpl.class.getName());
063                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityAddressImpl.class.getName());
064                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityEmailImpl.class.getName());
065                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityPhoneImpl.class.getName());
066                exposedClasses.add(org.kuali.rice.kim.bo.impl.GroupImpl.class.getName());
067                exposedClasses.add(org.kuali.rice.kim.bo.group.impl.GroupMemberImpl.class.getName());
068                exposedClasses.add(org.kuali.rice.kim.bo.group.impl.GroupAttributeDataImpl.class.getName());
069                exposedClasses.add(org.kuali.rice.kim.impl.role.RoleBo.class.getName());
070                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.RoleMemberImpl.class.getName());
071                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.RoleMemberAttributeDataImpl.class.getName());
072                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimDelegationImpl.class.getName());
073                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimDelegationMemberImpl.class.getName());
074                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimDelegationMemberAttributeDataImpl.class.getName());
075                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimPermissionImpl.class.getName());
076                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimPermissionTemplateImpl.class.getName());
077                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.RolePermissionImpl.class.getName());
078                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.PermissionAttributeDataImpl.class.getName());
079                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimResponsibilityImpl.class.getName());
080                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.KimResponsibilityTemplateImpl.class.getName());
081                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.RoleResponsibilityImpl.class.getName());
082                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.ResponsibilityAttributeDataImpl.class.getName());
083                exposedClasses.add(org.kuali.rice.kim.bo.role.impl.RoleResponsibilityActionImpl.class.getName());
084                exposedClasses.add(org.kuali.rice.kim.bo.identity.impl.KimEntityDefaultInfoCacheImpl.class.getName());
085                exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentAffiliation.class.getName());
086                exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentEmploymentInfo.class.getName());
087                exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentPrivacy.class.getName());
088                exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentName.class.getName());
089                exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentAddress.class.getName());
090                exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentEmail.class.getName());
091                exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentPhone.class.getName());
092                exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentRole.class.getName());
093                exposedClasses.add(org.kuali.rice.kim.bo.ui.KimDocumentRoleMember.class.getName());
094                exposedClasses.add(org.kuali.rice.kim.bo.ui.KimDocumentRoleQualifier.class.getName());
095                exposedClasses.add(org.kuali.rice.kim.bo.ui.KimDocumentRoleResponsibilityAction.class.getName());
096                exposedClasses.add(org.kuali.rice.kim.bo.ui.PersonDocumentGroup.class.getName());
097                exposedClasses.add(org.kuali.rice.kim.document.IdentityManagementRoleDocument.class.getName());
098                exposedClasses.add(org.kuali.rice.kim.bo.ui.KimDocumentRolePermission.class.getName());
099                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    }