Examples of UniqueToken


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

Examples of org.structr.common.error.UniqueToken

        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

Examples of org.structr.common.error.UniqueToken

    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

Examples of org.structr.common.error.UniqueToken

        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
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.