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

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
      extended by com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.bean.IdentifiableBean, com.liferay.portal.service.PersistedModelLocalService, com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService

public class DLFileEntryLocalServiceImpl
extends DLFileEntryLocalServiceBaseImpl

The document library file entry local service.

Due to legacy code, the names of some file entry properties are not intuitive. Each file entry has both a name and title. The name is a unique identifier for a given file and is generally numeric, whereas the title is the actual name specified by the user (such as "Budget.xls").

Author:
Brian Wing Shun Chan, Harry Mark, Alexander Chow

Field Summary
 
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, counterLocalService, ddmStructureFinder, ddmStructureLocalService, ddmStructurePersistence, ddmStructureService, dlAppHelperLocalService, dlAppLocalService, dlAppService, dlContentLocalService, dlContentPersistence, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryMetadataLocalService, dlFileEntryMetadataPersistence, dlFileEntryPersistence, dlFileEntryService, dlFileEntryTypeFinder, dlFileEntryTypeLocalService, dlFileEntryTypePersistence, dlFileEntryTypeService, dlFileRankFinder, dlFileRankLocalService, dlFileRankPersistence, dlFileShortcutLocalService, dlFileShortcutPersistence, dlFileShortcutService, dlFileVersionLocalService, dlFileVersionPersistence, dlFileVersionService, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, dlSyncLocalService, dlSyncPersistence, dlSyncService, expandoValueLocalService, expandoValuePersistence, expandoValueService, imageLocalService, imagePersistence, imageService, lockFinder, lockLocalService, lockPersistence, persistedModelLocalServiceRegistry, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
DLFileEntryLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId, long groupId, long repositoryId, long folderId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, long fileEntryTypeId, java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap, java.io.File file, java.io.InputStream is, long size, com.liferay.portal.service.ServiceContext serviceContext)
           
 void addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
           
protected  com.liferay.portlet.documentlibrary.model.DLFileVersion addFileVersion(com.liferay.portal.model.User user, com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry, java.util.Date modifiedDate, java.lang.String extension, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, java.lang.String extraSettings, long fileEntryTypeId, java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap, java.lang.String version, long size, int status, com.liferay.portal.service.ServiceContext serviceContext)
           
 void cancelCheckOut(long userId, long fileEntryId)
           
 void checkInFileEntry(long userId, long fileEntryId, boolean majorVersion, java.lang.String changeLog, com.liferay.portal.service.ServiceContext serviceContext)
           
 void checkInFileEntry(long userId, long fileEntryId, java.lang.String lockUuid)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(long userId, long fileEntryId)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(long userId, long fileEntryId, java.lang.String owner, long expirationTime)
           
protected  void convertExtraSettings(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry, com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion, java.lang.String[] keys)
           
protected  void convertExtraSettings(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry, java.lang.String[] keys)
           
 void convertExtraSettings(java.lang.String[] keys)
           
protected  void convertExtraSettings(com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties, com.liferay.portlet.expando.model.ExpandoBridge expandoBridge, java.lang.String[] keys)
           
 void copyFileEntryMetadata(long companyId, long fileEntryTypeId, long fileEntryId, long fromFileVersionId, long toFileVersionId, com.liferay.portal.service.ServiceContext serviceContext)
           
 void deleteFileEntries(long groupId, long folderId)
           
protected  void deleteFileEntry(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
           
 void deleteFileEntry(long fileEntryId)
           
 void deleteFileEntry(long userId, long fileEntryId)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(long imageId)
           
protected  java.lang.String getExtension(java.lang.String title, java.lang.String sourceFileName)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(int start, int end)
           
 java.io.File getFile(long userId, long fileEntryId, java.lang.String version, boolean incrementCounter)
           
 java.io.InputStream getFileAsStream(long userId, long fileEntryId, java.lang.String version)
           
 java.io.InputStream getFileAsStream(long userId, long fileEntryId, java.lang.String version, boolean incrementCounter)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(int start, int end)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getFileEntriesCount()
           
 int getFileEntriesCount(long groupId, long folderId)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long fileEntryId)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long groupId, long folderId, java.lang.String title)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(long groupId, long folderId, java.lang.String name)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
           
