Liferay 6.2-ce-ga5

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

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.documentlibrary.service.base.DLAppHelperLocalServiceBaseImpl
          extended by com.liferay.portlet.documentlibrary.service.impl.DLAppHelperLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, DLAppHelperLocalService

public class DLAppHelperLocalServiceImpl
extends DLAppHelperLocalServiceBaseImpl

Provides the local service helper for the document library application.


Field Summary
 
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLAppHelperLocalServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, counterLocalService, 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, dlSyncEventLocalService, dlSyncEventPersistence, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, layoutFinder, layoutLocalService, layoutPersistence, layoutService, lockFinder, lockLocalService, lockPersistence, mbDiscussionLocalService, mbDiscussionPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsEntryFinder, ratingsEntryLocalService, ratingsEntryPersistence, ratingsEntryService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceLocalService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialActivityService, subscriptionLocalService, subscriptionPersistence, trashEntryLocalService, trashEntryPersistence, trashEntryService, trashVersionLocalService, trashVersionPersistence, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
DLAppHelperLocalServiceImpl()
           
 
Method Summary
 void addFileEntry(long userId, FileEntry fileEntry, FileVersion fileVersion, ServiceContext serviceContext)
           
 void addFolder(long userId, Folder folder, ServiceContext serviceContext)
           
 void cancelCheckOut(long userId, FileEntry fileEntry, FileVersion sourceFileVersion, FileVersion destinationFileVersion, FileVersion draftFileVersion, ServiceContext serviceContext)
           
 void checkAssetEntry(long userId, FileEntry fileEntry, FileVersion fileVersion)
           
 void deleteFileEntry(FileEntry fileEntry)
           
 void deleteFolder(Folder folder)
           
protected  FileEntry doMoveFileEntryFromTrash(long userId, FileEntry fileEntry, long newFolderId, ServiceContext serviceContext)
           
protected  FileEntry doMoveFileEntryToTrash(long userId, FileEntry fileEntry)
           
protected  Folder doMoveFolderFromTrash(long userId, Folder folder, long parentFolderId, ServiceContext serviceContext)
           
protected  Folder doMoveFolderToTrash(long userId, Folder folder)
           
protected  List<ObjectValuePair<Long,Integer>> getDlFileVersionStatuses(List<DLFileVersion> dlFileVersions)
           
 void getFileAsStream(long userId, FileEntry fileEntry, boolean incrementCounter)
           
protected  long getFileEntryTypeId(FileEntry fileEntry)
           
 List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status)
           
 List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, int status)
          Deprecated. As of 6.2.0, replaced by getFileShortcuts(long, long, boolean, int)
 int getFileShortcutsCount(long groupId, long folderId, boolean active, int status)
           
 int getFileShortcutsCount(long groupId, long folderId, int status)
          Deprecated. As of 6.2.0, replaced by getFileShortcutsCount(long, long, boolean, int)
 List<FileEntry> getNoAssetFileEntries()
           
protected  boolean isStagingGroup(long groupId)
           
 void moveDependentsToTrash(List<Object> dlFileEntriesAndDLFolders, long trashEntryId)
           
 void moveFileEntry(FileEntry fileEntry)
           
 FileEntry moveFileEntryFromTrash(long userId, FileEntry fileEntry, long newFolderId, ServiceContext serviceContext)
           
 FileEntry moveFileEntryToTrash(long userId, FileEntry fileEntry)
          Moves the file entry to the recycle bin.
 DLFileShortcut moveFileShortcutFromTrash(long userId, DLFileShortcut dlFileShortcut, long newFolderId, ServiceContext serviceContext)
           
 DLFileShortcut moveFileShortcutToTrash(long userId, DLFileShortcut dlFileShortcut)
          Moves the file shortcut to the recycle bin.
 void moveFolder(Folder folder)
           
 Folder moveFolderFromTrash(long userId, Folder folder, long parentFolderId, ServiceContext serviceContext)
           
 Folder moveFolderToTrash(long userId, Folder folder)
          Moves the folder to the recycle bin.
protected  void notify(SubscriptionSender subscriptionSender)
           
protected  void notifySubscribers(FileVersion fileVersion, ServiceContext serviceContext)
           
protected  void registerDLProcessorCallback(FileEntry fileEntry, FileVersion fileVersion)
           
 void registerDLSyncEventCallback(String event, FileEntry fileEntry)
           
 void registerDLSyncEventCallback(String event, Folder folder)
           
