Package framework.beans

Examples of framework.beans.ModificationInfo


        return true;
    }

    public void updateOMIPrice(HashSet<VisitPrice> visitPriceList) throws ClipsException {
        try {
            ModificationInfo mi = getBean().updateOMIPrice(visitPriceList);
            auditDetailsList.addAll(mi.getAudit());
            fireAuditEvent();
        } catch (Exception ex) {
            clearBean();
            throw new ClipsException("Ошибка при обновлении стоимости посещений по ОМС", ex);
        }
View Full Code Here


            Set<Integer> set = new HashSet<Integer>();
            Iterator<DirectoryPacketTemplateItem> it = get().iterator();
            while (it.hasNext()) {
                set.add(it.next().getID());
            }
            ModificationInfo mi = getBean().setPacketTemplates(set);
            auditDetailsList.addAll(mi.getAudit());
            fireAuditEvent();
        }
View Full Code Here

        }


        @Override
        protected void deleteDB(ServisePriceData data) throws Exception {
            ModificationInfo mi = getBean().removeService(data.getDetails().getId());
            auditDetailsList.addAll(mi.getAudit());
            fireAuditEvent();
        }
View Full Code Here

        TYPE entity = getExistentEntity();

        if (entity.getId() == getCollaboratorId()) {
            checkCommandAccessibility(COMMAND_CHANGE_OWN_PASSWORD);
            if (entity.getPasswordHash()!= null && !MessageDigest.isEqual(entity.getPasswordHash(), anOldPasswordHash)) {
                return new ModificationInfo(ConfigBeanRemoteM.INVALID_OLD_ADMIN_PASSWORD, (AuditDetails) null);
            }
        } else {
            checkCommandAccessibility(COMMAND_WRITE_COLLABORATOR_RIGHTS);
        }

        AuditDoc<CollaboratorAbstract> auditDoc = new AuditDoc<CollaboratorAbstract>(entity, getCollaborator());
        entity.setPasswordHash(aNewPasswordHash);
        saveEntity(entity);
        auditDoc.check(entity);
        return new ModificationInfo(ConfigBeanRemoteM.ADMIN_PASSWORD_CHANGED, persistAudit(auditDoc));
    }
View Full Code Here

                new Field("key.collaborator", eid),
                new Field("key.panel", list2remove, Field.OPERATOR_IN)
            };
            deleteEntityList2(CollaboratorPanel.class, f, auditDocList);
        }
        return new ModificationInfo(0, persistAudit(auditDocList));
    }
View Full Code Here

        AuditDoc<CollaboratorAbstract> auditDoc = new AuditDoc<CollaboratorAbstract>(entity, getCollaborator());
        entity.setGuiConfig(gc);
        saveEntity(entity);
        auditDoc.addFieldFormat("guiConfig", "");
        auditDoc.check(entity);
        return new ModificationInfo(persistAudit(auditDoc));
    }
View Full Code Here

TOP

Related Classes of framework.beans.ModificationInfo

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.