Package org.eurekastreams.server.domain

Examples of org.eurekastreams.server.domain.NotificationFilterPreferenceEntity


                // create the preference entry
                if (user == null)
                {
                    user = (Person) getHibernateSession().load(Person.class, inRequest.getPersonId());
                }
                NotificationFilterPreferenceEntity entity = new NotificationFilterPreferenceEntity();
                entity.setPerson(user);
                entity.setNotificationCategory(dto.getNotificationCategory());
                entity.setNotifierType(dto.getNotifierType());
                getEntityManager().persist(entity);
            }
        }

        return null;
View Full Code Here


        Person user = (Person) getHibernateSession().load(Person.class, inRequest.getPersonId());

        // add new preferences
        for (NotificationFilterPreferenceDTO dto : inRequest.getPrefList())
        {
            NotificationFilterPreferenceEntity entity = new NotificationFilterPreferenceEntity();
            entity.setPerson(user);
            entity.setNotificationCategory(dto.getNotificationCategory());
            entity.setNotifierType(dto.getNotifierType());
            getEntityManager().persist(entity);
        }

        return null;
    }
View Full Code Here

TOP

Related Classes of org.eurekastreams.server.domain.NotificationFilterPreferenceEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.