com.liferay.documentlibrary.service.impl
Class DLLocalServiceImpl
java.lang.Object
com.liferay.documentlibrary.service.impl.DLLocalServiceImpl
- All Implemented Interfaces:
- DLLocalService
public class DLLocalServiceImpl
- extends Object
- implements DLLocalService
Method Summary |
void |
addFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
boolean validateFileExtension,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
InputStream is)
|
void |
checkRoot(long companyId)
|
InputStream |
getFileAsStream(long companyId,
long repositoryId,
String fileName)
|
InputStream |
getFileAsStream(long companyId,
long repositoryId,
String fileName,
String versionNumber)
|
boolean |
hasFile(long companyId,
long repositoryId,
String fileName,
String versionNumber)
|
void |
move(String srcDir,
String destDir)
|
Hits |
search(long companyId,
String portletId,
long groupId,
long userId,
long[] repositoryIds,
String keywords,
int start,
int end)
|
void |
updateFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
String fileExtension,
boolean validateFileExtension,
String versionNumber,
String sourceFileName,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
InputStream is)
|
void |
validate(String fileName,
boolean validateFileExtension)
|
void |
validate(String fileName,
boolean validateFileExtension,
byte[] bytes)
|
void |
validate(String fileName,
boolean validateFileExtension,
File file)
|
void |
validate(String fileName,
boolean validateFileExtension,
InputStream is)
|
void |
validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
InputStream is)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
groupLocalService
@BeanReference(type=GroupLocalService.class)
protected GroupLocalService groupLocalService
dlFolderService
@BeanReference(type=DLFolderService.class)
protected DLFolderService dlFolderService
hook
@BeanReference(type=Hook.class)
protected Hook hook
DLLocalServiceImpl
public DLLocalServiceImpl()
addFile
public void addFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
boolean validateFileExtension,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
InputStream is)
throws PortalException,
SystemException
- Specified by:
addFile
in interface DLLocalService
- Throws:
PortalException
SystemException
checkRoot
public void checkRoot(long companyId)
throws SystemException
- Specified by:
checkRoot
in interface DLLocalService
- Throws:
SystemException
getFileAsStream
public InputStream getFileAsStream(long companyId,
long repositoryId,
String fileName)
throws PortalException,
SystemException
- Specified by:
getFileAsStream
in interface DLLocalService
- Throws:
PortalException
SystemException
getFileAsStream
public InputStream getFileAsStream(long companyId,
long repositoryId,
String fileName,
String versionNumber)
throws PortalException,
SystemException
- Specified by:
getFileAsStream
in interface DLLocalService
- Throws:
PortalException
SystemException
hasFile
public boolean hasFile(long companyId,
long repositoryId,
String fileName,
String versionNumber)
throws PortalException,
SystemException
- Specified by:
hasFile
in interface DLLocalService
- Throws:
PortalException
SystemException
move
public void move(String srcDir,
String destDir)
throws SystemException
- Specified by:
move
in interface DLLocalService
- Throws:
SystemException
search
public Hits search(long companyId,
String portletId,
long groupId,
long userId,
long[] repositoryIds,
String keywords,
int start,
int end)
throws SystemException
- Specified by:
search
in interface DLLocalService
- Throws:
SystemException
updateFile
public void updateFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
String fileExtension,
boolean validateFileExtension,
String versionNumber,
String sourceFileName,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
InputStream is)
throws PortalException,
SystemException
- Specified by:
updateFile
in interface DLLocalService
- Throws:
PortalException
SystemException
validate
public void validate(String fileName,
boolean validateFileExtension)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
public void validate(String fileName,
boolean validateFileExtension,
byte[] bytes)
throws PortalException,
SystemException
- Specified by:
validate
in interface DLLocalService
- Throws:
PortalException
SystemException
validate
public void validate(String fileName,
boolean validateFileExtension,
File file)
throws PortalException,
SystemException
- Specified by:
validate
in interface DLLocalService
- Throws:
PortalException
SystemException
validate
public void validate(String fileName,
boolean validateFileExtension,
InputStream is)
throws PortalException,
SystemException
- Specified by:
validate
in interface DLLocalService
- Throws:
PortalException
SystemException
validate
public void validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
InputStream is)
throws PortalException,
SystemException
- Specified by:
validate
in interface DLLocalService
- Throws:
PortalException
SystemException