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

java.lang.Object
  extended by com.liferay.portal.service.base.PrincipalBean
      extended by com.liferay.portlet.documentlibrary.service.base.DLFileEntryServiceBaseImpl
          extended by com.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl
All Implemented Interfaces:
com.liferay.portlet.documentlibrary.service.DLFileEntryService

public class DLFileEntryServiceImpl
extends DLFileEntryServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryServiceBaseImpl
counterLocalService, counterService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryService, dlFileRankFinder, dlFileRankLocalService, dlFileRankPersistence, dlFileShortcutFinder, dlFileShortcutLocalService, dlFileShortcutPersistence, dlFileShortcutService, dlFileVersionLocalService, dlFileVersionPersistence, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, dlLocalService, dlService, lockService, mbDiscussionLocalService, mbDiscussionPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, ratingsEntryLocalService, ratingsEntryPersistence, ratingsEntryService, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, tagsAssetFinder, tagsAssetLocalService, tagsAssetPersistence, tagsAssetService, tagsEntryFinder, tagsEntryLocalService, tagsEntryPersistence, tagsEntryService, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence
 
Fields inherited from class com.liferay.portal.service.base.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
DLFileEntryServiceImpl()
           
 
Method Summary
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, byte[] bytes, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, byte[] bytes, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, java.io.File file, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, java.io.File file, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteFileEntry(long folderId, java.lang.String name)
           
 void deleteFileEntry(long folderId, java.lang.String name, double version)
           
 void deleteFileEntryByTitle(long folderId, java.lang.String titleWithExtension)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long folderId)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long folderId, java.lang.String name)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(long folderId, java.lang.String titleWithExtension)
           
 boolean hasFileEntryLock(long folderId, java.lang.String name)
           
 com.liferay.lock.model.Lock lockFileEntry(long folderId, java.lang.String name)
           
 com.liferay.lock.model.Lock lockFileEntry(long folderId, java.lang.String name, java.lang.String owner, long expirationTime)
           
 com.liferay.lock.model.Lock refreshFileEntryLock(java.lang.String lockUuid, long expirationTime)
           
 void unlockFileEntry(long folderId, java.lang.String name)
           
 void unlockFileEntry(long folderId, java.lang.String name, java.lang.String lockUuid)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long folderId, long newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, byte[] bytes)
           
 boolean verifyFileEntryLock(long folderId, java.lang.String name, java.lang.String lockUuid)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryServiceBaseImpl
getCounterLocalService, getCounterService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryService, getDLFileRankFinder, getDLFileRankLocalService, getDLFileRankPersistence, getDLFileShortcutFinder, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileShortcutService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getDLLocalService, getDLService, getLockService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getRatingsEntryLocalService, getRatingsEntryPersistence, getRatingsEntryService, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getTagsAssetFinder, getTagsAssetLocalService, getTagsAssetPersistence, getTagsAssetService, getTagsEntryFinder, getTagsEntryLocalService, getTagsEntryPersistence, getTagsEntryService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWebDAVPropsLocalService, getWebDAVPropsPersistence, setCounterLocalService, setCounterService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryService, setDLFileRankFinder, setDLFileRankLocalService, setDLFileRankPersistence, setDLFileShortcutFinder, setDLFileShortcutLocalService, setDLFileShortcutPersistence, setDLFileShortcutService, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setDLLocalService, setDLService, setLockService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setRatingsEntryLocalService, setRatingsEntryPersistence, setRatingsEntryService, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setTagsAssetFinder, setTagsAssetLocalService, setTagsAssetPersistence, setTagsAssetService, setTagsEntryFinder, setTagsEntryLocalService, setTagsEntryPersistence, setTagsEntryService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence
 
Methods inherited from class com.liferay.portal.service.base.PrincipalBean
getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryServiceImpl

public DLFileEntryServiceImpl()
Method Detail

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          java.io.File file,
                                                                          boolean addCommunityPermissions,
                                                                          boolean addGuestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          byte[] bytes,
                                                                          boolean addCommunityPermissions,
                                                                          boolean addGuestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          java.io.File file,
                                                                          java.lang.String[] communityPermissions,
                                                                          java.lang.String[] guestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          byte[] bytes,
                                                                          java.lang.String[] communityPermissions,
                                                                          java.lang.String[] guestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntry

public void deleteFileEntry(long folderId,
                            java.lang.String name)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntry

public void deleteFileEntry(long folderId,
                            java.lang.String name,
                            double version)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntryByTitle

public void deleteFileEntryByTitle(long folderId,
                                   java.lang.String titleWithExtension)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long folderId)
                                                                                     throws com.liferay.portal.PortalException,
                                                                                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileEntry

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

getFileEntryByTitle

public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(long folderId,
                                                                                 java.lang.String titleWithExtension)
                                                                          throws com.liferay.portal.PortalException,
                                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

hasFileEntryLock

public boolean hasFileEntryLock(long folderId,
                                java.lang.String name)
                         throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

lockFileEntry

public com.liferay.lock.model.Lock lockFileEntry(long folderId,
                                                 java.lang.String name)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

lockFileEntry

public com.liferay.lock.model.Lock lockFileEntry(long folderId,
                                                 java.lang.String name,
                                                 java.lang.String owner,
                                                 long expirationTime)
                                          throws com.liferay.portal.PortalException,
                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

refreshFileEntryLock

public com.liferay.lock.model.Lock refreshFileEntryLock(java.lang.String lockUuid,
                                                        long expirationTime)
                                                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

unlockFileEntry

public void unlockFileEntry(long folderId,
                            java.lang.String name)

unlockFileEntry

public void unlockFileEntry(long folderId,
                            java.lang.String name,
                            java.lang.String lockUuid)
                     throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

updateFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long folderId,
                                                                             long newFolderId,
                                                                             java.lang.String name,
                                                                             java.lang.String sourceFileName,
                                                                             java.lang.String title,
                                                                             java.lang.String description,
                                                                             java.lang.String[] tagsEntries,
                                                                             java.lang.String extraSettings,
                                                                             byte[] bytes)
                                                                      throws com.liferay.portal.PortalException,
                                                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

verifyFileEntryLock

public boolean verifyFileEntryLock(long folderId,
                                   java.lang.String name,
                                   java.lang.String lockUuid)
                            throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException