ImageFolderService

In order to init ImageFolderService need to use - Imcms.getServices().getManagedBean(ImageFolderService.class)

Use API

ImageFolderDTO getImageFolder();

boolean createImageFolder(ImageFolderDTO folderToCreate);

boolean renameFolder(ImageFolderDTO renameMe);

boolean canBeDeleted(ImageFolderDTO folderToCheck) throws IOException;

boolean deleteFolder(ImageFolderDTO deleteMe) throws IOException;

ImageFolderDTO getImagesFrom(ImageFolderDTO folderToGetImages);

List<ImageFolderItemUsageDTO> checkFolder(ImageFolderDTO folderToCheck);

Description about fields ImageFolderDTO

  1. String name;
  2. String path;
  3. List<ImageFileDTO> files;
  4. List<ImageFolderDTO> folders;

Description about fields ImageFolderItemUsageDTO

  1. String filePath;
  2. String imageName;
  3. List<ImageFileUsageDTO> usages;