com.liferay.documentlibrary.service
Class DLLocalServiceUtil
java.lang.Object
com.liferay.documentlibrary.service.DLLocalServiceUtil
public class DLLocalServiceUtil
- extends Object
|
Method Summary |
static void |
addDirectory(long companyId,
long repositoryId,
String dirName)
|
static void |
addFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
boolean validateFileExtension,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
InputStream is)
|
static void |
addFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
byte[] bytes)
|
static void |
addFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
File file)
|
static void |
checkRoot(long companyId)
|
static void |
deleteDirectory(long companyId,
String portletId,
long repositoryId,
String dirName)
|
static void |
deleteFile(long companyId,
String portletId,
long repositoryId,
String fileName)
|
static void |
deleteFile(long companyId,
String portletId,
long repositoryId,
String fileName,
String versionNumber)
|
static byte[] |
getFile(long companyId,
long repositoryId,
String fileName)
|
static byte[] |
getFile(long companyId,
long repositoryId,
String fileName,
String versionNumber)
|
static InputStream |
getFileAsStream(long companyId,
long repositoryId,
String fileName)
|
static InputStream |
getFileAsStream(long companyId,
long repositoryId,
String fileName,
String versionNumber)
|
static String[] |
getFileNames(long companyId,
long repositoryId,
String dirName)
|
static long |
getFileSize(long companyId,
long repositoryId,
String fileName)
|
static DLLocalService |
getService()
|
static boolean |
hasFile(long companyId,
long repositoryId,
String fileName,
String versionNumber)
|
static void |
move(String srcDir,
String destDir)
|
static Hits |
search(long companyId,
String portletId,
long groupId,
long userId,
long[] repositoryIds,
String keywords,
int start,
int end)
|
void |
setService(DLLocalService service)
|
static void |
updateFile(long companyId,
String portletId,
long groupId,
long repositoryId,
long newRepositoryId,
String fileName,
long fileEntryId)
|
static void |
updateFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
String newFileName,
boolean reindex)
|
static 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)
|
static void |
updateFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
String versionNumber,
String sourceFileName,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
byte[] bytes)
|
static void |
updateFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
String versionNumber,
String sourceFileName,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
File file)
|
static void |
validate(String fileName,
boolean validateFileExtension)
|
static void |
validate(String fileName,
boolean validateFileExtension,
byte[] bytes)
|
static void |
validate(String fileName,
boolean validateFileExtension,
File file)
|
static void |
validate(String fileName,
boolean validateFileExtension,
InputStream is)
|
static 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 |
DLLocalServiceUtil
public DLLocalServiceUtil()
addDirectory
public static void addDirectory(long companyId,
long repositoryId,
String dirName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addFile
public static 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
addFile
public static void addFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
byte[] bytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addFile
public static void addFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkRoot
public static void checkRoot(long companyId)
throws SystemException
- Throws:
SystemException
deleteDirectory
public static void deleteDirectory(long companyId,
String portletId,
long repositoryId,
String dirName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFile
public static void deleteFile(long companyId,
String portletId,
long repositoryId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteFile
public static void deleteFile(long companyId,
String portletId,
long repositoryId,
String fileName,
String versionNumber)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFile
public static byte[] getFile(long companyId,
long repositoryId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFile
public static byte[] getFile(long companyId,
long repositoryId,
String fileName,
String versionNumber)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileAsStream
public static InputStream getFileAsStream(long companyId,
long repositoryId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileAsStream
public static InputStream getFileAsStream(long companyId,
long repositoryId,
String fileName,
String versionNumber)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileNames
public static String[] getFileNames(long companyId,
long repositoryId,
String dirName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFileSize
public static long getFileSize(long companyId,
long repositoryId,
String fileName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getService
public static DLLocalService getService()
hasFile
public static boolean hasFile(long companyId,
long repositoryId,
String fileName,
String versionNumber)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
move
public static void move(String srcDir,
String destDir)
throws SystemException
- Throws:
SystemException
search
public static Hits search(long companyId,
String portletId,
long groupId,
long userId,
long[] repositoryIds,
String keywords,
int start,
int end)
throws SystemException
- Throws:
SystemException
updateFile
public static void updateFile(long companyId,
String portletId,
long groupId,
long repositoryId,
long newRepositoryId,
String fileName,
long fileEntryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFile
public static void updateFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
String newFileName,
boolean reindex)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFile
public static 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
updateFile
public static void updateFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
String versionNumber,
String sourceFileName,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
byte[] bytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFile
public static void updateFile(long companyId,
String portletId,
long groupId,
long repositoryId,
String fileName,
String versionNumber,
String sourceFileName,
long fileEntryId,
String properties,
Date modifiedDate,
ServiceContext serviceContext,
File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
public static void validate(String fileName,
boolean validateFileExtension)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
public static void validate(String fileName,
boolean validateFileExtension,
byte[] bytes)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
public static void validate(String fileName,
boolean validateFileExtension,
File file)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
public static void validate(String fileName,
boolean validateFileExtension,
InputStream is)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
validate
public static void validate(String fileName,
String fileExtension,
String sourceFileName,
boolean validateFileExtension,
InputStream is)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setService
public void setService(DLLocalService service)