Package org.structr.rest.exception

Examples of org.structr.rest.exception.NotFoundException


    if (parentClass.isAssignableFrom(entityClass)) {
      return entity;
    }

    throw new NotFoundException();

  }
View Full Code Here


          }
        }

        if (!found) {

          throw new NotFoundException();
        }

      }
    }
View Full Code Here

    boolean actualSortOrder                = sortDescending;

    if (rawType != null) {

      if (entityClass == null) {
        throw new NotFoundException();
      }

      collectSearchAttributes(query);

      // default sort key & order
View Full Code Here

        // finally: return 201 Created
        return result;
      }

      // shouldn't happen
      throw new NotFoundException();
    }
  }
View Full Code Here

      final PropertyMap properties = PropertyMap.inputTypeToJavaType(securityContext, entityClass, propertySet);

      return app.create(entityClass, properties);
    }

    throw new NotFoundException();
  }
View Full Code Here

          throw new SystemException(iaex.getMessage());
        }

      } else {

        throw new NotFoundException();

      }

    } else {
View Full Code Here

      return new Result(results, null, isCollectionResource(), isPrimitiveArray());

    }

    throw new NotFoundException();
  }
View Full Code Here

     
      entity = app.relationshipQuery().uuid(uuid).getFirst();
    }

    if (entity == null) {
      throw new NotFoundException();
    }

    if (entity instanceof AbstractNode && !securityContext.isReadable((AbstractNode)entity, true, false)) {
      throw new NotAllowedException();
    }
View Full Code Here

      return result;

    } catch (org.neo4j.graphdb.NotFoundException nfe) {

      throw new NotFoundException();
    }
  }
View Full Code Here

TOP

Related Classes of org.structr.rest.exception.NotFoundException

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.