Package framework.generic

Examples of framework.generic.ClipsServerException


        zero.set(Calendar.HOUR_OF_DAY, 0);
        zero.set(Calendar.MINUTE, 0);
        zero.set(Calendar.SECOND, 0);
        zero.set(Calendar.MILLISECOND, 0);
        if(zero.after(cal)) {
            throw new ClipsServerException("Попытка изменения данных за уже прошедшие дни: сегодня "
                    + zero.getTime() + ", изменяемая дата " + cal.getTime());
        }       
    }
View Full Code Here


                auditDoc.check(null);
                auditDocList.add(auditDoc);
            }
        }
    catch (Exception ex) {
            throw new ClipsServerException("Попытка удаления не удалась: ", ex);
        }
    }
View Full Code Here

   * @throws ClipsServerException
   */
  public void checkNotFired()
              throws ClipsServerException {
        if (isTrash()) {
            throw new ClipsServerException("Сотрудник " + getTitle() + " числится уволенным");
        }
    }
View Full Code Here

            config.setId(ConfigParametrAbstract.ID_ADMIN_PASSWORD_HASH);
            config.setStrvalue((aNewPasswdHash != null) ?
                new String(SessionPassword.byte2char(aNewPasswdHash)): null);
            manager.merge(config);
        } catch (Exception ex) {
            throw new ClipsServerException("Ошибка при установке пароля суперпользователя", ex);
        }
    }
View Full Code Here

                throw new EDataIntegrity("Такой сотрудник уже имеется в списке");
            } else {
                entity.setClient(findEntity(clientClass, d.clientID));
            }
        } else if (d.clientID != entity.getClient().getId()) {
            throw new ClipsServerException("Нельзя заменять клиента соответствующего сотруднику");
        }

        if (entity.isTrash()) {
            deleteActiveSessions();
        }
View Full Code Here

    private GEN getEntity() throws ClipsServerException {
        if(entityID == 0) {
            try {
                return cls.newInstance();
            } catch (Exception ex) {
                throw new ClipsServerException("Неожиданная ошибка при создании новых данных на сервере", ex);
            }
        }
    else {
            //entity = (GEN) findEntity(cls, anId);
            return findEntity(cls, entityID);
View Full Code Here

            List<AuditDetails> auditInfo = persistAudit(auditList);
            return new ModificationInfo(id, auditInfo);
        } catch (ClipsServerException ex) {
            throw ex;
        } catch (Exception ex) {
            throw new ClipsServerException("Не удалось сохранить: ", ex);
        }
    }
View Full Code Here

            List<AuditDetails> auditInfo = persistAudit(auditDocList);
            return new ModificationInfo(entity.getId(), auditInfo);
        } catch (ClipsServerException ex) {
            throw ex;
        } catch (Exception ex) {
            throw new ClipsServerException("Ошибка удаления", ex);
        }
    }
View Full Code Here

        //проверка, что не меняется родитель
        int eid = node.getId();
        TextTemplateTree parent = node.getParent();
        if(eid > 0) {
            if(parent != null && parent.getId() != d.parentItem) {
                throw new ClipsServerException("Смена родительского нода запрещена");
            }
        } else if(d.parentItem != 0) {
            node.setParent(findEntity(TextTemplateTree.class, d.parentItem));               
        }
       
        //проверка, что тип соответствует родительскому
        if(parent != null ) {
            if(parent.getType() != d.type) {
                throw new ClipsServerException("Попытка нарушения целостности по типу");
            }
        }
        node.setType(d.type);
       
        node.setCollaborator(findEntity(CollaboratorAbstract.class, getCollaboratorId()));
View Full Code Here

TOP

Related Classes of framework.generic.ClipsServerException

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.