protected  java.lang.Long getFileEntryTypeId(long[] groupIds, long folderId, long fileEntryTypeId)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId, int start, int end)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getGroupFileEntriesCount(long groupId)
           
 int getGroupFileEntriesCount(long groupId, long userId)
           
protected  java.lang.String getNextVersion(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry, boolean majorVersion, int workflowAction)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries()
           
 boolean hasExtraSettings()
           
 boolean hasFileEntryLock(long userId, long fileEntryId)
           
 boolean isFileEntryCheckedOut(long fileEntryId)
           
 com.liferay.portal.model.Lock lockFileEntry(long userId, long fileEntryId)
           
 com.liferay.portal.model.Lock lockFileEntry(long userId, long fileEntryId, java.lang.String owner, long expirationTime)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntryImpl(long userId, long fileEntryId, long newFolderId, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  void reindex(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
           
 void revertFileEntry(long userId, long fileEntryId, java.lang.String version, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  void startWorkflowInstance(long userId, com.liferay.portal.service.ServiceContext serviceContext, com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion, java.lang.String syncEventType)
           
 void unlockFileEntry(long fileEntryId)
           
 void unlockFileEntry(long fileEntryId, java.lang.String lockUuid)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId, long fileEntryId, java.lang.String sourceFileName, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, boolean majorVersion, long fileEntryTypeId, java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap, java.io.File file, java.io.InputStream is, long size, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId, long fileEntryId, java.lang.String sourceFileName, java.lang.String extension, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, boolean majorVersion, java.lang.String extraSettings, long fileEntryTypeId, java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap, java.io.File file, java.io.InputStream is, long size, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  void updateFileVersion(com.liferay.portal.model.User user, com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion, java.lang.String sourceFileName, java.lang.String extension, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String changeLog, java.lang.String extraSettings, long fileEntryTypeId, java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap, java.lang.String version, long size, int status, java.util.Date statusDate, com.liferay.portal.service.ServiceContext serviceContext)
           
 void updateSmallImage(long smallImageId, long largeImageId)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(long userId, long fileVersionId, int status, java.util.Map<java.lang.String,java.io.Serializable> workflowContext, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  void validateFile(long groupId, long folderId, long fileEntryId, java.lang.String title)
           
protected  void validateFile(long groupId, long folderId, long fileEntryId, java.lang.String extension, java.lang.String title, java.lang.String sourceFileName, java.io.File file, java.io.InputStream is)
           
protected  void validateFile(long groupId, long folderId, java.lang.String title, java.lang.String extension, java.io.File file, java.io.InputStream is)
           
protected  void validateFileName(java.lang.String fileName)
           
 boolean verifyFileEntryCheckOut(long fileEntryId, java.lang.String lockUuid)
           
 boolean verifyFileEntryLock(long fileEntryId, java.lang.String lockUuid)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
addDLFileEntry, afterPropertiesSet, createDLFileEntry, deleteDLFileEntry, deleteDLFileEntry, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchDLFileEntry, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCounterLocalService, getDDMStructureFinder, getDDMStructureLocalService, getDDMStructurePersistence, getDDMStructureService, getDLAppHelperLocalService, getDLAppLocalService, getDLAppService, getDLContentLocalService, getDLContentPersistence, getDLFileEntries, getDLFileEntriesCount, getDLFileEntry, getDLFileEntryByUuidAndGroupId, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryMetadataLocalService, getDLFileEntryMetadataPersistence, getDLFileEntryPersistence, getDLFileEntryService, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileEntryTypeService, getDLFileRankFinder, getDLFileRankLocalService, getDLFileRankPersistence, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileShortcutService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFileVersionService, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getDLSyncLocalService, getDLSyncPersistence, getDLSyncService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getImageLocalService, getImagePersistence, getImageService, getLockFinder, getLockLocalService, getLockPersistence, getModelClass, getModelClassName, getPersistedModel, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setCounterLocalService, setDDMStructureFinder, setDDMStructureLocalService, setDDMStructurePersistence, setDDMStructureService, setDLAppHelperLocalService, setDLAppLocalService, setDLAppService, setDLContentLocalService, setDLContentPersistence, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryMetadataLocalService, setDLFileEntryMetadataPersistence, setDLFileEntryPersistence, setDLFileEntryService, setDLFileEntryTypeFinder, setDLFileEntryTypeLocalService, setDLFileEntryTypePersistence, setDLFileEntryTypeService, setDLFileRankFinder, setDLFileRankLocalService, setDLFileRankPersistence, setDLFileShortcutLocalService, setDLFileShortcutPersistence, setDLFileShortcutService, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFileVersionService, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setDLSyncLocalService, setDLSyncPersistence, setDLSyncService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setImageLocalService, setImagePersistence, setImageService, setLockFinder, setLockLocalService, setLockPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateDLFileEntry, updateDLFileEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryLocalServiceImpl

public DLFileEntryLocalServiceImpl()
Method Detail

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId,
                                                                          long groupId,
                                                                          long repositoryId,
                                                                          long folderId,
                                                                          java.lang.String sourceFileName,
                                                                          java.lang.String mimeType,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String changeLog,
                                                                          long fileEntryTypeId,
                                                                          java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
                                                                          java.io.File file,
                                                                          java.io.InputStream is,
                                                                          long size,
                                                                          com.liferay.portal.service.ServiceContext serviceContext)
                                                                   throws com.liferay.portal.kernel.exception.PortalException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addFileEntryResources

public void addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
                                  boolean addGroupPermissions,
                                  boolean addGuestPermissions)
                           throws com.liferay.portal.kernel.exception.PortalException,
                                  com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addFileEntryResources

public void addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
                                  java.lang.String[] groupPermissions,
                                  java.lang.String[] guestPermissions)
                           throws com.liferay.portal.kernel.exception.PortalException,
                                  com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

cancelCheckOut

public void cancelCheckOut(long userId,
                           long fileEntryId)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

checkInFileEntry

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

checkInFileEntry

public void checkInFileEntry(long userId,
                             long fileEntryId,
                             java.lang.String lockUuid)
                      throws com.liferay.portal.kernel.exception.PortalException,
                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

checkOutFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(long userId,
                                                                               long fileEntryId)
                                                                        throws com.liferay.portal.kernel.exception.PortalException,
                                                                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

checkOutFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(long userId,
                                                                               long fileEntryId,
                                                                               java.lang.String owner,
                                                                               long expirationTime)
                                                                        throws com.liferay.portal.kernel.exception.PortalException,
                                                                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

convertExtraSettings

public void convertExtraSettings(java.lang.String[] keys)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

copyFileEntryMetadata

public void copyFileEntryMetadata(long companyId,
                                  long fileEntryTypeId,
                                  long fileEntryId,
                                  long fromFileVersionId,
                                  long toFileVersionId,
                                  com.liferay.portal.service.ServiceContext serviceContext)
                           throws com.liferay.portal.kernel.exception.PortalException,
                                  com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteFileEntries

public void deleteFileEntries(long groupId,
                              long folderId)
                       throws com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteFileEntry

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

deleteFileEntry

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

fetchFileEntryByAnyImageId

public com.liferay.portlet.documentlibrary.model.DLFileEntry fetchFileEntryByAnyImageId(long imageId)
                                                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getExtraSettingsFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getExtraSettingsFileEntries(int start,
                                                                                                         int end)
                                                                                                  throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getFile

public java.io.File getFile(long userId,
                            long fileEntryId,
                            java.lang.String version,
                            boolean incrementCounter)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFileAsStream

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

getFileAsStream

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

getFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(int start,
                                                                                            int end)
                                                                                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getFileEntries

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

getFileEntriesCount

public int getFileEntriesCount()
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getFileEntriesCount

public int getFileEntriesCount(long groupId,
                               long folderId)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long fileEntryId)
                                                                   throws com.liferay.portal.kernel.exception.PortalException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long groupId,
                                                                          long folderId,
                                                                          java.lang.String title)
                                                                   throws com.liferay.portal.kernel.exception.PortalException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFileEntryByName

