Examples of tx()


Examples of org.structr.core.app.App.tx()

    final Importer importer = new Importer(securityContext, source, null, "source", 0, true, true);
    final App localAppCtx   = StructrApp.getInstance(securityContext);
    Page page               = null;

    try (final Tx tx = localAppCtx.tx()) {

      page   = localAppCtx.create(Page.class, new NodeAttribute<>(Page.name, name));

      if (importer.parse()) {
View Full Code Here

Examples of org.structr.core.app.App.tx()

    List<FtpFile> ftpFiles = new ArrayList();

    final App app = StructrApp.getInstance();

    try (Tx tx = app.tx()) {

      String requestedPath = getAbsolutePath();
      logger.log(Level.INFO, "Children of {0} requested", requestedPath);

      if ("/".equals(requestedPath)) {
View Full Code Here

Examples of org.structr.core.app.App.tx()

  @Override
  public boolean mkdir() {

    final App app = StructrApp.getInstance();
    try (final Tx tx = app.tx()) {

      logger.log(Level.INFO, "mkdir() Folder");

      AbstractFile existing = FileHelper.getFileByAbsolutePath(SecurityContext.getSuperUserInstance(), newPath);
      if (existing != null) {
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.