Liferay 6.2.0

com.liferay.portlet.documentlibrary.service
Interface DLAppHelperLocalService

All Superinterfaces:
BaseLocalService
All Known Implementing Classes:
DLAppHelperLocalServiceBaseImpl, DLAppHelperLocalServiceImpl, DLAppHelperLocalServiceWrapper

@ProviderType
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface DLAppHelperLocalService
extends BaseLocalService

Provides the local service interface for DLAppHelper. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
DLAppHelperLocalServiceUtil, DLAppHelperLocalServiceBaseImpl, DLAppHelperLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
abstract  void addFileEntry(long userId, FileEntry fileEntry, FileVersion fileVersion, ServiceContext serviceContext)
           
abstract  void addFolder(long userId, Folder folder, ServiceContext serviceContext)
           
abstract  void cancelCheckOut(long userId, FileEntry fileEntry, FileVersion sourceFileVersion, FileVersion destinationFileVersion, FileVersion draftFileVersion, ServiceContext serviceContext)
           
abstract  void checkAssetEntry(long userId, FileEntry fileEntry, FileVersion fileVersion)
           
abstract  void deleteFileEntry(FileEntry fileEntry)
           
abstract  void deleteFolder(Folder folder)
           
abstract  String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
abstract  void getFileAsStream(long userId, FileEntry fileEntry, boolean incrementCounter)
           
abstract  List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status)
           
abstract  List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, int status)
          Deprecated. As of 6.2.0, replaced by getFileShortcuts(long, long, boolean, int)
abstract  int getFileShortcutsCount(long groupId, long folderId, boolean active, int status)
           
abstract  int getFileShortcutsCount(long groupId, long folderId, int status)
          Deprecated. As of 6.2.0, replaced by getFileShortcutsCount(long, long, boolean, int)
abstract  List<FileEntry> getNoAssetFileEntries()
           
abstract  void moveDependentsToTrash(List<Object> dlFileEntriesAndDLFolders, long trashEntryId)
           
abstract  void moveFileEntry(FileEntry fileEntry)
           
abstract  FileEntry moveFileEntryFromTrash(long userId, FileEntry fileEntry, long newFolderId, ServiceContext serviceContext)
           
abstract  FileEntry moveFileEntryToTrash(long userId, FileEntry fileEntry)
          Moves the file entry to the recycle bin.
abstract  DLFileShortcut moveFileShortcutFromTrash(long userId, DLFileShortcut dlFileShortcut, long newFolderId, ServiceContext serviceContext)
           
abstract  DLFileShortcut moveFileShortcutToTrash(long userId, DLFileShortcut dlFileShortcut)
          Moves the file shortcut to the recycle bin.
abstract  void moveFolder(Folder folder)
           
abstract  Folder moveFolderFromTrash(long userId, Folder folder, long parentFolderId, ServiceContext serviceContext)
           
abstract  Folder moveFolderToTrash(long userId, Folder folder)
          Moves the folder to the recycle bin.
abstract  void registerDLSyncEventCallback(String event, FileEntry fileEntry)
           
abstract  void registerDLSyncEventCallback(String event, Folder folder)
           
abstract  void restoreDependentsFromTrash(List<Object> dlFileEntriesAndDLFolders, long trashEntryId)
           
abstract  void restoreFileEntryFromTrash(long userId, FileEntry fileEntry)
           
abstract  void restoreFileShortcutFromTrash(long userId, DLFileShortcut dlFileShortcut)
           
abstract  void restoreFolderFromTrash(long userId, Folder folder)
           
abstract  void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
abstract  AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long assetClassPk)
           
abstract  AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
abstract  AssetEntry updateAsset(long userId, Folder folder, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
abstract  void updateFileEntry(long userId, FileEntry fileEntry, FileVersion sourceFileVersion, FileVersion destinationFileVersion, long assetClassPk)
           
abstract  void updateFileEntry(long userId, FileEntry fileEntry, FileVersion sourceFileVersion, FileVersion destinationFileVersion, ServiceContext serviceContext)
           
abstract  void updateFolder(long userId, Folder folder, ServiceContext serviceContext)
           
abstract  void updateStatus(long userId, FileEntry fileEntry, FileVersion latestFileVersion, int oldStatus, int newStatus, Map<String,Serializable> workflowContext, ServiceContext serviceContext)
           
 

Method Detail

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addFileEntry

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

addFolder

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

cancelCheckOut

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

checkAssetEntry

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

deleteFileEntry

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

deleteFolder

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

getFileAsStream

@Transactional(propagation=SUPPORTS,
               readOnly=true)
void getFileAsStream(long userId,
                                                              FileEntry fileEntry,
                                                              boolean incrementCounter)
                     throws SystemException
Throws:
SystemException

getFileShortcuts

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<DLFileShortcut> getFileShortcuts(long groupId,
                                                                               long folderId,
                                                                               boolean active,
                                                                               int status)
                                      throws SystemException
Throws:
SystemException

getFileShortcuts

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getFileShortcutsCount(long groupId,
                                                                   long folderId,
                                                                   boolean active,
                                                                   int status)
                          throws SystemException
Throws:
SystemException

getFileShortcutsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<FileEntry> getNoAssetFileEntries()

moveDependentsToTrash

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

moveFileEntry

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

moveFileEntryFromTrash

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

moveFileEntryToTrash

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

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

moveFileShortcutToTrash

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

void moveFolder(Folder folder)
                throws SystemException
Throws:
SystemException

moveFolderFromTrash

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

moveFolderToTrash

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

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

registerDLSyncEventCallback

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

restoreDependentsFromTrash

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

restoreFileEntryFromTrash

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

restoreFileShortcutFromTrash

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

restoreFolderFromTrash

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

updateAsset

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

updateAsset

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

updateAsset

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

updateFileEntry

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

updateFileEntry

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

updateFolder

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

updateStatus

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

Liferay 6.2.0