| java.lang.Object com.liferay.documentlibrary.util.BaseHook com.liferay.documentlibrary.util.FileSystemHook
FileSystemHook | public class FileSystemHook extends BaseHook (Code) | | View Source
author: Brian Wing Shun Chan author: Sten Martinez |
Method Summary | |
public void | addDirectory(long companyId, long repositoryId, String dirName) | public void | addFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, String properties, String[] tagsEntries, InputStream is) | public void | checkRoot(long companyId) | public void | deleteDirectory(long companyId, String portletId, long repositoryId, String dirName) | public void | deleteFile(long companyId, String portletId, long repositoryId, String fileName) | public void | deleteFile(long companyId, String portletId, long repositoryId, String fileName, double versionNumber) | protected File | getCompanyDir(long companyId) | protected File | getDirNameDir(long companyId, long repositoryId, String dirName) | public InputStream | getFileAsStream(long companyId, long repositoryId, String fileName, double versionNumber) | protected File | getFileNameDir(long companyId, long repositoryId, String fileName) | protected File | getFileNameVersionFile(long companyId, long repositoryId, String fileName, double version) | public String[] | getFileNames(long companyId, long repositoryId, String dirName) | public long | getFileSize(long companyId, long repositoryId, String fileName) | protected double | getHeadVersionNumber(long companyId, long repositoryId, String fileName) | protected File | getRepositoryDir(long companyId, long repositoryId) | public boolean | hasFile(long companyId, long repositoryId, String fileName, double versionNumber) | public void | move(String srcDir, String destDir) | public void | reIndex(String[] ids) | public void | updateFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, double versionNumber, String sourceFileName, String properties, String[] tagsEntries, InputStream is) | public void | updateFile(long companyId, String portletId, long groupId, long repositoryId, long newRepositoryId, String fileName) |
FileSystemHook | public FileSystemHook()(Code) | | |
getCompanyDir | protected File getCompanyDir(long companyId)(Code) | | |
getDirNameDir | protected File getDirNameDir(long companyId, long repositoryId, String dirName)(Code) | | |
getFileNameDir | protected File getFileNameDir(long companyId, long repositoryId, String fileName)(Code) | | |
getFileNameVersionFile | protected File getFileNameVersionFile(long companyId, long repositoryId, String fileName, double version)(Code) | | |
getHeadVersionNumber | protected double getHeadVersionNumber(long companyId, long repositoryId, String fileName) throws IOException(Code) | | |
getRepositoryDir | protected File getRepositoryDir(long companyId, long repositoryId)(Code) | | |
updateFile | public void updateFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, double versionNumber, String sourceFileName, String properties, String[] tagsEntries, InputStream is) throws PortalException, SystemException(Code) | | |
Methods inherited from com.liferay.documentlibrary.util.BaseHook | abstract public void addDirectory(long companyId, long repositoryId, String dirName) throws PortalException, SystemException(Code)(Java Doc) public void addFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, String properties, String[] tagsEntries, File file) throws PortalException, SystemException(Code)(Java Doc) public void addFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, String properties, String[] tagsEntries, byte[] byteArray) throws PortalException, SystemException(Code)(Java Doc) abstract public void addFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, String properties, String[] tagsEntries, InputStream is) throws PortalException, SystemException(Code)(Java Doc) abstract public void checkRoot(long companyId) throws SystemException(Code)(Java Doc) abstract public void deleteDirectory(long companyId, String portletId, long repositoryId, String dirName) throws PortalException, SystemException(Code)(Java Doc) abstract public void deleteFile(long companyId, String portletId, long repositoryId, String fileName) throws PortalException, SystemException(Code)(Java Doc) abstract public void deleteFile(long companyId, String portletId, long repositoryId, String fileName, double versionNumber) throws PortalException, SystemException(Code)(Java Doc) public byte[] getFile(long companyId, long repositoryId, String fileName) throws PortalException, SystemException(Code)(Java Doc) public byte[] getFile(long companyId, long repositoryId, String fileName, double versionNumber) throws PortalException, SystemException(Code)(Java Doc) public InputStream getFileAsStream(long companyId, long repositoryId, String fileName) throws PortalException, SystemException(Code)(Java Doc) abstract public InputStream getFileAsStream(long companyId, long repositoryId, String fileName, double versionNumber) throws PortalException, SystemException(Code)(Java Doc) abstract public String[] getFileNames(long companyId, long repositoryId, String dirName) throws PortalException, SystemException(Code)(Java Doc) abstract public long getFileSize(long companyId, long repositoryId, String fileName) throws PortalException, SystemException(Code)(Java Doc) abstract public boolean hasFile(long companyId, long repositoryId, String fileName, double versionNumber) throws PortalException, SystemException(Code)(Java Doc) abstract public void move(String srcDir, String destDir) throws SystemException(Code)(Java Doc) abstract public void reIndex(String[] ids) throws SearchException(Code)(Java Doc) public void updateFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, double versionNumber, String sourceFileName, String properties, String[] tagsEntries, File file) throws PortalException, SystemException(Code)(Java Doc) public void updateFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, double versionNumber, String sourceFileName, String properties, String[] tagsEntries, byte[] byteArray) throws PortalException, SystemException(Code)(Java Doc) abstract public void updateFile(long companyId, String portletId, long groupId, long repositoryId, String fileName, double versionNumber, String sourceFileName, String properties, String[] tagsEntries, InputStream is) throws PortalException, SystemException(Code)(Java Doc) abstract public void updateFile(long companyId, String portletId, long groupId, long repositoryId, long newRepositoryId, String fileName) throws PortalException, SystemException(Code)(Java Doc)
|
|
|