Liferay 7.0-ce-b4

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:
IdentifiableOSGiService, BaseLocalService, DLAppHelperLocalService

public class DLAppHelperLocalServiceImpl
extends DLAppHelperLocalServiceBaseImpl

Provides the local service helper for the document library application.


Field Summary
protected  DLAppService dlAppService
           
 
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLAppHelperLocalServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, classNameLocalService, classNamePersistence, counterLocalService, dlAppHelperLocalService, dlAppLocalService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryTypeFinder, dlFileEntryTypeLocalService, dlFileEntryTypePersistence, dlFileRankFinder, dlFileRankLocalService, dlFileRankPersistence, dlFileShortcutLocalService, dlFileShortcutPersistence, dlFileVersionLocalService, dlFileVersionPersistence, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlSyncEventLocalService, dlSyncEventPersistence, expandoValueLocalService, expandoValuePersistence, groupFinder, groupLocalService, groupPersistence, imageLocalService, imagePersistence, layoutFinder, layoutLocalService, layoutPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, ratingsEntryFinder, ratingsEntryLocalService, ratingsEntryPersistence, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, repositoryLocalService, repositoryPersistence, subscriptionLocalService, subscriptionPersistence, trashEntryLocalService, trashEntryPersistence, trashVersionLocalService, trashVersionPersistence, webDAVPropsLocalService, webDAVPropsPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
DLAppHelperLocalServiceImpl()
           
 
Method Summary
 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)
           
 void deleteRepositoryFileEntries(long repositoryId)
           
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  Class<? extends WorkflowRepositoryEventType> getWorkflowRepositoryEventTypeClass(String syncEvent)
           
 void moveDependentsToTrash(DLFolder dlFolder)
           
 void moveDependentsToTrash(List<Object> dlFileEntriesAndDLFolders, long trashEntryId)
          Deprecated. As of 7.0.0, replaced by moveDependentsToTrash(DLFolder)
 FileEntry moveFileEntryFromTrash(long userId, FileEntry fileEntry, long newFolderId, ServiceContext serviceContext)
           
 FileEntry moveFileEntryToTrash(long userId, FileEntry fileEntry)
          Moves the file entry to the recycle bin.
 FileShortcut moveFileShortcutFromTrash(long userId, FileShortcut fileShortcut, long newFolderId, ServiceContext serviceContext)
           
 FileShortcut moveFileShortcutToTrash(long userId, FileShortcut fileShortcut)
          Moves the file shortcut to the recycle bin.
 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 notifySubscribers(long userId, FileVersion fileVersion, String entryURL, ServiceContext serviceContext)
           
 void restoreDependentsFromTrash(DLFolder dlFolder)
           
 void restoreDependentsFromTrash(List<Object> dlFileEntriesAndDLFolders)
          Deprecated. As of 7.0.0, replaced by restoreDependentsFromTrash(DLFolder)
 void restoreDependentsFromTrash(List<Object> dlFileEntriesAndDLFolders, long trashEntryId)
          Deprecated. As of 7.0.0, replaced by restoreDependentsFromTrash(List)
 void restoreFileEntryFromTrash(long userId, FileEntry fileEntry)
           
 void restoreFileShortcutFromTrash(long userId, FileShortcut fileShortcut)
           
 void restoreFolderFromTrash(long userId, Folder folder)
           
protected  void trashOrRestoreFolder(DLFolder dlFolder, boolean moveToTrash)
           
protected  void trashOrRestoreFolder(DLFolder dlFolder, DLFolder childDLFolder, boolean moveToTrash, TrashEntry trashEntry)
           
protected
<T extends RepositoryModel<T>>
void
triggerRepositoryEvent(long repositoryId, Class<? extends RepositoryEventType> repositoryEventType, Class<T> modelClass, T target)
           
 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, ServiceContext serviceContext, Map<String,Serializable> workflowContext)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLAppHelperLocalServiceBaseImpl
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getClassNameLocalService, getClassNamePersistence, getCounterLocalService, getDLAppHelperLocalService, getDLAppLocalService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileRankFinder, getDLFileRankLocalService, getDLFileRankPersistence, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLSyncEventLocalService, getDLSyncEventPersistence, getExpandoValueLocalService, getExpandoValuePersistence, getGroupFinder, getGroupLocalService, getGroupPersistence, getImageLocalService, getImagePersistence, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getOSGiServiceIdentifier, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getRatingsEntryFinder, getRatingsEntryLocalService, getRatingsEntryPersistence, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getRepositoryLocalService, getRepositoryPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getTrashEntryLocalService, getTrashEntryPersistence, getTrashVersionLocalService, getTrashVersionPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setClassNameLocalService, setClassNamePersistence, setCounterLocalService, setDLAppHelperLocalService, setDLAppLocalService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryTypeFinder, setDLFileEntryTypeLocalService, setDLFileEntryTypePersistence, setDLFileRankFinder, setDLFileRankLocalService, setDLFileRankPersistence, setDLFileShortcutLocalService, setDLFileShortcutPersistence, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLSyncEventLocalService, setDLSyncEventPersistence, setExpandoValueLocalService, setExpandoValuePersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setImageLocalService, setImagePersistence, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setRatingsEntryFinder, setRatingsEntryLocalService, setRatingsEntryPersistence, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setRepositoryLocalService, setRepositoryPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setTrashEntryLocalService, setTrashEntryPersistence, setTrashVersionLocalService, setTrashVersionPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dlAppService

