001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022
023
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface DLAppHelperLocalService {
039
044
045
050 public java.lang.String getBeanIdentifier();
051
052
057 public void setBeanIdentifier(java.lang.String beanIdentifier);
058
059 public void addFileEntry(long userId,
060 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
061 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
062 com.liferay.portal.service.ServiceContext serviceContext)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException;
065
066 public void addFolder(
067 com.liferay.portal.kernel.repository.model.Folder folder,
068 com.liferay.portal.service.ServiceContext serviceContext)
069 throws com.liferay.portal.kernel.exception.SystemException;
070
071 public void deleteFileEntry(
072 com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 public void deleteFolder(
077 com.liferay.portal.kernel.repository.model.Folder folder)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082 public void getFileAsStream(long userId,
083 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
084 boolean incrementCounter)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException;
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
090 long groupId, long folderId, int status)
091 throws com.liferay.portal.kernel.exception.SystemException;
092
093 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
094 public int getFileShortcutsCount(long groupId, long folderId, int status)
095 throws com.liferay.portal.kernel.exception.SystemException;
096
097 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getNoAssetFileEntries();
099
100 public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
101 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
102 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
103 long assetClassPk)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
108 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
109 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
110 long[] assetCategoryIds, java.lang.String[] assetTagNames,
111 long[] assetLinkEntryIds)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException;
114
115 public void updateFileEntry(long userId,
116 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
117 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
118 com.liferay.portal.service.ServiceContext serviceContext)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException;
121
122 public void updateFolder(
123 com.liferay.portal.kernel.repository.model.Folder folder,
124 com.liferay.portal.service.ServiceContext serviceContext)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException;
127
128 public void updateStatus(long userId,
129 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
130 com.liferay.portal.kernel.repository.model.FileVersion latestFileVersion,
131 int status,
132 java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException;
135 }