public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByName(long groupId,
                                                                                long folderId,
                                                                                java.lang.String name)
                                                                         throws com.liferay.portal.kernel.exception.PortalException,
                                                                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getFileEntryByUuidAndGroupId

public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(java.lang.String uuid,
                                                                                          long groupId)
                                                                                   throws com.liferay.portal.kernel.exception.PortalException,
                                                                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getGroupFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId,
                                                                                                 int start,
                                                                                                 int end)
                                                                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId,
                                                                                                 int start,
                                                                                                 int end,
                                                                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId,
                                                                                                 long userId,
                                                                                                 int start,
                                                                                                 int end)
                                                                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId,
                                                                                                 long userId,
                                                                                                 int start,
                                                                                                 int end,
                                                                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupFileEntriesCount

public int getGroupFileEntriesCount(long groupId)
                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupFileEntriesCount

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

getNoAssetFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
                                                                                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getOrphanedFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getOrphanedFileEntries()
                                                                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

hasExtraSettings

public boolean hasExtraSettings()
                         throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

hasFileEntryLock

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

isFileEntryCheckedOut

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

lockFileEntry

public com.liferay.portal.model.Lock lockFileEntry(long userId,
                                                   long fileEntryId)
                                            throws com.liferay.portal.kernel.exception.PortalException,
                                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

