Liferay 7.0-ce-b7 portal-impl

com.liferay.portlet.documentlibrary.service.impl
Class DLFileEntryServiceImpl

java.lang.Object
  extended by com.liferay.portal.kernel.service.BaseServiceImpl
      extended by com.liferay.portlet.documentlibrary.service.base.DLFileEntryServiceBaseImpl
          extended by com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl
All Implemented Interfaces:
com.liferay.document.library.kernel.service.DLFileEntryService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseService

public class DLFileEntryServiceImpl
extends DLFileEntryServiceBaseImpl

Provides the remote service for accessing, adding, checking in/out, deleting, locking/unlocking, moving, reverting, updating, and verifying document library file entries. Its methods include permission checks.


Field Summary
 
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, classNameLocalService, classNamePersistence, classNameService, counterLocalService, dlAppHelperLocalService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryMetadataFinder, dlFileEntryMetadataLocalService, dlFileEntryMetadataPersistence, dlFileEntryPersistence, dlFileEntryService, dlFileEntryTypeFinder, dlFileEntryTypeLocalService, dlFileEntryTypePersistence, dlFileEntryTypeService, dlFileVersionLocalService, dlFileVersionPersistence, dlFileVersionService, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, expandoRowLocalService, expandoRowPersistence, expandoTableLocalService, expandoTablePersistence, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, repositoryLocalService, repositoryPersistence, repositoryService, resourceLocalService, trashEntryLocalService, trashEntryPersistence, trashEntryService, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.kernel.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
DLFileEntryServiceImpl()
           
 
Method Summary
 com.liferay.document.library.kernel.model.DLFileEntry addFileEntry(long groupId, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, File file, InputStream is, long size, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 com.liferay.document.library.kernel.model.DLFileVersion cancelCheckOut(long fileEntryId)
           
 void checkInFileEntry(long fileEntryId, boolean major, String changeLog, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 void checkInFileEntry(long fileEntryId, String lockUuid, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(long fileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(long fileEntryId, String owner, long expirationTime, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 com.liferay.document.library.kernel.model.DLFileEntry copyFileEntry(long groupId, long repositoryId, long fileEntryId, long destFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 void deleteFileEntry(long fileEntryId)
           
 void deleteFileEntry(long groupId, long folderId, String title)
           
 void deleteFileVersion(long fileEntryId, String version)
           
 com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByImageId(long imageId)
           
 InputStream getFileAsStream(long fileEntryId, String version)
           
 InputStream getFileAsStream(long fileEntryId, String version, boolean incrementCounter)
           
 List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId, long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
 List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
 List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId, long folderId, long fileEntryTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
 List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId, long folderId, String[] mimeTypes, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
 int getFileEntriesCount(long groupId, long folderId)
           
 int getFileEntriesCount(long groupId, long folderId, int status)
           
 int getFileEntriesCount(long groupId, long folderId, long fileEntryTypeId)
           
 int getFileEntriesCount(long groupId, long folderId, String[] mimeTypes)
           
 com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(long fileEntryId)
           
 com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(long groupId, long folderId, String title)
           
 com.liferay.document.library.kernel.model.DLFileEntry getFileEntryByUuidAndGroupId(String uuid, long groupId)
           
 com.liferay.portal.kernel.lock.Lock getFileEntryLock(long fileEntryId)
           
 int getFoldersFileEntriesCount(long groupId, List<Long> folderIds, int status)
           
 List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId, long userId, long rootFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
 List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId, long userId, long repositoryId, long rootFolderId, String[] mimeTypes, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
 List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId, long userId, long rootFolderId, String[] mimeTypes, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
           
 int getGroupFileEntriesCount(long groupId, long userId, long rootFolderId)
           
 int getGroupFileEntriesCount(long groupId, long userId, long repositoryId, long rootFolderId, String[] mimeTypes, int status)
           
 int getGroupFileEntriesCount(long groupId, long userId, long rootFolderId, String[] mimeTypes, int status)
           
 boolean hasFileEntryLock(long fileEntryId)
           
 boolean isFileEntryCheckedOut(long fileEntryId)
           
 boolean isKeepFileVersionLabel(long fileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 com.liferay.document.library.kernel.model.DLFileEntry moveFileEntry(long fileEntryId, long newFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 com.liferay.portal.kernel.lock.Lock refreshFileEntryLock(String lockUuid, long companyId, long expirationTime)
           
 void revertFileEntry(long fileEntryId, String version, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 com.liferay.portal.kernel.search.Hits search(long groupId, long creatorUserId, int status, int start, int end)
           
 com.liferay.portal.kernel.search.Hits search(long groupId, long creatorUserId, long folderId, String[] mimeTypes, int status, int start, int end)
           
 com.liferay.document.library.kernel.model.DLFileEntry updateFileEntry(long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, long fileEntryTypeId, Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap, File file, InputStream is, long size, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 com.liferay.document.library.kernel.model.DLFileEntry updateStatus(long userId, long fileVersionId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext, Map<String,Serializable> workflowContext)
           
 boolean verifyFileEntryCheckOut(long fileEntryId, String lockUuid)
           
 boolean verifyFileEntryLock(long fileEntryId, String lockUuid)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryServiceBaseImpl
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCounterLocalService, getDLAppHelperLocalService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryMetadataFinder, getDLFileEntryMetadataLocalService, getDLFileEntryMetadataPersistence, getDLFileEntryPersistence, getDLFileEntryService, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileEntryTypeService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFileVersionService, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getExpandoRowLocalService, getExpandoRowPersistence, getExpandoTableLocalService, getExpandoTablePersistence, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getModelClass, getModelClassName, getOSGiServiceIdentifier, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getRepositoryLocalService, getRepositoryPersistence, getRepositoryService, getResourceLocalService, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCounterLocalService, setDLAppHelperLocalService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryMetadataFinder, setDLFileEntryMetadataLocalService, setDLFileEntryMetadataPersistence, setDLFileEntryPersistence, setDLFileEntryService, setDLFileEntryTypeFinder, setDLFileEntryTypeLocalService, setDLFileEntryTypePersistence, setDLFileEntryTypeService, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFileVersionService, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setExpandoRowLocalService, setExpandoRowPersistence, setExpandoTableLocalService, setExpandoTablePersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setRepositoryLocalService, setRepositoryPersistence, setRepositoryService, setResourceLocalService, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence
 
Methods inherited from class com.liferay.portal.kernel.service.BaseServiceImpl
getClassLoader, getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryServiceImpl

public DLFileEntryServiceImpl()
Method Detail

addFileEntry

public com.liferay.document.library.kernel.model.DLFileEntry addFileEntry(long groupId,
                                                                          long repositoryId,
                                                                          long folderId,
                                                                          String sourceFileName,
                                                                          String mimeType,
                                                                          String title,
                                                                          String description,
                                                                          String changeLog,
                                                                          long fileEntryTypeId,
                                                                          Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
                                                                          File file,
                                                                          InputStream is,
                                                                          long size,
                                                                          com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                   throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

cancelCheckOut

public com.liferay.document.library.kernel.model.DLFileVersion cancelCheckOut(long fileEntryId)
                                                                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

checkInFileEntry

public void checkInFileEntry(long fileEntryId,
                             boolean major,
                             String changeLog,
                             com.liferay.portal.kernel.service.ServiceContext serviceContext)
                      throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

checkInFileEntry

public void checkInFileEntry(long fileEntryId,
                             String lockUuid,
                             com.liferay.portal.kernel.service.ServiceContext serviceContext)
                      throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

checkOutFileEntry

public com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(long fileEntryId,
                                                                               com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                        throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

checkOutFileEntry

public com.liferay.document.library.kernel.model.DLFileEntry checkOutFileEntry(long fileEntryId,
                                                                               String owner,
                                                                               long expirationTime,
                                                                               com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                        throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

copyFileEntry

public com.liferay.document.library.kernel.model.DLFileEntry copyFileEntry(long groupId,
                                                                           long repositoryId,
                                                                           long fileEntryId,
                                                                           long destFolderId,
                                                                           com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                    throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

deleteFileEntry

public void deleteFileEntry(long fileEntryId)
                     throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

deleteFileEntry

public void deleteFileEntry(long groupId,
                            long folderId,
                            String title)
                     throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

deleteFileVersion

public void deleteFileVersion(long fileEntryId,
                              String version)
                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

fetchFileEntryByImageId

public com.liferay.document.library.kernel.model.DLFileEntry fetchFileEntryByImageId(long imageId)
                                                                              throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileAsStream

public InputStream getFileAsStream(long fileEntryId,
                                   String version)
                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileAsStream

public InputStream getFileAsStream(long fileEntryId,
                                   String version,
                                   boolean incrementCounter)
                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntries

public List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId,
                                                                                  long folderId,
                                                                                  int status,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntries

public List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId,
                                                                                  long folderId,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntries

public List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId,
                                                                                  long folderId,
                                                                                  long fileEntryTypeId,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntries

public List<com.liferay.document.library.kernel.model.DLFileEntry> getFileEntries(long groupId,
                                                                                  long folderId,
                                                                                  String[] mimeTypes,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntriesCount

public int getFileEntriesCount(long groupId,
                               long folderId)

getFileEntriesCount

public int getFileEntriesCount(long groupId,
                               long folderId,
                               int status)

getFileEntriesCount

public int getFileEntriesCount(long groupId,
                               long folderId,
                               long fileEntryTypeId)

getFileEntriesCount

public int getFileEntriesCount(long groupId,
                               long folderId,
                               String[] mimeTypes)

getFileEntry

public com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(long fileEntryId)
                                                                   throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntry

public com.liferay.document.library.kernel.model.DLFileEntry getFileEntry(long groupId,
                                                                          long folderId,
                                                                          String title)
                                                                   throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntryByUuidAndGroupId

public com.liferay.document.library.kernel.model.DLFileEntry getFileEntryByUuidAndGroupId(String uuid,
                                                                                          long groupId)
                                                                                   throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getFileEntryLock

public com.liferay.portal.kernel.lock.Lock getFileEntryLock(long fileEntryId)

getFoldersFileEntriesCount

public int getFoldersFileEntriesCount(long groupId,
                                      List<Long> folderIds,
                                      int status)

getGroupFileEntries

public List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId,
                                                                                       long userId,
                                                                                       long rootFolderId,
                                                                                       int start,
                                                                                       int end,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                                throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getGroupFileEntries

public List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId,
                                                                                       long userId,
                                                                                       long repositoryId,
                                                                                       long rootFolderId,
                                                                                       String[] mimeTypes,
                                                                                       int status,
                                                                                       int start,
                                                                                       int end,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                                throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getGroupFileEntries

public List<com.liferay.document.library.kernel.model.DLFileEntry> getGroupFileEntries(long groupId,
                                                                                       long userId,
                                                                                       long rootFolderId,
                                                                                       String[] mimeTypes,
                                                                                       int status,
                                                                                       int start,
                                                                                       int end,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLFileEntry> obc)
                                                                                throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getGroupFileEntriesCount

public int getGroupFileEntriesCount(long groupId,
                                    long userId,
                                    long rootFolderId)
                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getGroupFileEntriesCount

public int getGroupFileEntriesCount(long groupId,
                                    long userId,
                                    long repositoryId,
                                    long rootFolderId,
                                    String[] mimeTypes,
                                    int status)
                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getGroupFileEntriesCount

public int getGroupFileEntriesCount(long groupId,
                                    long userId,
                                    long rootFolderId,
                                    String[] mimeTypes,
                                    int status)
                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

hasFileEntryLock

public boolean hasFileEntryLock(long fileEntryId)
                         throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

isFileEntryCheckedOut

public boolean isFileEntryCheckedOut(long fileEntryId)
                              throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

isKeepFileVersionLabel

public boolean isKeepFileVersionLabel(long fileEntryId,
                                      com.liferay.portal.kernel.service.ServiceContext serviceContext)
                               throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

moveFileEntry

public com.liferay.document.library.kernel.model.DLFileEntry moveFileEntry(long fileEntryId,
                                                                           long newFolderId,
                                                                           com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                    throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

refreshFileEntryLock

public com.liferay.portal.kernel.lock.Lock refreshFileEntryLock(String lockUuid,
                                                                long companyId,
                                                                long expirationTime)
                                                         throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

revertFileEntry

public void revertFileEntry(long fileEntryId,
                            String version,
                            com.liferay.portal.kernel.service.ServiceContext serviceContext)
                     throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

search

public com.liferay.portal.kernel.search.Hits search(long groupId,
                                                    long creatorUserId,
                                                    int status,
                                                    int start,
                                                    int end)
                                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

search

public com.liferay.portal.kernel.search.Hits search(long groupId,
                                                    long creatorUserId,
                                                    long folderId,
                                                    String[] mimeTypes,
                                                    int status,
                                                    int start,
                                                    int end)
                                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateFileEntry

public com.liferay.document.library.kernel.model.DLFileEntry updateFileEntry(long fileEntryId,
                                                                             String sourceFileName,
                                                                             String mimeType,
                                                                             String title,
                                                                             String description,
                                                                             String changeLog,
                                                                             boolean majorVersion,
                                                                             long fileEntryTypeId,
                                                                             Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> ddmFormValuesMap,
                                                                             File file,
                                                                             InputStream is,
                                                                             long size,
                                                                             com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                      throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateStatus

public com.liferay.document.library.kernel.model.DLFileEntry updateStatus(long userId,
                                                                          long fileVersionId,
                                                                          int status,
                                                                          com.liferay.portal.kernel.service.ServiceContext serviceContext,
                                                                          Map<String,Serializable> workflowContext)
                                                                   throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

verifyFileEntryCheckOut

public boolean verifyFileEntryCheckOut(long fileEntryId,
                                       String lockUuid)
                                throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

verifyFileEntryLock

public boolean verifyFileEntryLock(long fileEntryId,
                                   String lockUuid)
                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

Liferay 7.0-ce-b7 portal-impl