com.liferay.documentlibrary.service.impl
Class DLLocalServiceImpl
java.lang.Object
com.liferay.documentlibrary.service.impl.DLLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.documentlibrary.service.DLLocalService
public class DLLocalServiceImpl
- extends java.lang.Object
- implements com.liferay.documentlibrary.service.DLLocalService
View Source
- Author:
- Brian Wing Shun Chan
Field Summary |
protected com.liferay.portlet.documentlibrary.service.DLFolderService |
dlFolderService
|
Method Summary |
void |
addFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
long fileEntryId,
java.lang.String properties,
java.util.Date modifiedDate,
java.lang.String[] tagsCategories,
java.lang.String[] tagsEntries,
java.io.InputStream is)
|
void |
checkRoot(long companyId)
|
java.io.InputStream |
getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName)
|
java.io.InputStream |
getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName,
double versionNumber)
|
boolean |
hasFile(long companyId,
long repositoryId,
java.lang.String fileName,
double versionNumber)
|
void |
move(java.lang.String srcDir,
java.lang.String destDir)
|
com.liferay.portal.kernel.search.Hits |
search(long companyId,
java.lang.String portletId,
long groupId,
long userId,
long[] repositoryIds,
java.lang.String keywords,
int start,
int end)
|
void |
updateFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
double versionNumber,
java.lang.String sourceFileName,
long fileEntryId,
java.lang.String properties,
java.util.Date modifiedDate,
java.lang.String[] tagsCategories,
java.lang.String[] tagsEntries,
java.io.InputStream is)
|
void |
validate(java.lang.String fileName)
|
void |
validate(java.lang.String fileName,
byte[] bytes)
|
void |
validate(java.lang.String fileName,
java.io.File file)
|
void |
validate(java.lang.String fileName,
java.io.InputStream is)
|
void |
validate(java.lang.String fileName,
java.lang.String sourceFileName,
java.io.InputStream is)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dlFolderService
@BeanReference(name="com.liferay.portlet.documentlibrary.service.DLFolderService.impl")
protected com.liferay.portlet.documentlibrary.service.DLFolderService dlFolderService
DLLocalServiceImpl
public DLLocalServiceImpl()
addFile
public void addFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
long fileEntryId,
java.lang.String properties,
java.util.Date modifiedDate,
java.lang.String[] tagsCategories,
java.lang.String[] tagsEntries,
java.io.InputStream is)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addFile
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkRoot
public void checkRoot(long companyId)
throws com.liferay.portal.SystemException
- Specified by:
checkRoot
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.SystemException
getFileAsStream
public java.io.InputStream getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getFileAsStream
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getFileAsStream
public java.io.InputStream getFileAsStream(long companyId,
long repositoryId,
java.lang.String fileName,
double versionNumber)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getFileAsStream
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasFile
public boolean hasFile(long companyId,
long repositoryId,
java.lang.String fileName,
double versionNumber)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
hasFile
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
move
public void move(java.lang.String srcDir,
java.lang.String destDir)
throws com.liferay.portal.SystemException
- Specified by:
move
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.SystemException
search
public com.liferay.portal.kernel.search.Hits search(long companyId,
java.lang.String portletId,
long groupId,
long userId,
long[] repositoryIds,
java.lang.String keywords,
int start,
int end)
throws com.liferay.portal.SystemException
- Specified by:
search
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.SystemException
updateFile
public void updateFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
double versionNumber,
java.lang.String sourceFileName,
long fileEntryId,
java.lang.String properties,
java.util.Date modifiedDate,
java.lang.String[] tagsCategories,
java.lang.String[] tagsEntries,
java.io.InputStream is)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateFile
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validate
public void validate(java.lang.String fileName,
java.io.File file)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
validate
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validate
public void validate(java.lang.String fileName,
byte[] bytes)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
validate
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validate
public void validate(java.lang.String fileName,
java.io.InputStream is)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
validate
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validate
public void validate(java.lang.String fileName)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validate
public void validate(java.lang.String fileName,
java.lang.String sourceFileName,
java.io.InputStream is)
throws com.liferay.portal.PortalException
- Specified by:
validate
in interface com.liferay.documentlibrary.service.DLLocalService
- Throws:
com.liferay.portal.PortalException