Package com.liferay.portal.kernel.repository.model

Examples of com.liferay.portal.kernel.repository.model.FileEntry


      long length)
    throws Exception {

    setServiceContext(fileName);

    FileEntry fileEntry = DLAppLocalServiceUtil.addFileEntry(
      userId, groupId, parentFolderId, fileName,
      MimeTypesUtil.getContentType(fileName),
      FileUtil.stripExtension(fileName), StringPool.BLANK,
      StringPool.BLANK, inputStream, length, serviceContext);
View Full Code Here


      String smallImageFileName = assetJSONObject.getString("smallImage");

      if (Validator.isNotNull(smallImageFileName)) {
        smallImage = true;

        FileEntry fileEntry = _fileEntries.get(smallImageFileName);

        if (fileEntry != null) {
          smallImageURL = DLUtil.getPreviewURL(
            fileEntry, fileEntry.getFileVersion(), null,
            StringPool.BLANK);
        }
      }
    }
View Full Code Here

    Matcher matcher = _fileEntryPattern.matcher(content);

    while (matcher.find()) {
      String fileName = matcher.group(1);

      FileEntry fileEntry = _fileEntries.get(fileName);

      String fileEntryURL = StringPool.BLANK;

      if (fileEntry != null) {
        fileEntryURL = DLUtil.getPreviewURL(
          fileEntry, fileEntry.getFileVersion(), null,
          StringPool.BLANK);
      }

      content = matcher.replaceFirst(fileEntryURL);
View Full Code Here

      long length)
    throws Exception {

    setServiceContext(fileName);

    FileEntry fileEntry = DLAppLocalServiceUtil.addFileEntry(
      userId, groupId, parentFolderId, fileName,
      MimeTypesUtil.getContentType(fileName),
      FileUtil.stripExtension(fileName), StringPool.BLANK,
      StringPool.BLANK, inputStream, length, serviceContext);
View Full Code Here

      String smallImageFileName = assetJSONObject.getString("smallImage");

      if (Validator.isNotNull(smallImageFileName)) {
        smallImage = true;

        FileEntry fileEntry = _fileEntries.get(smallImageFileName);

        if (fileEntry != null) {
          smallImageURL = DLUtil.getPreviewURL(
            fileEntry, fileEntry.getFileVersion(), null,
            StringPool.BLANK);
        }
      }
    }
View Full Code Here

    Matcher matcher = _fileEntryPattern.matcher(content);

    while (matcher.find()) {
      String fileName = matcher.group(1);

      FileEntry fileEntry = _fileEntries.get(fileName);

      String fileEntryURL = StringPool.BLANK;

      if (fileEntry != null) {
        fileEntryURL = DLUtil.getPreviewURL(
          fileEntry, fileEntry.getFileVersion(), null,
          StringPool.BLANK);
      }

      content = matcher.replaceFirst(fileEntryURL);
View Full Code Here

TOP

Related Classes of com.liferay.portal.kernel.repository.model.FileEntry

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.