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

java.lang.Object
  extended by com.liferay.portal.service.base.PrincipalBean
      extended by com.liferay.portlet.documentlibrary.service.base.DLFolderServiceBaseImpl
          extended by com.liferay.portlet.documentlibrary.service.impl.DLFolderServiceImpl
All Implemented Interfaces:
com.liferay.portlet.documentlibrary.service.DLFolderService

public class DLFolderServiceImpl
extends DLFolderServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLFolderServiceBaseImpl
counterLocalService, counterService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryService, dlFileRankFinder, dlFileRankLocalService, dlFileRankPersistence, dlFileShortcutFinder, dlFileShortcutLocalService, dlFileShortcutPersistence, dlFileShortcutService, dlFileVersionLocalService, dlFileVersionPersistence, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, dlLocalService, dlService, layoutFinder, layoutLocalService, layoutPersistence, layoutService, lockService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence
 
Fields inherited from class com.liferay.portal.service.base.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
DLFolderServiceImpl()
           
 
Method Summary
 com.liferay.portlet.documentlibrary.model.DLFolder addFolder(long groupId, long parentFolderId, java.lang.String name, java.lang.String description, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFolder addFolder(long groupId, long parentFolderId, java.lang.String name, java.lang.String description, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
protected  void copyFolder(com.liferay.portlet.documentlibrary.model.DLFolder srcFolder, com.liferay.portlet.documentlibrary.model.DLFolder destFolder, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFolder copyFolder(long groupId, long sourceFolderId, long parentFolderId, java.lang.String name, java.lang.String description, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void deleteFolder(long folderId)
           
 void deleteFolder(long groupId, long parentFolderId, java.lang.String name)
           
 com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long folderId)
           
 com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long groupId, long parentFolderId, java.lang.String name)
           
 long getFolderId(long groupId, long parentFolderId, java.lang.String name)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(long groupId, long parentFolderId)
           
 boolean hasInheritableLock(long folderId)
           
 com.liferay.lock.model.Lock lockFolder(long folderId)
           
 com.liferay.lock.model.Lock lockFolder(long folderId, java.lang.String owner, boolean inheritable, long expirationTime)
           
 com.liferay.lock.model.Lock refreshFolderLock(java.lang.String lockUuid, long expirationTime)
           
 void reIndexSearch(long companyId)
           
 void unlockFolder(long groupId, long parentFolderId, java.lang.String name, java.lang.String lockUuid)
           
 void unlockFolder(long folderId, java.lang.String lockUuid)
           
 com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(long folderId, long parentFolderId, java.lang.String name, java.lang.String description)
           
 boolean verifyInheritableLock(long folderId, java.lang.String lockUuid)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFolderServiceBaseImpl
getCounterLocalService, getCounterService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryService, getDLFileRankFinder, getDLFileRankLocalService, getDLFileRankPersistence, getDLFileShortcutFinder, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileShortcutService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getDLLocalService, getDLService, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutService, getLockService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWebDAVPropsLocalService, getWebDAVPropsPersistence, setCounterLocalService, setCounterService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryService, setDLFileRankFinder, setDLFileRankLocalService, setDLFileRankPersistence, setDLFileShortcutFinder, setDLFileShortcutLocalService, setDLFileShortcutPersistence, setDLFileShortcutService, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setDLLocalService, setDLService, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutService, setLockService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence
 
Methods inherited from class com.liferay.portal.service.base.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

DLFolderServiceImpl

public DLFolderServiceImpl()
Method Detail

addFolder

public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(long groupId,
                                                                    long parentFolderId,
                                                                    java.lang.String name,
                                                                    java.lang.String description,
                                                                    boolean addCommunityPermissions,
                                                                    boolean addGuestPermissions)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFolder

public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(long groupId,
                                                                    long parentFolderId,
                                                                    java.lang.String name,
                                                                    java.lang.String description,
                                                                    java.lang.String[] communityPermissions,
                                                                    java.lang.String[] guestPermissions)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

copyFolder

public com.liferay.portlet.documentlibrary.model.DLFolder copyFolder(long groupId,
                                                                     long sourceFolderId,
                                                                     long parentFolderId,
                                                                     java.lang.String name,
                                                                     java.lang.String description,
                                                                     boolean addCommunityPermissions,
                                                                     boolean addGuestPermissions)
                                                              throws com.liferay.portal.PortalException,
                                                                     java.rmi.RemoteException,
                                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

deleteFolder

public void deleteFolder(long folderId)
                  throws com.liferay.portal.PortalException,
                         java.rmi.RemoteException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

deleteFolder

public void deleteFolder(long groupId,
                         long parentFolderId,
                         java.lang.String name)
                  throws com.liferay.portal.PortalException,
                         java.rmi.RemoteException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

getFolder

public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long folderId)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFolder

public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long groupId,
                                                                    long parentFolderId,
                                                                    java.lang.String name)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFolderId

public long getFolderId(long groupId,
                        long parentFolderId,
                        java.lang.String name)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFolders

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(long groupId,
                                                                                     long parentFolderId)
                                                                              throws com.liferay.portal.PortalException,
                                                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

hasInheritableLock

public boolean hasInheritableLock(long folderId)
                           throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

lockFolder

public com.liferay.lock.model.Lock lockFolder(long folderId)
                                       throws com.liferay.portal.PortalException,
                                              java.rmi.RemoteException,
                                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

lockFolder

public com.liferay.lock.model.Lock lockFolder(long folderId,
                                              java.lang.String owner,
                                              boolean inheritable,
                                              long expirationTime)
                                       throws com.liferay.portal.PortalException,
                                              java.rmi.RemoteException,
                                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

refreshFolderLock

public com.liferay.lock.model.Lock refreshFolderLock(java.lang.String lockUuid,
                                                     long expirationTime)
                                              throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

reIndexSearch

public void reIndexSearch(long companyId)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

unlockFolder

public void unlockFolder(long folderId,
                         java.lang.String lockUuid)
                  throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

unlockFolder

public void unlockFolder(long groupId,
                         long parentFolderId,
                         java.lang.String name,
                         java.lang.String lockUuid)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateFolder

public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(long folderId,
                                                                       long parentFolderId,
                                                                       java.lang.String name,
                                                                       java.lang.String description)
                                                                throws com.liferay.portal.PortalException,
                                                                       java.rmi.RemoteException,
                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException

verifyInheritableLock

public boolean verifyInheritableLock(long folderId,
                                     java.lang.String lockUuid)
                              throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException

copyFolder

protected void copyFolder(com.liferay.portlet.documentlibrary.model.DLFolder srcFolder,
                          com.liferay.portlet.documentlibrary.model.DLFolder destFolder,
                          boolean addCommunityPermissions,
                          boolean addGuestPermissions)
                   throws com.liferay.portal.PortalException,
                          java.rmi.RemoteException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
java.rmi.RemoteException
com.liferay.portal.SystemException