Class DLFileShortcutLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portlet.documentlibrary.service.base.DLFileShortcutLocalServiceBaseImpl
com.liferay.portlet.documentlibrary.service.impl.DLFileShortcutLocalServiceImpl
All Implemented Interfaces:
com.liferay.document.library.kernel.service.DLFileShortcutLocalService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.document.library.kernel.model.DLFileShortcut>, com.liferay.portal.kernel.service.PersistedModelLocalService

public class DLFileShortcutLocalServiceImpl extends DLFileShortcutLocalServiceBaseImpl
Author:
Brian Wing Shun Chan
  • Constructor Details

    • DLFileShortcutLocalServiceImpl

      public DLFileShortcutLocalServiceImpl()
  • Method Details

    • addFileShortcut

      public com.liferay.document.library.kernel.model.DLFileShortcut addFileShortcut(String externalReferenceCode, long userId, long groupId, long repositoryId, long folderId, long toFileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFileShortcutResources

      public void addFileShortcutResources(com.liferay.document.library.kernel.model.DLFileShortcut fileShortcut, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFileShortcutResources

      public void addFileShortcutResources(com.liferay.document.library.kernel.model.DLFileShortcut fileShortcut, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFileShortcutResources

      public void addFileShortcutResources(long fileShortcutId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFileShortcutResources

      public void addFileShortcutResources(long fileShortcutId, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFileShortcut

      @SystemEvent(type=1) public void deleteFileShortcut(com.liferay.document.library.kernel.model.DLFileShortcut fileShortcut) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFileShortcut

      public void deleteFileShortcut(long fileShortcutId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFileShortcut

      public void deleteFileShortcut(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFileShortcuts

      public void deleteFileShortcuts(long toFileEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFileShortcuts

      public void deleteFileShortcuts(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFileShortcuts

      public void deleteFileShortcuts(long groupId, long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteRepositoryFileShortcuts

      public void deleteRepositoryFileShortcuts(long repositoryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • disableFileShortcuts

      public void disableFileShortcuts(long toFileEntryId)
    • enableFileShortcuts

      public void enableFileShortcuts(long toFileEntryId)
    • getFileShortcut

      public com.liferay.document.library.kernel.model.DLFileShortcut getFileShortcut(long fileShortcutId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFileShortcuts

      public List<com.liferay.document.library.kernel.model.DLFileShortcut> getFileShortcuts(long toFileEntryId)
    • getFileShortcuts

      public List<com.liferay.document.library.kernel.model.DLFileShortcut> getFileShortcuts(long groupId, long folderId)
    • getFileShortcuts

      public List<com.liferay.document.library.kernel.model.DLFileShortcut> getFileShortcuts(long groupId, long folderId, boolean active, int status, int start, int end)
    • getFileShortcutsCount

      public int getFileShortcutsCount(long groupId, long folderId, boolean active, int status)
    • getGroupFileShortcuts

      public List<com.liferay.document.library.kernel.model.DLFileShortcut> getGroupFileShortcuts(long groupId)
    • rebuildTree

      public void rebuildTree(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • setTreePaths

      public void setTreePaths(long folderId, String treePath) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAsset

      public void updateAsset(long userId, com.liferay.document.library.kernel.model.DLFileShortcut fileShortcut, long[] assetCategoryIds, String[] assetTagNames) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFileShortcut

      public com.liferay.document.library.kernel.model.DLFileShortcut updateFileShortcut(long userId, long fileShortcutId, long repositoryId, long folderId, long toFileEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFileShortcuts

      public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId)
    • updateFileShortcutsActive

      public void updateFileShortcutsActive(long toFileEntryId, boolean active)
    • updateStatus

      public com.liferay.document.library.kernel.model.DLFileShortcut updateStatus(long userId, long fileShortcutId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • copyAssetTags

      protected void copyAssetTags(com.liferay.portal.kernel.repository.model.FileEntry fileEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFolderId

      protected long getFolderId(long companyId, long folderId)
    • validate

      protected void validate(com.liferay.portal.kernel.model.User user, long groupId, long folderId, long toFileEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException