Liferay 6.1.2-ce-ga3

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

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
          extended by com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, 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").


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, dlSyncFinder, 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
 DLFileEntry addFileEntry(long userId, long groupId, long repositoryId, long folderId, String sourceFileName, String mimeType, String title, String description, String changeLog, long fileEntryTypeId, Map<String,Fields> fieldsMap, File file, InputStream is, long size, ServiceContext serviceContext)
           
protected  DLFileVersion addFileVersion(User user, DLFileEntry dlFileEntry, Date modifiedDate, String extension, String mimeType, String title, String description, String changeLog, String extraSettings, long fileEntryTypeId, Map<String,Fields> fieldsMap, String version, long size, int status, ServiceContext serviceContext)
           
 DLFileVersion cancelCheckOut(long userId, long fileEntryId)
           
 void checkInFileEntry(long userId, long fileEntryId, boolean majorVersion, String changeLog, ServiceContext serviceContext)
           
 void checkInFileEntry(long userId, long fileEntryId, String lockUuid)
           
 DLFileEntry checkOutFileEntry(long userId, long fileEntryId)
          Deprecated. checkOutFileEntry(long, long, ServiceContext)
 DLFileEntry checkOutFileEntry(long userId, long fileEntryId, ServiceContext serviceContext)
           
 DLFileEntry checkOutFileEntry(long userId, long fileEntryId, String owner, long expirationTime)
          Deprecated. checkOutFileEntry(long, long, String, long, ServiceContext)
 DLFileEntry checkOutFileEntry(long userId, long fileEntryId, String owner, long expirationTime, ServiceContext serviceContext)
           
protected  void convertExtraSettings(DLFileEntry dlFileEntry, DLFileVersion dlFileVersion, String[] keys)
           
protected  void convertExtraSettings(DLFileEntry dlFileEntry, String[] keys)
           
 void convertExtraSettings(String[] keys)
           
protected  void convertExtraSettings(UnicodeProperties extraSettingsProperties, ExpandoBridge expandoBridge, String[] keys)
           
 void copyFileEntryMetadata(long companyId, long fileEntryTypeId, long fileEntryId, long fromFileVersionId, long toFileVersionId, ServiceContext serviceContext)
           
 void deleteFileEntries(long groupId, long folderId)
           
protected  void deleteFileEntry(DLFileEntry dlFileEntry)
           
 void deleteFileEntry(long fileEntryId)
           
 void deleteFileEntry(long userId, long fileEntryId)
           
 void deleteFileVersion(long userId, long fileEntryId, String version)
           
 DLFileEntry fetchFileEntryByAnyImageId(long imageId)
           
 DLFileEntry fetchFileEntryByName(long groupId, long folderId, String name)
           
 List<DLFileEntry> getExtraSettingsFileEntries(int start, int end)
           
 File getFile(long userId, long fileEntryId, String version, boolean incrementCounter)
           
 InputStream getFileAsStream(long userId, long fileEntryId, String version)
           
 InputStream getFileAsStream(long userId, long fileEntryId, String version, boolean incrementCounter)
           
 List<DLFileEntry> getFileEntries(int start, int end)
           
 List<DLFileEntry> getFileEntries(long groupId, long folderId, int start, int end, OrderByComparator obc)
           
 List<DLFileEntry> getFileEntries(long folderId, String name)
           
 int getFileEntriesCount()
           
 int getFileEntriesCount(long groupId, long folderId)
           
 DLFileEntry getFileEntry(long fileEntryId)
           
 DLFileEntry getFileEntry(long groupId, long folderId, String title)
           
 DLFileEntry getFileEntryByName(long groupId, long folderId, String name)
           
 DLFileEntry getFileEntryByUuidAndGroupId(String uuid, long groupId)
           
protected  Long getFileEntryTypeId(long[] groupIds, long folderId, long fileEntryTypeId)
           
 List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end)
           
 List<DLFileEntry> getGroupFileEntries(long groupId, int start, int end, OrderByComparator obc)
           
 List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end)
           
 List<DLFileEntry> getGroupFileEntries(long groupId, long userId, int start, int end, OrderByComparator obc)
           
 int getGroupFileEntriesCount(long groupId)
           
 int getGroupFileEntriesCount(long groupId, long userId)
           
 List<DLFileEntry> getMisversionedFileEntries()
           
protected  String getNextVersion(DLFileEntry dlFileEntry, boolean majorVersion, int workflowAction)
           
 List<DLFileEntry> getNoAssetFileEntries()
           
 List<DLFileEntry> getOrphanedFileEntries()
           
 boolean hasExtraSettings()
           
 boolean hasFileEntryLock(long userId, long fileEntryId)
           
 boolean isFileEntryCheckedOut(long fileEntryId)
           
protected  boolean isKeepFileVersionLabel(DLFileEntry dlFileEntry, DLFileVersion lastDLFileVersion, DLFileVersion latestDLFileVersion, int workflowAction)
           
protected  Lock lockFileEntry(long userId, long fileEntryId)
           
protected  Lock lockFileEntry(long userId, long fileEntryId, String owner, long expirationTime)
           
 DLFileEntry moveFileEntry(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext)
           
protected  DLFileEntry moveFileEntryImpl(long userId, long fileEntryId, long newFolderId, ServiceContext serviceContext)
           
protected  void reindex(DLFileEntry dlFileEntry)
           
protected  void removeFileVersion(DLFileEntry dlFileEntry, DLFileVersion dlFileVersion)
           
 void revertFileEntry(long userId, long fileEntryId, String version, ServiceContext serviceContext)
           
protected  void setFileVersion(DLFileEntry dlFileEntry)
           
protected  void startWorkflowInstance(long userId, ServiceContext serviceContext, DLFileVersion dlFileVersion, String syncEventType)
           
protected  void unlockFileEntry(long fileEntryId)
           
protected  void unlockFileEntry(long fileEntryId, String lockUuid)
           
 DLFileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String mimeType, String title, String description, String changeLog, boolean majorVersion, long fileEntryTypeId, Map<String,Fields> fieldsMap, File file, InputStream is, long size, ServiceContext serviceContext)
           
protected  DLFileEntry updateFileEntry(long userId, long fileEntryId, String sourceFileName, String extension, String mimeType, String title, String description, String changeLog, boolean majorVersion, String extraSettings, long fileEntryTypeId, Map<String,Fields> fieldsMap, File file, InputStream is, long size, ServiceContext serviceContext)
           
protected  DLFileVersion updateFileVersion(User user, DLFileVersion dlFileVersion, String sourceFileName, String extension, String mimeType, String title, String description, String changeLog, String extraSettings, long fileEntryTypeId, Map<String,Fields> fieldsMap, String version, long size, int status, Date statusDate, ServiceContext serviceContext)
           
 void updateSmallImage(long smallImageId, long largeImageId)
           
 DLFileEntry updateStatus(long userId, long fileVersionId, int status, Map<String,Serializable> workflowContext, ServiceContext serviceContext)
           
protected  void validateFile(long groupId, long folderId, long fileEntryId, String title, String extension)
           
protected  void validateFile(long groupId, long folderId, long fileEntryId, String title, String extension, String sourceFileName, File file, InputStream is)
           
protected  void validateFileExtension(String extension)
           
protected  void validateFileName(String fileName)
           
 boolean verifyFileEntryCheckOut(long fileEntryId, String lockUuid)
           
 boolean verifyFileEntryLock(long fileEntryId, String lockUuid)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
