com.liferay.portlet.documentlibrary.service.impl
Class DLFileEntryServiceImpl

java.lang.Object
  extended bycom.liferay.portal.service.impl.PrincipalBean
      extended bycom.liferay.portlet.documentlibrary.service.impl.DLFileEntryServiceImpl
All Implemented Interfaces:
com.liferay.portlet.documentlibrary.service.DLFileEntryService

public class DLFileEntryServiceImpl
extends PrincipalBean
implements com.liferay.portlet.documentlibrary.service.DLFileEntryService

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portal.service.impl.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
DLFileEntryServiceImpl()
           
 
Method Summary
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, byte[] byteArray, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, byte[] byteArray, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteFileEntry(long folderId, java.lang.String name)
           
 void deleteFileEntry(long folderId, java.lang.String name, double version)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long folderId, java.lang.String name)
           
 void lockFileEntry(long folderId, java.lang.String name)
           
 void unlockFileEntry(long folderId, java.lang.String name)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long folderId, long newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, byte[] byteArray)
           
 
Methods inherited from class com.liferay.portal.service.impl.PrincipalBean
getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryServiceImpl

public DLFileEntryServiceImpl()
Method Detail

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          byte[] byteArray,
                                                                          boolean addCommunityPermissions,
                                                                          boolean addGuestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Specified by:
addFileEntry in interface com.liferay.portlet.documentlibrary.service.DLFileEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          byte[] byteArray,
                                                                          java.lang.String[] communityPermissions,
                                                                          java.lang.String[] guestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Specified by:
addFileEntry in interface com.liferay.portlet.documentlibrary.service.DLFileEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntry

public void deleteFileEntry(long folderId,
                            java.lang.String name)
                     throws com.liferay.portal.PortalException,
                            java.rmi.RemoteException,
                            com.liferay.portal.SystemException
Specified by:
deleteFileEntry in interface com.liferay.portlet.documentlibrary.service.DLFileEntryService
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

deleteFileEntry

public void deleteFileEntry(long folderId,
                            java.lang.String name,
                            double version)
                     throws com.liferay.portal.PortalException,
                            java.rmi.RemoteException,
                            com.liferay.portal.SystemException
Specified by:
deleteFileEntry in interface com.liferay.portlet.documentlibrary.service.DLFileEntryService
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

getFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long folderId,
                                                                          java.lang.String name)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Specified by:
getFileEntry in interface com.liferay.portlet.documentlibrary.service.DLFileEntryService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

lockFileEntry

public void lockFileEntry(long folderId,
                          java.lang.String name)
                   throws com.liferay.portal.PortalException,
                          java.rmi.RemoteException,
                          com.liferay.portal.SystemException
Specified by:
lockFileEntry in interface com.liferay.portlet.documentlibrary.service.DLFileEntryService
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

unlockFileEntry

public void unlockFileEntry(long folderId,
                            java.lang.String name)
                     throws com.liferay.portal.PortalException,
                            java.rmi.RemoteException,
                            com.liferay.portal.SystemException
Specified by:
unlockFileEntry in interface com.liferay.portlet.documentlibrary.service.DLFileEntryService
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

updateFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long folderId,
                                                                             long newFolderId,
                                                                             java.lang.String name,
                                                                             java.lang.String sourceFileName,
                                                                             java.lang.String title,
                                                                             java.lang.String description,
                                                                             java.lang.String[] tagsEntries,
                                                                             java.lang.String extraSettings,
                                                                             byte[] byteArray)
                                                                      throws com.liferay.portal.PortalException,
                                                                             java.rmi.RemoteException,
                                                                             com.liferay.portal.SystemException
Specified by:
updateFileEntry in interface com.liferay.portlet.documentlibrary.service.DLFileEntryService
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException