Examples of copyPermissions()


Examples of com.dotmarketing.business.PermissionAPI.copyPermissions()

    }
  }

  protected void _copyPermissions(Inode from, Inode to) throws ActionException, DotDataException {
    PermissionAPI perAPI = APILocator.getPermissionAPI();
    perAPI.copyPermissions(from, to);
  }



  public CategoryAPI getCategoryAPI() {
View Full Code Here

Examples of com.dotmarketing.business.PermissionAPI.copyPermissions()

        // Delete the new permissions
        perAPI.removePermissions(destinationFile);

        // Copy the new permissions
        perAPI.copyPermissions((Permissionable)children[i].getFile(), destinationFile);

        // ### END Copy the permission ###
        // }
      } else {
        copyFolder(sourcePath + "/" + children[i].getName(), destinationPath + "/" + children[i].getName(), user, autoPublish);
View Full Code Here

Examples of com.dotmarketing.business.PermissionAPI.copyPermissions()

      // Delete the new permissions
      perAPI.removePermissions(destinationFolder);

      // Copy the new permissions
      perAPI.copyPermissions(sourceFolder, destinationFolder);
    }catch (Exception e) {
      throw new DotDataException(e.getMessage(), e);
    }
    return;
  }
View Full Code Here

Examples of com.dotmarketing.business.PermissionAPI.copyPermissions()

            Logger.error( this, e.getMessage() );
        } catch ( DotSecurityException e ) {
            Logger.error( this, e.getMessage() );
        }
        // Copy permissions
        permissionAPI.copyPermissions( file, newFile );

        return newFile;
    }

    public  java.io.File getAssetIOFile (File file) throws IOException {
View Full Code Here

Examples of com.dotmarketing.business.PermissionAPI.copyPermissions()

    if(currentContainer.isLive())
        APILocator.getVersionableAPI().setLive(newContainer);

    PermissionAPI perAPI = APILocator.getPermissionAPI();
    //Copy permissions
    perAPI.copyPermissions(currentContainer, newContainer);

    //saves to working folder under velocity
    ContainerServices.invalidate(newContainer, newIdentifier,
        true);
View Full Code Here

Examples of org.jitterbit.integration.client.project.permission.PermissionsManager.copyPermissions()

    private void copyPermissions(IntegrationEntity original, IntegrationEntity copy, IntegrationProject project) {
        try {
            ManagedProject mp = project.getExtensionObject(ManagedProject.class);
            PermissionsManager perms = mp.getPermissions();
            perms.copyPermissions(original, copy);
            perms.save();
        } catch (PermissionsStorageException e) {
            ErrorLog.attention(getClass(), "The permission settings could not be copied.", e);
        }
    }
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.