addDLFileEntry, afterPropertiesSet, createDLFileEntry, deleteDLFileEntry, deleteDLFileEntry, destroy, dynamicQuery, 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, getDLSyncFinder, 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, setDLSyncFinder, 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 com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader
 
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 DLFileEntry addFileEntry(long userId,
                                long groupId,
                                long repositoryId,
                                long folderId,
                                String sourceFileName,
                                String mimeType,
                                String title,
                                String description,
                                String changeLog,
                                long fileEntryTypeId,
                                Map<String,Fields> fieldsMap,
                                File file,
                                InputStream is,
                                long size,
                                ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

cancelCheckOut

public DLFileVersion cancelCheckOut(long userId,
                                    long fileEntryId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

checkInFileEntry

public void checkInFileEntry(long userId,
                             long fileEntryId,
                             boolean majorVersion,
                             String changeLog,
                             ServiceContext serviceContext)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

checkInFileEntry

public void checkInFileEntry(long userId,
                             long fileEntryId,
                             String lockUuid)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

checkOutFileEntry

public DLFileEntry checkOutFileEntry(long userId,
                                     long fileEntryId)
                              throws PortalException,
                                     SystemException
Deprecated. checkOutFileEntry(long, long, ServiceContext)

Throws:
PortalException
SystemException

checkOutFileEntry

public DLFileEntry checkOutFileEntry(long userId,
                                     long fileEntryId,
                                     ServiceContext serviceContext)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

checkOutFileEntry

public DLFileEntry checkOutFileEntry(long userId,
                                     long fileEntryId,
                                     String owner,
                                     long expirationTime)
                              throws PortalException,
                                     SystemException
Deprecated. checkOutFileEntry(long, long, String, long, ServiceContext)

Throws:
PortalException
SystemException

checkOutFileEntry

public DLFileEntry checkOutFileEntry(long userId,
                                     long fileEntryId,
                                     String owner,
                                     long expirationTime,
                                     ServiceContext serviceContext)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

convertExtraSettings

public void convertExtraSettings(String[] keys)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

copyFileEntryMetadata

public void copyFileEntryMetadata(long companyId,
                                  long fileEntryTypeId,
                                  long fileEntryId,
                                  long fromFileVersionId,
                                  long toFileVersionId,
                                  ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteFileEntries

public void deleteFileEntries(long groupId,
                              long folderId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteFileEntry

public void deleteFileEntry(long fileEntryId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

deleteFileEntry

public void deleteFileEntry(long userId,
                            long fileEntryId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

deleteFileVersion

@Indexable(type=DELETE)
public void deleteFileVersion(long userId,
                                                  long fileEntryId,
                                                  String version)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

fetchFileEntryByAnyImageId

public DLFileEntry fetchFileEntryByAnyImageId(long imageId)
                                       throws SystemException
Throws:
SystemException

fetchFileEntryByName

public DLFileEntry fetchFileEntryByName(long groupId,
                                        long folderId,
                                        String name)
                                 throws SystemException
Throws:
SystemException

getExtraSettingsFileEntries

public List<DLFileEntry> getExtraSettingsFileEntries(int start,
                                                     int end)
                                              throws SystemException
Throws:
SystemException

getFile

public File getFile(long userId,
                    long fileEntryId,
                    String version,
                    boolean incrementCounter)
             throws PortalException,
                    SystemException
Throws:
PortalException
SystemException

getFileAsStream

public InputStream getFileAsStream(long userId,
                                   long fileEntryId,
                                   String version)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getFileAsStream

public InputStream getFileAsStream(long userId,
                                   long fileEntryId,
                                   String version,
                                   boolean incrementCounter)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getFileEntries

public List<DLFileEntry> getFileEntries(int start,
                                        int end)
                                 throws SystemException
Throws:
SystemException

getFileEntries

public List<DLFileEntry> getFileEntries(long groupId,
                                        long folderId,
                                        int start,
                                        int end,
                                        OrderByComparator obc)
                                 throws SystemException
Throws:
SystemException

getFileEntries

public List<DLFileEntry> getFileEntries(long folderId,
                                        String name)
                                 throws SystemException
Throws:
SystemException

getFileEntriesCount

public int getFileEntriesCount()
                        throws SystemException
Throws:
SystemException

getFileEntriesCount

public int getFileEntriesCount(long groupId,
                               long folderId)
                        throws SystemException
Throws:
SystemException

getFileEntry

public DLFileEntry getFileEntry(long fileEntryId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getFileEntry

public DLFileEntry getFileEntry(long groupId,
                                long folderId,
                                String title)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getFileEntryByName

public DLFileEntry getFileEntryByName(long groupId,
                                      long folderId,
                                      String name)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getFileEntryByUuidAndGroupId

public DLFileEntry getFileEntryByUuidAndGroupId(String uuid,
                                                long groupId)
                                         throws PortalException,
                                                SystemException
Throws:
PortalException
SystemException

getGroupFileEntries

public List<DLFileEntry> getGroupFileEntries(long groupId,
                                             int start,
                                             int end)
                                      throws SystemException
Throws:
SystemException

getGroupFileEntries

public List<DLFileEntry> getGroupFileEntries(long groupId,
                                             int start,
                                             int end,
                                             OrderByComparator obc)
                                      throws SystemException
Throws:
SystemException

getGroupFileEntries

public List<DLFileEntry> getGroupFileEntries(long groupId,
                                             long userId,
                                             int start,
                                             int end)
                                      throws SystemException
Throws:
SystemException

getGroupFileEntries

public List<DLFileEntry> getGroupFileEntries(long groupId,
                                             long userId,
                                             int start,
                                             int end,
                                             OrderByComparator obc)
                                      throws SystemException
Throws:
SystemException

getGroupFileEntriesCount

public int getGroupFileEntriesCount(long groupId)
                             throws SystemException
Throws:
SystemException

getGroupFileEntriesCount

public int getGroupFileEntriesCount(long groupId,
                                    long userId)
                             throws SystemException
Throws:
SystemException

getMisversionedFileEntries

public List<DLFileEntry> getMisversionedFileEntries()
                                             throws SystemException
Throws:
SystemException

getNoAssetFileEntries

public List<DLFileEntry> getNoAssetFileEntries()
                                        throws SystemException
Throws:
SystemException

getOrphanedFileEntries

public List<DLFileEntry> getOrphanedFileEntries()
                                         throws SystemException
Throws:
SystemException

hasExtraSettings

public boolean hasExtraSettings()
                         throws SystemException
Throws:
SystemException

hasFileEntryLock

public boolean hasFileEntryLock(long userId,
                                long fileEntryId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

isFileEntryCheckedOut

public boolean isFileEntryCheckedOut(long fileEntryId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

moveFileEntry

public DLFileEntry moveFileEntry(long userId,
                                 long fileEntryId,
                                 long newFolderId,
                                 ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

revertFileEntry

public void revertFileEntry(long userId,
                            long fileEntryId,
                            String version,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

updateFileEntry

public DLFileEntry updateFileEntry(long userId,
                                   long fileEntryId,
                                   String sourceFileName,
                                   String mimeType,
                                   String title,
                                   String description,
                                   String changeLog,
                                   boolean majorVersion,
                                   long fileEntryTypeId,
                                   Map<String,Fields> fieldsMap,
                                   File file,
                                   InputStream is,
                                   long size,
                                   ServiceContext serviceContext)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

updateSmallImage

public void updateSmallImage(long smallImageId,
                             long largeImageId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateStatus

public DLFileEntry updateStatus(long userId,
                                long fileVersionId,
                                int status,
                                Map<String,Serializable> workflowContext,
                                ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

verifyFileEntryCheckOut

public boolean verifyFileEntryCheckOut(long fileEntryId,
                                       String lockUuid)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

verifyFileEntryLock

public boolean verifyFileEntryLock(long fileEntryId,
                                   String lockUuid)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

addFileVersion

protected DLFileVersion addFileVersion(User user,
                                       DLFileEntry dlFileEntry,
                                       Date modifiedDate,
                                       String extension,
                                       String mimeType,
                                       String title,
                                       String description,
                                       String changeLog,
                                       String extraSettings,
                                       long fileEntryTypeId,
                                       Map<String,Fields> fieldsMap,
                                       String version,
                                       long size,
                                       int status,
                                       ServiceContext serviceContext)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

convertExtraSettings

protected void convertExtraSettings(DLFileEntry dlFileEntry,
                                    DLFileVersion dlFileVersion,
                                    String[] keys)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

convertExtraSettings

protected void convertExtraSettings(DLFileEntry dlFileEntry,
                                    String[] keys)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

convertExtraSettings

protected void convertExtraSettings(UnicodeProperties extraSettingsProperties,
                                    ExpandoBridge expandoBridge,
                                    String[] keys)

deleteFileEntry

protected void deleteFileEntry(DLFileEntry dlFileEntry)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getFileEntryTypeId

protected Long getFileEntryTypeId(long[] groupIds,
                                  long folderId,
                                  long fileEntryTypeId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getNextVersion

protected String getNextVersion(DLFileEntry dlFileEntry,
                                boolean majorVersion,
                                int workflowAction)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

isKeepFileVersionLabel

protected boolean isKeepFileVersionLabel(DLFileEntry dlFileEntry,
                                         DLFileVersion lastDLFileVersion,
                                         DLFileVersion latestDLFileVersion,
                                         int workflowAction)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

lockFileEntry

protected Lock lockFileEntry(long userId,
                             long fileEntryId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

lockFileEntry

protected Lock lockFileEntry(long userId,
                             long fileEntryId,
                             String owner,
                             long expirationTime)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

moveFileEntryImpl

protected DLFileEntry moveFileEntryImpl(long userId,
                                        long fileEntryId,
                                        long newFolderId,
                                        ServiceContext serviceContext)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

reindex

protected void reindex(DLFileEntry dlFileEntry)
                throws SearchException
Throws:
SearchException

removeFileVersion

protected void removeFileVersion(DLFileEntry dlFileEntry,
                                 DLFileVersion dlFileVersion)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

setFileVersion

protected void setFileVersion(DLFileEntry dlFileEntry)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

startWorkflowInstance

protected void startWorkflowInstance(long userId,
                                     ServiceContext serviceContext,
                                     DLFileVersion dlFileVersion,
                                     String syncEventType)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

unlockFileEntry

protected void unlockFileEntry(long fileEntryId)
                        throws SystemException
Throws:
SystemException

unlockFileEntry

protected void unlockFileEntry(long fileEntryId,
                               String lockUuid)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateFileEntry

protected DLFileEntry updateFileEntry(long userId,
                                      long fileEntryId,
                                      String sourceFileName,
                                      String extension,
                                      String mimeType,
                                      String title,
                                      String description,
                                      String changeLog,
                                      boolean majorVersion,
                                      String extraSettings,
                                      long fileEntryTypeId,
                                      Map<String,Fields> fieldsMap,
                                      File file,
                                      InputStream is,
                                      long size,
                                      ServiceContext serviceContext)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

updateFileVersion

protected DLFileVersion updateFileVersion(User user,
                                          DLFileVersion dlFileVersion,
                                          String sourceFileName,
                                          String extension,
                                          String mimeType,
                                          String title,
                                          String description,
                                          String changeLog,
                                          String extraSettings,
                                          long fileEntryTypeId,
                                          Map<String,Fields> fieldsMap,
                                          String version,
                                          long size,
                                          int status,
                                          Date statusDate,
                                          ServiceContext serviceContext)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

validateFile

protected void validateFile(long groupId,
                            long folderId,
                            long fileEntryId,
                            String title,
                            String extension)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

validateFile

protected void validateFile(long groupId,
                            long folderId,
                            long fileEntryId,
                            String title,
                            String extension,
                            String sourceFileName,
                            File file,
                            InputStream is)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

validateFileExtension

protected void validateFileExtension(String extension)
                              throws PortalException
Throws:
PortalException

validateFileName

protected void validateFileName(String fileName)
                         throws PortalException
Throws:
PortalException

Liferay 6.1.2-ce-ga3