Examples of EmployeeNewsEntriesRemote


Examples of org.jabusuite.cms.news.employee.session.EmployeeNewsEntriesRemote

    @Override
    public void doSave() throws EJbsObject {
        logger.debug("Saving data...");

        try {
            EmployeeNewsEntriesRemote newsEntries = (EmployeeNewsEntriesRemote)ClientTools.getRemoteBean(EmployeeNewsEntriesRemote.class);

            super.doSave();
            if (this.getDlgState() == DlgState.dsInsert) {
                logger.debug("Adding new entity " + this.getEmployeeNewsEntry().getId() + ".");
                newsEntries.createDataset(this.getEmployeeNewsEntry(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getEmployeeNewsEntry().getId() + ".");
                newsEntries.updateDataset(this.getEmployeeNewsEntry(), ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");
        } catch (NamingException e) {
            logger.error("Error saving news-entry.",e);
            JbsOptionPane.showErrorDialog(this, JbsL10N.getString("Generic.saveErrorMessage"));
View Full Code Here

Examples of org.jabusuite.cms.news.employee.session.EmployeeNewsEntriesRemote

        return new TblEmployeeNewsEntries(this, this.getJbsObjects());
    }

    @Override
    public void doDeleteJbsObject(JbsBaseObject jbsObject) throws Exception {
        EmployeeNewsEntriesRemote newsEntries = (EmployeeNewsEntriesRemote)ClientTools.getRemoteBean(EmployeeNewsEntriesRemote.class);
        newsEntries.deleteDataset((EmployeeNewsEntry)this.getSelectedJbsBaseObject(), ClientGlobals.getUser());
    }
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.