Package org.structr.common.error

Examples of org.structr.common.error.UniqueToken


        GraphObject foundNode = existingNode;
        if (foundNode.getId() != object.getId()) {

          id = foundNode.getUuid();

          errorBuffer.add(object.getType(), new UniqueToken(id, key, value));

          return false;
        }
      }
    }
View Full Code Here


        AbstractNode foundNode = result.get(0);
        if (foundNode.getId() != object.getId()) {

          id = ((AbstractNode) result.get(0)).getUuid();

          errorBuffer.add(object.getType(), new UniqueToken(id, key, value));

          return false;
        }
      }
    }
View Full Code Here

    try {
      Result<MailTemplate> res = StructrApp.getInstance(securityContext).nodeQuery(MailTemplate.class).andName(_name).and(locale, _locale).getResult();
      if (!res.isEmpty() && res.size() > 1) {

        hasError = true;
        errorBuffer.add(MailTemplate.class.getName(), new UniqueToken(_uuid, name, _name));
        errorBuffer.add(MailTemplate.class.getName(), new UniqueToken(_uuid, locale, _locale));
      }


    } catch (FrameworkException fe) {
View Full Code Here

        GraphObject foundNode = result.get(0);
        if (foundNode.getId() != object.getId()) {

          id = ((AbstractNode) result.get(0)).getUuid();

          errorBuffer.add(object.getType(), new UniqueToken(id, key, value));

          return true;
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.structr.common.error.UniqueToken

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.