Liferay 6.2.0-ce-m1

com.liferay.portlet.documentlibrary.service
Class DLAppHelperLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.DLAppHelperLocalServiceUtil

public class DLAppHelperLocalServiceUtil
extends Object

The utility for the d l app helper local service. This utility wraps DLAppHelperLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.

This is a local service. 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:
DLAppHelperLocalService, DLAppHelperLocalServiceBaseImpl, DLAppHelperLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
DLAppHelperLocalServiceUtil()
           
 
Method Summary
static void addFileEntry(long userId, FileEntry fileEntry, FileVersion fileVersion, ServiceContext serviceContext)
           
static void addFolder(Folder folder, ServiceContext serviceContext)
           
static void cancelCheckOut(long userId, FileEntry fileEntry, FileVersion sourceFileVersion, FileVersion destinationFileVersion, FileVersion draftFileVersion, ServiceContext serviceContext)
           
static void checkAssetEntry(long userId, FileEntry fileEntry, FileVersion fileVersion)
           
static void deleteFileEntry(FileEntry fileEntry)
           
static void deleteFolder(Folder folder)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static void getFileAsStream(long userId, FileEntry fileEntry, boolean incrementCounter)
           
static List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status)
           
static List<DLFileShortcut> getFileShortcuts(long groupId, long folderId, int status)
          Deprecated. getFileShortcuts(long, long, boolean, int)
static int getFileShortcutsCount(long groupId, long folderId, boolean active, int status)
           
static int getFileShortcutsCount(long groupId, long folderId, int status)
          Deprecated. getFileShortcutsCount(long, long, boolean, int)
static List<FileEntry> getNoAssetFileEntries()
           
static DLAppHelperLocalService getService()
           
static void moveFileEntry(FileEntry fileEntry)
           
static FileEntry moveFileEntryFromTrash(long userId, FileEntry fileEntry, long newFolderId, ServiceContext serviceContext)
           
static FileEntry moveFileEntryToTrash(long userId, FileEntry fileEntry)
           
static DLFileShortcut moveFileShortcutFromTrash(long userId, DLFileShortcut dlFileShortcut, long newFolderId, ServiceContext serviceContext)
           
static DLFileShortcut moveFileShortcutToTrash(long userId, DLFileShortcut dlFileShortcut)
           
static void moveFolder(Folder folder)
           
static Folder moveFolderFromTrash(long userId, Folder folder, long parentFolderId, ServiceContext serviceContext)
           
static Folder moveFolderToTrash(long userId, Folder folder)
           
static void restoreFileEntryFromTrash(long userId, FileEntry fileEntry)
           
static void restoreFileShortcutFromTrash(long userId, DLFileShortcut dlFileShortcut)
           
static void restoreFolderFromTrash(long userId, Folder folder)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(DLAppHelperLocalService service)
          Deprecated.  
static AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long assetClassPk)
           
static AssetEntry updateAsset(long userId, FileEntry fileEntry, FileVersion fileVersion, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds)
           
static void updateFileEntry(long userId, FileEntry fileEntry, FileVersion sourceFileVersion, FileVersion destinationFileVersion, long assetClassPk)
           
static void updateFileEntry(long userId, FileEntry fileEntry, FileVersion sourceFileVersion, FileVersion destinationFileVersion, ServiceContext serviceContext)
           
static void updateFolder(Folder folder, ServiceContext serviceContext)
           
static void updateStatus(long userId, FileEntry fileEntry, FileVersion latestFileVersion, int oldStatus, int newStatus, Map<String,Serializable> workflowContext)
           
static void updateStatuses(User user, List<Object> dlFileEntriesAndDLFolders, int status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLAppHelperLocalServiceUtil

public DLAppHelperLocalServiceUtil()
Method Detail

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

addFileEntry

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

addFolder

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

cancelCheckOut

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

checkAssetEntry

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

deleteFileEntry

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

deleteFolder

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

getFileAsStream

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

getFileShortcuts

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

getFileShortcuts

public static List<DLFileShortcut> getFileShortcuts(long groupId,
                                                    long folderId,
                                                    int status)
                                             throws SystemException
Deprecated. getFileShortcuts(long, long, boolean, int)

Throws:
SystemException

getFileShortcutsCount

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

getFileShortcutsCount

public static int getFileShortcutsCount(long groupId,
                                        long folderId,
                                        int status)
                                 throws SystemException
Deprecated. getFileShortcutsCount(long, long, boolean, int)

Throws:
SystemException

getNoAssetFileEntries

public static List<FileEntry> getNoAssetFileEntries()

moveFileEntry

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

moveFileEntryFromTrash

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

moveFileEntryToTrash

public static FileEntry moveFileEntryToTrash(long userId,
                                             FileEntry fileEntry)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

moveFileShortcutFromTrash

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

moveFileShortcutToTrash

public static DLFileShortcut moveFileShortcutToTrash(long userId,
                                                     DLFileShortcut dlFileShortcut)
                                              throws PortalException,
                                                     SystemException
Throws:
PortalException
SystemException

moveFolder

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

moveFolderFromTrash

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

moveFolderToTrash

public static Folder moveFolderToTrash(long userId,
                                       Folder folder)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

restoreFileEntryFromTrash

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

restoreFileShortcutFromTrash

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

restoreFolderFromTrash

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

updateAsset

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

updateAsset

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

updateFileEntry

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

updateFileEntry

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

updateFolder

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

updateStatus

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

updateStatuses

public static void updateStatuses(User user,
                                  List<Object> dlFileEntriesAndDLFolders,
                                  int status)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getService

public static DLAppHelperLocalService getService()

setService

public void setService(DLAppHelperLocalService service)
Deprecated. 


Liferay 6.2.0-ce-m1