lockFileEntry

public com.liferay.portal.model.Lock lockFileEntry(long userId,
                                                   long fileEntryId,
                                                   java.lang.String owner,
                                                   long expirationTime)
                                            throws com.liferay.portal.kernel.exception.PortalException,
                                                   com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

moveFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(long userId,
                                                                           long fileEntryId,
                                                                           long newFolderId,
                                                                           com.liferay.portal.service.ServiceContext serviceContext)
                                                                    throws com.liferay.portal.kernel.exception.PortalException,
                                                                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

revertFileEntry

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

unlockFileEntry

public void unlockFileEntry(long fileEntryId)
                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

unlockFileEntry

public void unlockFileEntry(long fileEntryId,
                            java.lang.String lockUuid)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId,
                                                                             long fileEntryId,
                                                                             java.lang.String sourceFileName,
                                                                             java.lang.String mimeType,
                                                                             java.lang.String title,
                                                                             java.lang.String description,
                                                                             java.lang.String changeLog,
                                                                             boolean majorVersion,
                                                                             long fileEntryTypeId,
                                                                             java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
                                                                             java.io.File file,
                                                                             java.io.InputStream is,
                                                                             long size,
                                                                             com.liferay.portal.service.ServiceContext serviceContext)
                                                                      throws com.liferay.portal.kernel.exception.PortalException,
                                                                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateSmallImage

public void updateSmallImage(long smallImageId,
                             long largeImageId)
                      throws com.liferay.portal.kernel.exception.PortalException,
                             com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateStatus

public com.liferay.portlet.documentlibrary.model.DLFileEntry updateStatus(long userId,
                                                                          long fileVersionId,
                                                                          int status,
                                                                          java.util.Map<java.lang.String,java.io.Serializable> workflowContext,
                                                                          com.liferay.portal.service.ServiceContext serviceContext)
                                                                   throws com.liferay.portal.kernel.exception.PortalException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

verifyFileEntryCheckOut

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

verifyFileEntryLock

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

addFileVersion

protected com.liferay.portlet.documentlibrary.model.DLFileVersion addFileVersion(com.liferay.portal.model.User user,
                                                                                 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
                                                                                 java.util.Date modifiedDate,
                                                                                 java.lang.String extension,
                                                                                 java.lang.String mimeType,
                                                                                 java.lang.String title,
                                                                                 java.lang.String description,
                                                                                 java.lang.String changeLog,
                                                                                 java.lang.String extraSettings,
                                                                                 long fileEntryTypeId,
                                                                                 java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
                                                                                 java.lang.String version,
                                                                                 long size,
                                                                                 int status,
                                                                                 com.liferay.portal.service.ServiceContext serviceContext)
                                                                          throws com.liferay.portal.kernel.exception.PortalException,
                                                                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

