Package org.jabusuite.address.session

Examples of org.jabusuite.address.session.ContactsRemote


        super.editJbsObject();
    }
   
    @Override
    public void doDeleteJbsObject(JbsBaseObject jbsObject) throws Exception {
        ContactsRemote contactManagement = (ContactsRemote)ClientTools.getRemoteBean(ContactsRemote.class);
        contactManagement.deleteDataset((Contact)this.getSelectedJbsBaseObject(), ClientGlobals.getUser());
    }
View Full Code Here


     * @throws java.lang.Exception
     */
    public void setContactFilter(String filter, SelContactType.ContactType contactType) throws Exception {
        switch (contactType) {
            case CT_CONTACT :
                ContactsRemote contactManagement = (ContactsRemote)ClientTools.getRemoteBean(ContactsRemote.class);
                this.setContacts(contactManagement.getDatasets(filter, "a.name1, a.name2, a.name3", ClientGlobals.getUser(), ClientGlobals.getCompany(), 0, 0));
                break;
            case CT_CUSTOMER :
                CustomersRemote customerManagement = (CustomersRemote)ClientTools.getRemoteBean(CustomersRemote.class);
                this.setContacts(customerManagement.getDatasets(filter, "a.name1, a.name2, a.name3", ClientGlobals.getUser(), ClientGlobals.getCompany(), 0, 0));
                break;
View Full Code Here

    public void doSave() throws EJbsObject {
        if (!this.isSaveDirectly())
            super.doSave();
        else {
            try {
                ContactsRemote contacts = (ContactsRemote)ClientTools.getRemoteBean(ContactsRemote.class);

                //this.getControlData();
                super.doSave();

                if (this.getDlgState() == DlgState.dsInsert) {
                    System.out.println("Adding new entity");
                    contacts.createDataset(this.getContact(), ClientGlobals.getUser(), ClientGlobals.getCompany());
                } else if (this.getDlgState() == DlgState.dsEdit) {
                    System.out.println("Saving exisiting entity.");
                    contacts.updateDataset(this.getContact(), ClientGlobals.getUser());
                }
                System.out.println("Entity saved.");

            } catch (NamingException e) {
                e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.jabusuite.address.session.ContactsRemote

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.