Package org.spw.model

Examples of org.spw.model.Contact


    }
   
    public String buttonDeleteOrganized_action() {
        RowKey rk = tableRowGroup2.getRowKey();
        if (rk != null) {
            Contact contact= (Contact) getSessionBean1().getOrganizedByDataProvider().getObject(rk);
            removeOrganizedBy(contact);
        }
        getSessionBean1().getOrganizedByDataProvider().refreshList();
       
        return null;
View Full Code Here


    public String buttonEmail_action() {
        int added = 0;
        int selectedRows = getTableRowGroup1().getSelectedRowsCount();
        RowKey[] selectedRowKeys = getTableRowGroup1().getSelectedRowKeys();
        for(RowKey rk : selectedRowKeys){
            Contact contact = (Contact)list.getObject(rk);
            if (getSessionBean1().getEmailChoices().add(contact)) added++;
        }
        info (added + " added to the email selection.");
       
        return null;
View Full Code Here

    public String buttonMail_action() {
        int added = 0;
        int selectedRows = getTableRowGroup1().getSelectedRowsCount();
        RowKey[] selectedRowKeys = getTableRowGroup1().getSelectedRowKeys();
        for(RowKey rk : selectedRowKeys){
            Contact contact = (Contact)list.getObject(rk);
            if (getSessionBean1().getMailChoices().add(contact)) added++;
        }
        info (added + " added to the mail selection.");
       
        return null;
View Full Code Here

    public String buttonEmail_action() {
        int added = 0;
        int selectedRows = getTableRowGroup1().getSelectedRowsCount();
        RowKey[] selectedRowKeys = getTableRowGroup1().getSelectedRowKeys();
        for(RowKey rk : selectedRowKeys){
            Contact contact = (Contact)list.getObject(rk);
            if (getSessionBean1().getEmailChoices().add(contact)) added++;
        }
        info(added + " added to the email selection.");
       
        return null;
View Full Code Here

    public String buttonMail_action() {
        int added = 0;
        int selectedRows = getTableRowGroup1().getSelectedRowsCount();
        RowKey[] selectedRowKeys = getTableRowGroup1().getSelectedRowKeys();
        for(RowKey rk : selectedRowKeys){
            Contact contact = (Contact)list.getObject(rk);
            if (getSessionBean1().getMailChoices().add(contact)) added++;
        }
        info(added + " added to the mail selection.");
       
        return null;
View Full Code Here

    public String buttonEmail_action() {
        int added = 0;
        int selectedRows = getTableRowGroup1().getSelectedRowsCount();
        RowKey[] selectedRowKeys = getTableRowGroup1().getSelectedRowKeys();
        for(RowKey rk : selectedRowKeys){
            Contact contact = (Contact)list.getObject(rk);
            if (getSessionBean1().getEmailChoices().add(contact)) added++;
        }
        info (added + " added to the email selection.");
       
        return null;
View Full Code Here

    public String buttonMail_action() {
        int added = 0;
        int selectedRows = getTableRowGroup1().getSelectedRowsCount();
        RowKey[] selectedRowKeys = getTableRowGroup1().getSelectedRowKeys();
        for(RowKey rk : selectedRowKeys){
            Contact contact = (Contact)list.getObject(rk);
            if (getSessionBean1().getMailChoices().add(contact)) added++;
        }
        info (added + " added to the mail selection.");
       
        return null;
View Full Code Here

       
        return null;
    }
   
    private void deleteCommunication(Communication communication) {
        Contact contact = getContact();
        contact.getParticipate().remove(communication);
        new ContactController().update(contact);
        new CommunicationController().delete(communication);
       
    }
View Full Code Here

    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
        java.util.List<Contact> participants = new ArrayList<Contact>();
        participants.add(contact);
        if (selected != null) {
            for (int i= 0; i < selected.length; i++) {
                Contact aParticipant = contactCtl.parse("["+selected[i]+"]");
                if (aParticipant != null && !aParticipant.equals(contact)) {
                    participants.add(aParticipant);
                }
            }
        }
        communication = comCtl.updateParticipants(communication, participants);
View Full Code Here

        response.setHeader("Content-Disposition", "attachment;filename=\"export.csv\"");
        //TODO: generate the lenght
        response.setContentType("application/x-download");
        try {
           
            MailExporter exporter = new MailExporter(new Contact());
            OutputStream out = response.getOutputStream();
            out.write(exporter.getHeaders().getBytes());
            for (Object contact : getSessionBean1().getMailChoices()) {
                exporter.setModel(contact);
                out.write('\n');
View Full Code Here

TOP

Related Classes of org.spw.model.Contact

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.