com.liferay.documentlibrary.service
Interface DLLocalService
- All Known Implementing Classes:
- DLLocalServiceImpl
@Transactional(rollbackFor={PortalException.class,SystemException.class})
public interface 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,
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)
|
addFile
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
- Throws:
PortalException
SystemException
checkRoot
void checkRoot(long companyId)
throws SystemException
- Throws:
SystemException
getFileAsStream
InputStream getFileAsStream(long companyId,
long repositoryId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileAsStream
InputStream getFileAsStream(long companyId,
long repositoryId,
String fileName,
String versionNumber)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasFile
boolean hasFile(long companyId,
long repositoryId,
String fileName,
String versionNumber)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
move
void move(String srcDir,
String destDir)
throws SystemException
- Throws:
SystemException
search
Hits search(long companyId,
String portletId,
long groupId,
long userId,
long[] repositoryIds,
String keywords,
int start,
int end)
throws SystemException
- Throws:
SystemException
updateFile
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
- Throws:
PortalException
SystemException
validate
void validate(String fileName,
boolean validateFileExtension,
byte[] bytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
void validate(String fileName,
boolean validateFileExtension,
File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
void validate(String fileName,
boolean validateFileExtension,
InputStream is)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
void validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
InputStream is)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException