com.liferay.documentlibrary.service
Class DLServiceUtil
java.lang.Object
com.liferay.documentlibrary.service.DLServiceUtil
public class DLServiceUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static void |
addDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
|
static void |
addFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
java.lang.String properties,
java.lang.String[] tagsEntries,
byte[] bytes)
|
static void |
addFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
java.lang.String properties,
java.lang.String[] tagsEntries,
java.io.File file)
|
static void |
deleteDirectory(long companyId,
java.lang.String portletId,
long repositoryId,
java.lang.String dirName)
|
static void |
deleteFile(long companyId,
java.lang.String portletId,
long repositoryId,
java.lang.String fileName)
|
static void |
deleteFile(long companyId,
java.lang.String portletId,
long repositoryId,
java.lang.String fileName,
double versionNumber)
|
static byte[] |
getFile(long companyId,
long repositoryId,
java.lang.String fileName)
|
static byte[] |
getFile(long companyId,
long repositoryId,
java.lang.String fileName,
double versionNumber)
|
static java.lang.String[] |
getFileNames(long companyId,
long repositoryId,
java.lang.String dirName)
|
static long |
getFileSize(long companyId,
long repositoryId,
java.lang.String fileName)
|
static void |
reIndex(java.lang.String[] ids)
|
static void |
updateFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
long newRepositoryId,
java.lang.String fileName)
|
static void |
updateFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
double versionNumber,
java.lang.String sourceFileName,
java.lang.String properties,
java.lang.String[] tagsEntries,
byte[] bytes)
|
static void |
updateFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
double versionNumber,
java.lang.String sourceFileName,
java.lang.String properties,
java.lang.String[] tagsEntries,
java.io.File file)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLServiceUtil
public DLServiceUtil()
addDirectory
public static void addDirectory(long companyId,
long repositoryId,
java.lang.String dirName)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
addFile
public static void addFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
java.lang.String properties,
java.lang.String[] tagsEntries,
java.io.File file)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
addFile
public static void addFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
java.lang.String properties,
java.lang.String[] tagsEntries,
byte[] bytes)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
deleteDirectory
public static void deleteDirectory(long companyId,
java.lang.String portletId,
long repositoryId,
java.lang.String dirName)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
deleteFile
public static void deleteFile(long companyId,
java.lang.String portletId,
long repositoryId,
java.lang.String fileName)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
deleteFile
public static void deleteFile(long companyId,
java.lang.String portletId,
long repositoryId,
java.lang.String fileName,
double versionNumber)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
getFile
public static byte[] getFile(long companyId,
long repositoryId,
java.lang.String fileName)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
getFile
public static byte[] getFile(long companyId,
long repositoryId,
java.lang.String fileName,
double versionNumber)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
getFileNames
public static java.lang.String[] getFileNames(long companyId,
long repositoryId,
java.lang.String dirName)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
getFileSize
public static long getFileSize(long companyId,
long repositoryId,
java.lang.String fileName)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
reIndex
public static void reIndex(java.lang.String[] ids)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
updateFile
public static void updateFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
double versionNumber,
java.lang.String sourceFileName,
java.lang.String properties,
java.lang.String[] tagsEntries,
java.io.File file)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
updateFile
public static void updateFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
java.lang.String fileName,
double versionNumber,
java.lang.String sourceFileName,
java.lang.String properties,
java.lang.String[] tagsEntries,
byte[] bytes)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException
updateFile
public static void updateFile(long companyId,
java.lang.String portletId,
long groupId,
long repositoryId,
long newRepositoryId,
java.lang.String fileName)
throws com.liferay.portal.PortalException,
java.rmi.RemoteException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException