Examples of save()


Examples of org.jayasoft.woj.portal.data.dao.commercial.UserPointDao.save()

                if (godfather != null) {
                    ProductPoint pp = ppDao.get(p, years, ProductPoint.GODSON);
                    if (pp.getPoints()!=0) {
                        UserPoint oldGFUP = getUserPoint(godfather);
                        UserPoint gfUP = UserPointFactory.godson(godfather, oldGFUP, godson, p, subscribedUsers, pp);
                        upDao.save(gfUP);
                        ServiceFactory.getRegistrationService().sendFidelityAccountPointEarnedByGodSonBuyMail(godfather, godson, p, subscribedUsers, years, gfUP.getEarnedPoints(), gfUP.getPoints());
                        LOGGER.info("adding " + pp.getPoints() + " to user: " + godfather.getId() + ", his godson: " + godson.getId() + " bought " + p.getCode() + " for " + years + " years");
                    }
                } else {
                    LOGGER.info("user: " + buyer.getId() + " does not have a godfather");
View Full Code Here

Examples of org.jayasoft.woj.portal.data.dao.product.LicenseDao.save()

        try {
            LicenseDao ldao = DaoFactory.getLicenseDao();
            License l = (License)ldao.find(new Long(licenseId));
            if (l.getInvitedMail()!=null) {
                l.setInvitedMail(null);
                ldao.save(l);
            }
        } catch (DaoException e) {
            throw ServiceException.create("cannot cancel invitation on license " + licenseId, "cannot cancel invitation on license " + licenseId + ", license not found in DB", e);
        }
    }
View Full Code Here

Examples of org.jayasoft.woj.tools.dl.RevisionDescriptor.save()

                                System.out.print("[LOCKED--"+ex.getMessage()+"]");
                                continue;
                            }
                            try {
                                RevisionDescriptor rd = analyzer.analyze(rev);
                                rd.save();
                                System.out.print("[ANALYZED]");
                               
                                if (previousRd != null && previousRd.getAllItems().equals(rd.getAllItems())) {
                                    // new analyze lead to same content: we show same last modified timestamp
                                    rd.setLastModified(previousRd.getLastModified());
View Full Code Here

Examples of org.jboss.as.ee.deployment.spi.beans.JBossConfigBeanProxy.save()

        Iterator setIterator = configBeans.keySet().iterator();
        while (setIterator.hasNext()) {
            String key = (String) setIterator.next();
            JBossConfigBeanProxy val = (JBossConfigBeanProxy) configBeans.get(key);
            val.save(jos, metaData);
        }
        String metaStr = metaData.toXMLString();
        try {
            JarUtils.addJarEntry(jos, DeploymentMetaData.ENTRY_NAME, new ByteArrayInputStream(metaStr.getBytes()));
            jos.flush();
View Full Code Here

Examples of org.jboss.dashboard.database.JDBCDataSourceEntry.save()

                    if(polyDS.getPassword()==null ||
                            (passwordChanged!=null && "true".equals(passwordChanged))||
                            !PARAM_DEFAULT_PASS_VALUE.equals(getPassword())){
                        polyDS.setPassword(getPassword());
                    }
                    polyDS.save();
                }
            }
        }
        // Create a DataSource
        else {
View Full Code Here

Examples of org.jboss.dashboard.database.JNDIDataSourceEntry.save()

                } else if (dSource instanceof JDBCDataSourceEntry && getType().equals(JNDI_TYPE)) {
                    setJdbcStatusError();
                } else if (dSource instanceof JNDIDataSourceEntry && getType().equals(JNDI_TYPE)) {
                    JNDIDataSourceEntry jndiDS = (JNDIDataSourceEntry) dSource;
                    fillValues(jndiDS);
                    jndiDS.save();
                } else if (dSource instanceof JDBCDataSourceEntry && getType().equals(CUSTOM_TYPE)) {
                    JDBCDataSourceEntry polyDS = (JDBCDataSourceEntry) dSource;
                    fillValues(polyDS);
                    if(polyDS.getPassword()==null ||
                            (passwordChanged!=null && "true".equals(passwordChanged))||
View Full Code Here

Examples of org.jboss.dashboard.export.ImportManager.save()

            ImportManager importMgr = DataDisplayerServices.lookup().getImportManager();
            ImportResults importResults = importMgr.parse(new FileInputStream(pf));

            // Save the imported results.
            if (upgrade) importMgr.update(importResults);
            else importMgr.save(importResults);

            // Show import messages.
            MessageList messages = importResults.getMessages();
            Locale locale = LocaleManager.currentLocale();
            Iterator it = messages.iterator();
View Full Code Here

Examples of org.jboss.dashboard.kpi.KPI.save()

            // Clone the original KPI.
            KPI kpiDest = DataDisplayerServices.lookup().getKPIManager().createKPI();
            kpiDest.setDataProvider(kpiSrc.getDataProvider());
            kpiDest.setDataDisplayer(kpiSrc.getDataDisplayer());
            kpiDest.setDescriptionI18nMap(kpiSrc.getDescriptionI18nMap());
            kpiDest.save();

            // Link the destination panel instance with the newly created KPI.
            dest.setParameterValue(DashboardHandler.KPI_CODE, kpiDest.getCode());
        }
    }
View Full Code Here

Examples of org.jboss.dashboard.security.Policy.save()

                        panel.getProvider().getDriver().fireBeforePanelRemoved(panel);
                        panel.panelRemoved();
                    }
                }

                policy.save();

                // Delete workspace.
                session.delete(workspace);
                session.flush();
View Full Code Here

Examples of org.jboss.dashboard.security.UIPolicy.save()

                    RolePrincipal prpal = new RolePrincipal(role);
                    for (Permission perm : defaultPermissions) {
                        policy.addPermission(prpal, perm);
                    }
                }
                policy.save();

                title = null;
                name = null;
                skinId = UIServices.lookup().getSkinsManager().getDefaultElement().getId();
                envelopeId = UIServices.lookup().getEnvelopesManager().getDefaultElement().getId();
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.