Package com.centraview.marketing.events

Examples of com.centraview.marketing.events.EventsLocalHome.create()


      throw new AuthorizationFailedException("Event - getEventDetails");
    int result = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.addEvent(mapEvent, userId);
    } catch (Exception exe) {
      exe.printStackTrace();
      result = 1;
View Full Code Here


    int result = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.addEventRegister(mapEventRegister, userId);
    } catch (Exception exe) {
      exe.printStackTrace();
      result = 1;
View Full Code Here

    EventDetails eventDetails = new EventDetails();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      eventDetails = local.getEventDetails(userId, eventID);

    } catch (Exception exe) {
      exe.printStackTrace();
View Full Code Here

    Collection returnCollection = new ArrayList();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      returnCollection.addAll(local.getAttendeesForEvent(userID, eventID));
    } // end of try block
    catch (Exception exe) {
      exe.printStackTrace();
View Full Code Here

  {
    int result = 1;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.editEvent(mapEvent, userID);
    } catch (Exception exe) {
      exe.printStackTrace();
      result = -1;
View Full Code Here

  {
    int result = 1;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.deleteEvent(eventid);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
View Full Code Here

  {
    int result = 1;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.deleteEventRegister(mapEvent);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
View Full Code Here

  {
    int result = 1;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.registerAttendee(mapEvent);
    } catch (Exception exe) {
      exe.printStackTrace();
      result = -1;
View Full Code Here

  {
    boolean result = false;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.hasUserAcceptedEvent(eventID, userID);
    } catch (IndividualNotInvitedException inie) {
      throw inie;
    } catch (Exception exe) {
View Full Code Here

  {
    String result = "";
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
      local.setDataSource(this.dataSource);
      result = local.getEventAttendeesForMail(eventid, userID);
    } catch (Exception exe) {
      exe.printStackTrace();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.