convertExtraSettings

protected void convertExtraSettings(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
                                    com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
                                    java.lang.String[] keys)
                             throws com.liferay.portal.kernel.exception.PortalException,
                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

convertExtraSettings

protected void convertExtraSettings(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
                                    java.lang.String[] keys)
                             throws com.liferay.portal.kernel.exception.PortalException,
                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

convertExtraSettings

protected void convertExtraSettings(com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties,
                                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge,
                                    java.lang.String[] keys)

deleteFileEntry

protected void deleteFileEntry(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
                        throws com.liferay.portal.kernel.exception.PortalException,
                               com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getExtension

protected java.lang.String getExtension(java.lang.String title,
                                        java.lang.String sourceFileName)

getFileEntryTypeId

protected java.lang.Long getFileEntryTypeId(long[] groupIds,
                                            long folderId,
                                            long fileEntryTypeId)
                                     throws com.liferay.portal.kernel.exception.PortalException,
                                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getNextVersion

protected java.lang.String getNextVersion(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
                                          boolean majorVersion,
                                          int workflowAction)
                                   throws com.liferay.portal.kernel.exception.PortalException,
                                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

moveFileEntryImpl

protected com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntryImpl(long userId,
                                                                                  long fileEntryId,
                                                                                  long newFolderId,
                                                                                  com.liferay.portal.service.ServiceContext serviceContext)
                                                                           throws com.liferay.portal.kernel.exception.PortalException,
                                                                                  com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

reindex

protected void reindex(com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
                throws com.liferay.portal.kernel.search.SearchException
Throws:
com.liferay.portal.kernel.search.SearchException

startWorkflowInstance

protected void startWorkflowInstance(long userId,
                                     com.liferay.portal.service.ServiceContext serviceContext,
                                     com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
                                     java.lang.String syncEventType)
                              throws com.liferay.portal.kernel.exception.PortalException,
                                     com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateFileEntry

protected com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId,
                                                                                long fileEntryId,
                                                                                java.lang.String sourceFileName,
                                                                                java.lang.String extension,
                                                                                java.lang.String mimeType,
                                                                                java.lang.String title,
                                                                                java.lang.String description,
                                                                                java.lang.String changeLog,
                                                                                boolean majorVersion,
                                                                                java.lang.String extraSettings,
                                                                                long fileEntryTypeId,
                                                                                java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
                                                                                java.io.File file,
                                                                                java.io.InputStream is,
                                                                                long size,
                                                                                com.liferay.portal.service.ServiceContext serviceContext)
                                                                         throws com.liferay.portal.kernel.exception.PortalException,
                                                                                com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateFileVersion

protected void updateFileVersion(com.liferay.portal.model.User user,
                                 com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
                                 java.lang.String sourceFileName,
                                 java.lang.String extension,
                                 java.lang.String mimeType,
                                 java.lang.String title,
                                 java.lang.String description,
                                 java.lang.String changeLog,
                                 java.lang.String extraSettings,
                                 long fileEntryTypeId,
                                 java.util.Map<java.lang.String,com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
                                 java.lang.String version,
                                 long size,
                                 int status,
                                 java.util.Date statusDate,
                                 com.liferay.portal.service.ServiceContext serviceContext)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

validateFile

protected void validateFile(long groupId,
                            long folderId,
                            long fileEntryId,
                            java.lang.String title)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

validateFile

protected void validateFile(long groupId,
                            long folderId,
                            long fileEntryId,
                            java.lang.String extension,
                            java.lang.String title,
                            java.lang.String sourceFileName,
                            java.io.File file,
                            java.io.InputStream is)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

validateFile

protected void validateFile(long groupId,
                            long folderId,
                            java.lang.String title,
                            java.lang.String extension,
                            java.io.File file,
                            java.io.InputStream is)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

validateFileName

protected void validateFileName(java.lang.String fileName)
                         throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException