Examples of Communication


Examples of org.spw.model.Communication

    }
   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Communication communication = (Communication)list.getObject(rk);
            deleteCommunication(communication);
        }
        list.refreshListCommunicationsContact();
       
        return null;
View Full Code Here

Examples of org.spw.model.Communication

    private Contact getContact() {
        return list.getContact();
    }
   
    public String buttonAdd_action() {
        getSessionBean1().setCommunication(new Communication());
        loadOfficeStaff(null);
        loadSelected(null);
       
        return "new";
    }
View Full Code Here

Examples of org.spw.model.Communication

    }
   
    public String buttonEdit_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Communication communication = (Communication)list.getObject(rk);
            getSessionBean1().setCommunication(communication);
            loadOfficeStaff(communication.getParticipants());
            loadSelected(communication.getParticipants());
        }
       
        return "edit";
    }
View Full Code Here

Examples of org.spw.model.Communication

       
        // </editor-fold>
        // Perform application initialization that must complete
        // *after* managed components are initialized
        if (getCommunication() == null) {
            setCommunication(new Communication());
        }
    }
View Full Code Here

Examples of org.spw.model.Communication

    private void addCommunication() {
        String[] selected = getSessionBean1().getChoices();
        CommunicationController comCtl = new CommunicationController();
        ContactController contactCtl = new ContactController();
        Contact contact = getContact();
        Communication communication = getCommunication();
       
        //Create communication (needed for new object)
        communication = comCtl.update(communication);
       
        //Insert the participants after converting the array to List
View Full Code Here

Examples of org.spw.model.Communication

    }
   
    public String buttonCompleted_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Communication communication = (Communication)getSessionBean1().
                    getCommunicationDataProvider().getObject(rk);
            communication.setDateOfCompletion(new Date());
            new CommunicationController().update(communication);
        }
        // Refresh
        actionsNotCompletedList.refreshListActionsNotCompleted();
       
View Full Code Here

Examples of org.spw.model.Communication

    }
   
    public String buttonEditCommunication_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Communication communication = (Communication) actionsNotCompletedList.getObject(rk);
            if (! communication.getParticipants().isEmpty()) {
                Contact contact = communication.getParticipants().get(0);
                if (contact instanceof Partnership) {
                    getSessionBean1().setPartnership((Partnership) contact);
                    return "infoPartnership";
                } else if (contact instanceof Person) {
                    getSessionBean1().setPerson((Person) contact);
View Full Code Here

Examples of org.spw.model.Communication

    }
   
    public String buttonDelete_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Communication communication = (Communication)list.getObject(rk);
            deleteCommunication(communication);
        }
        list.refreshListCommunicationsContact();
       
        return null;
View Full Code Here

Examples of org.spw.model.Communication

    private Contact getContact() {
        return list.getContact();
    }
   
    public String buttonAdd_action() {
        getSessionBean1().setCommunication(new Communication());
        loadOfficeStaff(null);
        loadSelected(null);
       
        return "new";
    }
View Full Code Here

Examples of org.spw.model.Communication

    }
   
    public String buttonEdit_action() {
        RowKey rk = tableRowGroup1.getRowKey();
        if (rk != null) {
            Communication communication = (Communication)list.getObject(rk);
            getSessionBean1().setCommunication(communication);
            loadOfficeStaff(communication.getParticipants());
            loadSelected(communication.getParticipants());
        }
       
        return "edit";
    }
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.