@BeanReference(type=DLAppService.class)
protected DLAppService dlAppService
Constructor Detail

DLAppHelperLocalServiceImpl

public DLAppHelperLocalServiceImpl()
Method Detail

addFolder

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

cancelCheckOut

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

checkAssetEntry

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

deleteFileEntry

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

deleteFolder

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

deleteRepositoryFileEntries

public void deleteRepositoryFileEntries(long repositoryId)
                                 throws PortalException
Throws:
PortalException

getFileAsStream

public void getFileAsStream(long userId,
                            FileEntry fileEntry,
                            boolean incrementCounter)

getFileShortcuts

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

getFileShortcuts

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


getFileShortcutsCount

public int getFileShortcutsCount(long groupId,
                                 long folderId,
                                 boolean active,
                                 int status)

getFileShortcutsCount

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


getNoAssetFileEntries

public List<FileEntry> getNoAssetFileEntries()

moveDependentsToTrash

public void moveDependentsToTrash(DLFolder dlFolder)
                           throws PortalException
Throws:
PortalException

moveDependentsToTrash

@Deprecated
public void moveDependentsToTrash(List<Object> dlFileEntriesAndDLFolders,
                                             long trashEntryId)
                           throws PortalException
Deprecated. As of 7.0.0, replaced by moveDependentsToTrash(DLFolder)

Throws:
PortalException

moveFileEntryFromTrash

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

moveFileEntryToTrash

public FileEntry moveFileEntryToTrash(long userId,
                                      FileEntry fileEntry)
                               throws PortalException
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

moveFileShortcutFromTrash

public FileShortcut moveFileShortcutFromTrash(long userId,
                                              FileShortcut fileShortcut,
                                              long newFolderId,
                                              ServiceContext serviceContext)
                                       throws PortalException
Throws:
PortalException

moveFileShortcutToTrash

public FileShortcut moveFileShortcutToTrash(long userId,
                                            FileShortcut fileShortcut)
                                     throws PortalException
Moves the file shortcut to the recycle bin.

Parameters:
userId - the primary key of the user moving the file shortcut
fileShortcut - the file shortcut to be moved
Returns:
the moved file shortcut
Throws:
PortalException

moveFolderFromTrash

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

moveFolderToTrash

public Folder moveFolderToTrash(long userId,
                                Folder folder)
                         throws PortalException
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

restoreDependentsFromTrash

public void restoreDependentsFromTrash(DLFolder dlFolder)
                                throws PortalException
Throws:
PortalException

restoreDependentsFromTrash

@Deprecated
public void restoreDependentsFromTrash(List<Object> dlFileEntriesAndDLFolders)
                                throws PortalException
Deprecated. As of 7.0.0, replaced by restoreDependentsFromTrash(DLFolder)

Throws:
PortalException

restoreDependentsFromTrash

@Deprecated
public void restoreDependentsFromTrash(List<Object> dlFileEntriesAndDLFolders,
                                                  long trashEntryId)
                                throws PortalException
Deprecated. As of 7.0.0, replaced by restoreDependentsFromTrash(List)

Throws:
PortalException

restoreFileEntryFromTrash

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

restoreFileShortcutFromTrash

public void restoreFileShortcutFromTrash(long userId,
                                         FileShortcut fileShortcut)
                                  throws PortalException
Throws:
PortalException

restoreFolderFromTrash

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

updateAsset

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

updateAsset

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

updateAsset

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

updateFileEntry

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

updateFileEntry

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

updateFolder

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

updateStatus

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

doMoveFileEntryFromTrash

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

doMoveFileEntryToTrash

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

doMoveFolderFromTrash

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

doMoveFolderToTrash

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

getDlFileVersionStatuses

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

getFileEntryTypeId

protected long getFileEntryTypeId(FileEntry fileEntry)

getWorkflowRepositoryEventTypeClass

protected Class<? extends WorkflowRepositoryEventType> getWorkflowRepositoryEventTypeClass(String syncEvent)

notifySubscribers

protected void notifySubscribers(long userId,
                                 FileVersion fileVersion,
                                 String entryURL,
                                 ServiceContext serviceContext)
                          throws PortalException
Throws:
PortalException

trashOrRestoreFolder

protected void trashOrRestoreFolder(DLFolder dlFolder,
                                    boolean moveToTrash)
                             throws PortalException
Throws:
PortalException

trashOrRestoreFolder

protected void trashOrRestoreFolder(DLFolder dlFolder,
                                    DLFolder childDLFolder,
                                    boolean moveToTrash,
                                    TrashEntry trashEntry)
                             throws PortalException
Throws:
PortalException

triggerRepositoryEvent

protected <T extends RepositoryModel<T>> void triggerRepositoryEvent(long repositoryId,
                                                                     Class<? extends RepositoryEventType> repositoryEventType,
                                                                     Class<T> modelClass,
                                                                     T target)
                               throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4