Package com.centraview.projects.project

Examples of com.centraview.projects.project.ProjectLocalHome.create()


  public void deleteProject(int indvID, int projectID) throws AuthorizationFailedException
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProjectLocalHome home = (ProjectLocalHome)ic.lookup("local/Project");
      ProjectLocal remote = (ProjectLocal)home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteProject(indvID, projectID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
View Full Code Here


    int projectId = 0;

    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProjectLocalHome home = (ProjectLocalHome)ic.lookup("local/Project");
      ProjectLocal remote = (ProjectLocal)home.create();
      remote.setDataSource(this.dataSource);

      projectId = remote.addProject(userId, pvo);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.addProject] Exception Thrown: " + e);
View Full Code Here

  public void updateProject(int userId, ProjectVO pvo)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProjectLocalHome home = (ProjectLocalHome)ic.lookup("local/Project");
      ProjectLocal remote = (ProjectLocal)home.create();
      remote.setDataSource(this.dataSource);

      remote.updateProject(userId, pvo);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.updateProject] Exception Thrown: " + e);
View Full Code Here

    ProjectVO projectVO = null;

    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProjectLocalHome home = (ProjectLocalHome)ic.lookup("local/Project");
      ProjectLocal remote = (ProjectLocal)home.create();
      remote.setDataSource(this.dataSource);

      projectVO = remote.getProject(projectId, userId);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.getProject] Exception Thrown: " + e);
View Full Code Here

  {
    String ProjectName = "";
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ProjectLocalHome home = (ProjectLocalHome)ic.lookup("local/Project");
      ProjectLocal remote = (ProjectLocal)home.create();
      remote.setDataSource(this.dataSource);
      ProjectName = remote.getProjectName(ProjectID);
    } catch (Exception e) {
      System.out.println("[Exception][ProjectFacadeEJB.getProjectName] Exception Thrown: " + e);
      e.printStackTrace();
View Full Code Here

                }
                break;
              case ActivityVO.ACTIVITY_LINK_PROJECT : // Projects - from module table
                try {
                  ProjectLocalHome home = (ProjectLocalHome)ic.lookup("local/Project");
                  ProjectLocal remote = (ProjectLocal)home.create();
                  remote.setDataSource(this.dataSource);
                  String projectTitle = remote.getProjectName(linkId);
                  app.setRelatedFieldID(linkId);
                  app.setRelatedFieldValue(projectTitle);
                  app.setRelatedTypeID(ActivityVO.ACTIVITY_LINK_PROJECT);
View Full Code Here

            case 36: // Projects - from module table
              try
              {
                ProjectLocalHome home = (ProjectLocalHome)ic.lookup("local/Project");
                ProjectLocal remote = home.create();
                remote.setDataSource(this.dataSource);
                String projectTitle = remote.getProjectName(linkId);
                flvo.setRelatedFieldID(linkId);
                flvo.setRelatedFieldValue(projectTitle);
                flvo.setRelatedTypeID(36);
View Full Code Here

              break;
            case 39: // Ticket - from module table
              try
              {
                TicketLocalHome home = (TicketLocalHome)ic.lookup("local/Ticket");
                TicketLocal remote = home.create();
                remote.setDataSource(this.dataSource);
                String ticketSubject = remote.getTicketName(linkId);
                flvo.setRelatedFieldID(linkId);
                flvo.setRelatedFieldValue(ticketSubject);
                flvo.setRelatedTypeID(39);
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.