protected  void registerDLSyncEventCallback(String event, String type, long typePK)
           
 void restoreDependentsFromTrash(List<Object> dlFileEntriesAndDLFolders, long trashEntryId)
           
 void restoreFileEntryFromTrash(long userId, FileEntry fileEntry)
           
 void restoreFileShortcutFromTrash(long userId, DLFileShortcut dlFileShortcut)
           
 void restoreFolderFromTrash(long userId, Folder folder)
           
 AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long assetClassPk)
           
 AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
 AssetEntry updateAsset(long userId, Folder folder, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
 void updateFileEntry(long userId, FileEntry fileEntry, FileVersion sourceFileVersion, FileVersion destinationFileVersion, long assetClassPk)
           
 void updateFileEntry(long userId, FileEntry fileEntry, FileVersion sourceFileVersion, FileVersion destinationFileVersion, ServiceContext serviceContext)
           
 void updateFolder(long userId, Folder folder, ServiceContext serviceContext)
           
 void updateStatus(long userId, FileEntry fileEntry, FileVersion latestFileVersion, int oldStatus, int newStatus, Map<String,Serializable> workflowContext, ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLAppHelperLocalServiceBaseImpl
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCounterLocalService, getDLAppHelperLocalService, getDLAppLocalService, getDLAppService, getDLContentLocalService, getDLContentPersistence, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryMetadataLocalService, getDLFileEntryMetadataPersistence, getDLFileEntryPersistence, getDLFileEntryService, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileEntryTypeService, getDLFileRankFinder, getDLFileRankLocalService, getDLFileRankPersistence, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileShortcutService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFileVersionService, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getDLSyncEventLocalService, getDLSyncEventPersistence, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutService, getLockFinder, getLockLocalService, getLockPersistence, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsEntryFinder, getRatingsEntryLocalService, getRatingsEntryPersistence, getRatingsEntryService, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceLocalService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getSubscriptionLocalService, getSubscriptionPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashEntryService, getTrashVersionLocalService, getTrashVersionPersistence, 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, 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, setDLSyncEventLocalService, setDLSyncEventPersistence, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutService, setLockFinder, setLockLocalService, setLockPersistence, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setRatingsEntryFinder, setRatingsEntryLocalService, setRatingsEntryPersistence, setRatingsEntryService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceLocalService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivityService, setSubscriptionLocalService, setSubscriptionPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashEntryService, setTrashVersionLocalService, setTrashVersionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLayoutURL, getLayoutURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLAppHelperLocalServiceImpl

public DLAppHelperLocalServiceImpl()
Method Detail

addFileEntry

public void addFileEntry(long userId,
                         FileEntry fileEntry,
                         FileVersion fileVersion,
                         ServiceContext serviceContext)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

addFolder

public void addFolder(long userId,
                      Folder folder,
                      ServiceContext serviceContext)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

cancelCheckOut

public void cancelCheckOut(long userId,
                           FileEntry fileEntry,
                           FileVersion sourceFileVersion,
                           FileVersion destinationFileVersion,
                           FileVersion draftFileVersion,
                           ServiceContext serviceContext)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

checkAssetEntry

public void checkAssetEntry(long userId,
                            FileEntry fileEntry,
                            FileVersion fileVersion)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

deleteFileEntry

public void deleteFileEntry(FileEntry fileEntry)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

deleteFolder

public void deleteFolder(Folder folder)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

getFileAsStream

public void getFileAsStream(long userId,
                            FileEntry fileEntry,
                            boolean incrementCounter)
                     throws SystemException
Throws:
SystemException

getFileShortcuts

public List<DLFileShortcut> getFileShortcuts(long groupId,
                                             long folderId,
                                             boolean active,
                                             int status)
                                      throws SystemException
Throws:
SystemException

getFileShortcuts

public List<DLFileShortcut> getFileShortcuts(long groupId,
                                             long folderId,
                                             int status)
                                      throws SystemException
Deprecated. As of 6.2.0, replaced by getFileShortcuts(long, long, boolean, int)

Throws:
SystemException

getFileShortcutsCount

public int getFileShortcutsCount(long groupId,
                                 long folderId,
                                 boolean active,
                                 int status)
                          throws SystemException
Throws:
SystemException

getFileShortcutsCount

public int getFileShortcutsCount(long groupId,
                                 long folderId,
                                 int status)
                          throws SystemException
Deprecated. As of 6.2.0, replaced by getFileShortcutsCount(long, long, boolean, int)

Throws:
SystemException

getNoAssetFileEntries

public List<FileEntry> getNoAssetFileEntries()

moveDependentsToTrash

public void moveDependentsToTrash(List<Object> dlFileEntriesAndDLFolders,
                                  long trashEntryId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

moveFileEntry

public void moveFileEntry(FileEntry fileEntry)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

moveFileEntryFromTrash

public FileEntry moveFileEntryFromTrash(long userId,
                                        FileEntry fileEntry,
                                        long newFolderId,
                                        ServiceContext serviceContext)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

moveFileEntryToTrash

public FileEntry moveFileEntryToTrash(long userId,
                                      FileEntry fileEntry)
                               throws PortalException,
                                      SystemException
Moves the file entry to the recycle bin.

Parameters:
userId - the primary key of the user moving the file entry
fileEntry - the file entry to be moved
Returns:
the moved file entry
Throws:
PortalException - if a user with the primary key could not be found
SystemException - if a system exception occurred

moveFileShortcutFromTrash

public DLFileShortcut moveFileShortcutFromTrash(long userId,
                                                DLFileShortcut dlFileShortcut,
                                                long newFolderId,
                                                ServiceContext serviceContext)
                                         throws PortalException,
                                                SystemException
Throws:
PortalException
SystemException

moveFileShortcutToTrash

public DLFileShortcut moveFileShortcutToTrash(long userId,
                                              DLFileShortcut dlFileShortcut)
                                       throws PortalException,
                                              SystemException
Moves the file shortcut to the recycle bin.

Parameters:
userId - the primary key of the user moving the file shortcut
dlFileShortcut - the file shortcut to be moved
Returns:
the moved file shortcut
Throws:
PortalException - if a user with the primary key could not be found
SystemException - if a system exception occurred

moveFolder

public void moveFolder(Folder folder)
                throws SystemException
Throws:
SystemException

moveFolderFromTrash

public Folder moveFolderFromTrash(long userId,
                                  Folder folder,
                                  long parentFolderId,
                                  ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

moveFolderToTrash

public Folder moveFolderToTrash(long userId,
                                Folder folder)
                         throws PortalException,
                                SystemException
Moves the folder to the recycle bin.

Parameters:
userId - the primary key of the user moving the folder
folder - the folder to be moved
Returns:
the moved folder
Throws:
PortalException - if a user with the primary key could not be found
SystemException - if a system exception occurred

registerDLSyncEventCallback

public void registerDLSyncEventCallback(String event,
                                        FileEntry fileEntry)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

registerDLSyncEventCallback

public void registerDLSyncEventCallback(String event,
                                        Folder folder)
                                 throws SystemException
Throws:
SystemException

restoreDependentsFromTrash

public void restoreDependentsFromTrash(List<Object> dlFileEntriesAndDLFolders,
                                       long trashEntryId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

restoreFileEntryFromTrash

public void restoreFileEntryFromTrash(long userId,
                                      FileEntry fileEntry)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

restoreFileShortcutFromTrash

public void restoreFileShortcutFromTrash(long userId,
                                         DLFileShortcut dlFileShortcut)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

restoreFolderFromTrash

public void restoreFolderFromTrash(long userId,
                                   Folder folder)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

updateAsset

public AssetEntry updateAsset(long userId,
                              FileEntry fileEntry,
                              FileVersion fileVersion,
                              long assetClassPk)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateAsset

public AssetEntry updateAsset(long userId,
                              FileEntry fileEntry,
                              FileVersion fileVersion,
                              long[] assetCategoryIds,
                              String[] assetTagNames,
                              long[] assetLinkEntryIds)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateAsset

public AssetEntry updateAsset(long userId,
                              Folder folder,
                              long[] assetCategoryIds,
                              String[] assetTagNames,
                              long[] assetLinkEntryIds)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateFileEntry

public void updateFileEntry(long userId,
                            FileEntry fileEntry,
                            FileVersion sourceFileVersion,
                            FileVersion destinationFileVersion,
                            long assetClassPk)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

updateFileEntry

public void updateFileEntry(long userId,
                            FileEntry fileEntry,
                            FileVersion sourceFileVersion,
                            FileVersion destinationFileVersion,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

updateFolder

public void updateFolder(long userId,
                         Folder folder,
                         ServiceContext serviceContext)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateStatus

public void updateStatus(long userId,
                         FileEntry fileEntry,
                         FileVersion latestFileVersion,
                         int oldStatus,
                         int newStatus,
                         Map<String,Serializable> workflowContext,
                         ServiceContext serviceContext)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

doMoveFileEntryFromTrash

protected FileEntry doMoveFileEntryFromTrash(long userId,
                                             FileEntry fileEntry,
                                             long newFolderId,
                                             ServiceContext serviceContext)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

doMoveFileEntryToTrash

protected FileEntry doMoveFileEntryToTrash(long userId,
                                           FileEntry fileEntry)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

doMoveFolderFromTrash

protected Folder doMoveFolderFromTrash(long userId,
                                       Folder folder,
                                       long parentFolderId,
                                       ServiceContext serviceContext)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

doMoveFolderToTrash

protected Folder doMoveFolderToTrash(long userId,
                                     Folder folder)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getDlFileVersionStatuses

protected List<ObjectValuePair<Long,Integer>> getDlFileVersionStatuses(List<DLFileVersion> dlFileVersions)

getFileEntryTypeId

protected long getFileEntryTypeId(FileEntry fileEntry)

isStagingGroup

protected boolean isStagingGroup(long groupId)

notify

protected void notify(SubscriptionSender subscriptionSender)

notifySubscribers

protected void notifySubscribers(FileVersion fileVersion,
                                 ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

registerDLProcessorCallback

protected void registerDLProcessorCallback(FileEntry fileEntry,
                                           FileVersion fileVersion)

registerDLSyncEventCallback

protected void registerDLSyncEventCallback(String event,
                                           String type,
                                           long typePK)
                                    throws SystemException
Throws:
SystemException

Liferay 6.2-ce-ga5