Package com.catify.processengine.core.data.model.entities

Examples of com.catify.processengine.core.data.model.entities.RootNode


   * @see com.catify.processengine.core.data.services.RootNodeRepositoryService#delete(java.lang.String)
   */
  @Override
  public boolean delete(String uniqueRootNodeId) {

    RootNode rootNode = findByUniqueRootId(uniqueRootNodeId);

    if (rootNode != null) {
      rootNodeRepository.delete(rootNode);
      return true;
    } else {
View Full Code Here


   * @see com.catify.processengine.core.data.services.RootNodeRepositoryService#getOrCreateRootNode(java.lang.String)
   */
  @Override
  public RootNode getOrCreateRootNode(String uniqueRootNodeId) {

    RootNode node = findByUniqueRootId(uniqueRootNodeId);

    if (node == null) {
      node = new RootNode();
    }
    rootNodeRepository.save(node);

    return node;
  }
View Full Code Here

   */
  private ClientNode createClientContext(String clientId) {

    // FIXME: provide RootNode implementation
    // create root node or get it from the db
    RootNode rootNode = createRootContext();
   
    // create client node or get it from the db
    ClientNode clientNode = clientNodeRepositoryService
        .getOrCreateClientNode(clientId);

    LOG.debug(String.format("Added %s with grapId: %s to neo4j db",
        clientNode, clientNode.getGraphId()));

    // create relationship between root and client
    rootNode.addRelationshipToClientNode(clientNode);
    rootNodeRepositoryService.save(rootNode);

    return clientNode;
  }
View Full Code Here

   * Creates the root context.
   *
   * @return the root node
   */
  private RootNode createRootContext() {
    RootNode rootNode = rootNodeRepositoryService
        .getOrCreateRootNode("secretRootId");

    LOG.debug(String.format("Added %s with grapId: %s to neo4j db",
        rootNode, rootNode.getGraphId()));
   
    RelationshipType referenceNodeRelationship = new RelationshipType() {
     
      @Override
      public String name() {
View Full Code Here

TOP

Related Classes of com.catify.processengine.core.data.model.entities.RootNode

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.