Liferay 6.2-ce-ga5

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

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.documentlibrary.service.base.DLFileEntryTypeLocalServiceBaseImpl
          extended by com.liferay.portlet.documentlibrary.service.impl.DLFileEntryTypeLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, DLFileEntryTypeLocalService

public class DLFileEntryTypeLocalServiceImpl
extends DLFileEntryTypeLocalServiceBaseImpl

Provides the local service for accessing, adding, cascading, deleting, and updating file and folder file entry types.


Field Summary
 
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryTypeLocalServiceBaseImpl
counterLocalService, ddmStructureFinder, ddmStructureLocalService, ddmStructurePersistence, ddmStructureService, dlAppHelperLocalService, dlAppLocalService, dlAppService, dlContentLocalService, dlContentPersistence, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryMetadataLocalService, dlFileEntryMetadataPersistence, dlFileEntryPersistence, dlFileEntryService, dlFileEntryTypeFinder, dlFileEntryTypeLocalService, dlFileEntryTypePersistence, dlFileEntryTypeService, dlFileRankFinder, dlFileRankLocalService, dlFileRankPersistence, dlFileShortcutLocalService, dlFileShortcutPersistence, dlFileShortcutService, dlFileVersionLocalService, dlFileVersionPersistence, dlFileVersionService, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, dlSyncEventLocalService, dlSyncEventPersistence, persistedModelLocalServiceRegistry, resourceLocalService, userFinder, userLocalService, userPersistence, userService, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.service.BaseLocalServiceImpl
layoutPersistence
 
Constructor Summary
DLFileEntryTypeLocalServiceImpl()
           
 
Method Summary
 DLFileEntryType addFileEntryType(long userId, long groupId, String fileEntryTypeKey, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, long[] ddmStructureIds, ServiceContext serviceContext)
           
 DLFileEntryType addFileEntryType(long userId, long groupId, String name, String description, long[] ddmStructureIds, ServiceContext serviceContext)
           
protected  void addFileEntryTypeResources(DLFileEntryType dlFileEntryType, boolean addGroupPermissions, boolean addGuestPermissions)
           
protected  void addFileEntryTypeResources(DLFileEntryType dlFileEntryType, String[] groupPermissions, String[] guestPermissions)
           
 void cascadeFileEntryTypes(long userId, DLFolder dlFolder)
           
protected  void cascadeFileEntryTypes(long userId, long groupId, long folderId, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, ServiceContext serviceContext)
           
 void deleteFileEntryType(DLFileEntryType dlFileEntryType)
           
 void deleteFileEntryType(long fileEntryTypeId)
           
 void deleteFileEntryTypes(long groupId)
           
 DLFileEntryType fetchFileEntryType(long fileEntryTypeId)
           
 DLFileEntryType fetchFileEntryType(long groupId, String fileEntryTypeKey)
           
protected  void fixDDMStructureKey(String fileEntryTypeUuid, long fileEntryTypeId, long groupId)
           
 long getDefaultFileEntryTypeId(long folderId)
           
 DLFileEntryType getFileEntryType(long fileEntryTypeId)
           
 DLFileEntryType getFileEntryType(long groupId, String fileEntryTypeKey)
           
protected  List<Long> getFileEntryTypeIds(List<DLFileEntryType> dlFileEntryTypes)
           
 List<DLFileEntryType> getFileEntryTypes(long[] groupIds)
           
protected  long getFileEntryTypesPrimaryFolderId(long folderId)
           
 List<DLFileEntryType> getFolderFileEntryTypes(long[] groupIds, long folderId, boolean inherited)
           
 List<DLFileEntryType> search(long companyId, long[] groupIds, String keywords, boolean includeBasicFileEntryType, int start, int end, OrderByComparator orderByComparator)
           
 int searchCount(long companyId, long[] groupIds, String keywords, boolean includeBasicFileEntryType)
           
 void unsetFolderFileEntryTypes(long folderId)
           
protected  long updateDDMStructure(long userId, String fileEntryTypeUuid, long fileEntryTypeId, long groupId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, ServiceContext serviceContext)
           
 DLFileEntry updateFileEntryFileEntryType(DLFileEntry dlFileEntry, ServiceContext serviceContext)
           
 void updateFileEntryType(long userId, long fileEntryTypeId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, long[] ddmStructureIds, ServiceContext serviceContext)
           
 void updateFileEntryType(long userId, long fileEntryTypeId, String name, String description, long[] ddmStructureIds, ServiceContext serviceContext)
           
 void updateFolderFileEntryTypes(DLFolder dlFolder, List<Long> fileEntryTypeIds, long defaultFileEntryTypeId, ServiceContext serviceContext)
           
protected  void validate(long fileEntryTypeId, long groupId, String fileEntryTypeKey, long[] ddmStructureIds)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryTypeLocalServiceBaseImpl
addDDMStructureDLFileEntryType, addDDMStructureDLFileEntryType, addDDMStructureDLFileEntryTypes, addDDMStructureDLFileEntryTypes, addDLFileEntryType, addDLFolderDLFileEntryType, addDLFolderDLFileEntryType, addDLFolderDLFileEntryTypes, addDLFolderDLFileEntryTypes, afterPropertiesSet, clearDDMStructureDLFileEntryTypes, clearDLFolderDLFileEntryTypes, createDLFileEntryType, deleteDDMStructureDLFileEntryType, deleteDDMStructureDLFileEntryType, deleteDDMStructureDLFileEntryTypes, deleteDDMStructureDLFileEntryTypes, deleteDLFileEntryType, deleteDLFileEntryType, deleteDLFolderDLFileEntryType, deleteDLFolderDLFileEntryType, deleteDLFolderDLFileEntryTypes, deleteDLFolderDLFileEntryTypes, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchDLFileEntryType, fetchDLFileEntryTypeByUuidAndCompanyId, fetchDLFileEntryTypeByUuidAndGroupId, getBeanIdentifier, getCounterLocalService, getDDMStructureDLFileEntryTypes, getDDMStructureDLFileEntryTypes, getDDMStructureDLFileEntryTypes, getDDMStructureDLFileEntryTypesCount, getDDMStructureFinder, getDDMStructureLocalService, getDDMStructurePersistence, getDDMStructureService, getDLAppHelperLocalService, getDLAppLocalService, getDLAppService, getDLContentLocalService, getDLContentPersistence, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryMetadataLocalService, getDLFileEntryMetadataPersistence, getDLFileEntryPersistence, getDLFileEntryService, getDLFileEntryType, getDLFileEntryTypeByUuidAndCompanyId, getDLFileEntryTypeByUuidAndGroupId, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileEntryTypes, getDLFileEntryTypesCount, getDLFileEntryTypeService, getDLFileRankFinder, getDLFileRankLocalService, getDLFileRankPersistence, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileShortcutService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFileVersionService, getDLFolderDLFileEntryTypes, getDLFolderDLFileEntryTypes, getDLFolderDLFileEntryTypes, getDLFolderDLFileEntryTypesCount, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getDLSyncEventLocalService, getDLSyncEventPersistence, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, hasDDMStructureDLFileEntryType, hasDDMStructureDLFileEntryTypes, hasDLFolderDLFileEntryType, hasDLFolderDLFileEntryTypes, runSQL, setBeanIdentifier, setCounterLocalService, setDDMStructureDLFileEntryTypes, setDDMStructureFinder, setDDMStructureLocalService, setDDMStructurePersistence, setDDMStructureService, setDLAppHelperLocalService, setDLAppLocalService, setDLAppService, setDLContentLocalService, setDLContentPersistence, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryMetadataLocalService, setDLFileEntryMetadataPersistence, setDLFileEntryPersistence, setDLFileEntryService, setDLFileEntryTypeFinder, setDLFileEntryTypeLocalService, setDLFileEntryTypePersistence, setDLFileEntryTypeService, setDLFileRankFinder, setDLFileRankLocalService, setDLFileRankPersistence, setDLFileShortcutLocalService, setDLFileShortcutPersistence, setDLFileShortcutService, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFileVersionService, setDLFolderDLFileEntryTypes, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setDLSyncEventLocalService, setDLSyncEventPersistence, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateDLFileEntryType
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLayoutURL, getLayoutURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryTypeLocalServiceImpl

public DLFileEntryTypeLocalServiceImpl()
Method Detail

addFileEntryType

public DLFileEntryType addFileEntryType(long userId,
                                        long groupId,
                                        String fileEntryTypeKey,
                                        Map<Locale,String> nameMap,
                                        Map<Locale,String> descriptionMap,
                                        long[] ddmStructureIds,
                                        ServiceContext serviceContext)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

addFileEntryType

public DLFileEntryType addFileEntryType(long userId,
                                        long groupId,
                                        String name,
                                        String description,
                                        long[] ddmStructureIds,
                                        ServiceContext serviceContext)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

cascadeFileEntryTypes

public void cascadeFileEntryTypes(long userId,
                                  DLFolder dlFolder)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

deleteFileEntryType

@SystemEvent(action=1,
             type=1)
public void deleteFileEntryType(DLFileEntryType dlFileEntryType)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deleteFileEntryType

public void deleteFileEntryType(long fileEntryTypeId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deleteFileEntryTypes

public void deleteFileEntryTypes(long groupId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

fetchFileEntryType

public DLFileEntryType fetchFileEntryType(long fileEntryTypeId)
                                   throws SystemException
Throws:
SystemException

fetchFileEntryType

public DLFileEntryType fetchFileEntryType(long groupId,
                                          String fileEntryTypeKey)
                                   throws SystemException
Throws:
SystemException

getDefaultFileEntryTypeId

public long getDefaultFileEntryTypeId(long folderId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getFileEntryType

public DLFileEntryType getFileEntryType(long fileEntryTypeId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getFileEntryType

public DLFileEntryType getFileEntryType(long groupId,
                                        String fileEntryTypeKey)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getFileEntryTypes

public List<DLFileEntryType> getFileEntryTypes(long[] groupIds)
                                        throws SystemException
Throws:
SystemException

getFolderFileEntryTypes

public List<DLFileEntryType> getFolderFileEntryTypes(long[] groupIds,
                                                     long folderId,
                                                     boolean inherited)
                                              throws PortalException,
                                                     SystemException
Throws:
PortalException
SystemException

search

public List<DLFileEntryType> search(long companyId,
                                    long[] groupIds,
                                    String keywords,
                                    boolean includeBasicFileEntryType,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long[] groupIds,
                       String keywords,
                       boolean includeBasicFileEntryType)
                throws SystemException
Throws:
SystemException

unsetFolderFileEntryTypes

public void unsetFolderFileEntryTypes(long folderId)
                               throws SystemException
Throws:
SystemException

updateFileEntryFileEntryType

public DLFileEntry updateFileEntryFileEntryType(DLFileEntry dlFileEntry,
                                                ServiceContext serviceContext)
                                         throws PortalException,
                                                SystemException
Throws:
PortalException
SystemException

updateFileEntryType

public void updateFileEntryType(long userId,
                                long fileEntryTypeId,
                                Map<Locale,String> nameMap,
                                Map<Locale,String> descriptionMap,
                                long[] ddmStructureIds,
                                ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updateFileEntryType

public void updateFileEntryType(long userId,
                                long fileEntryTypeId,
                                String name,
                                String description,
                                long[] ddmStructureIds,
                                ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updateFolderFileEntryTypes

public void updateFolderFileEntryTypes(DLFolder dlFolder,
                                       List<Long> fileEntryTypeIds,
                                       long defaultFileEntryTypeId,
                                       ServiceContext serviceContext)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

addFileEntryTypeResources

protected void addFileEntryTypeResources(DLFileEntryType dlFileEntryType,
                                         boolean addGroupPermissions,
                                         boolean addGuestPermissions)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

addFileEntryTypeResources

protected void addFileEntryTypeResources(DLFileEntryType dlFileEntryType,
                                         String[] groupPermissions,
                                         String[] guestPermissions)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

cascadeFileEntryTypes

protected void cascadeFileEntryTypes(long userId,
                                     long groupId,
                                     long folderId,
                                     long defaultFileEntryTypeId,
                                     List<Long> fileEntryTypeIds,
                                     ServiceContext serviceContext)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

fixDDMStructureKey

protected void fixDDMStructureKey(String fileEntryTypeUuid,
                                  long fileEntryTypeId,
                                  long groupId)
                           throws SystemException
Throws:
SystemException

getFileEntryTypeIds

protected List<Long> getFileEntryTypeIds(List<DLFileEntryType> dlFileEntryTypes)

getFileEntryTypesPrimaryFolderId

protected long getFileEntryTypesPrimaryFolderId(long folderId)
                                         throws NoSuchFolderException,
                                                SystemException
Throws:
NoSuchFolderException
SystemException

updateDDMStructure

protected long updateDDMStructure(long userId,
                                  String fileEntryTypeUuid,
                                  long fileEntryTypeId,
                                  long groupId,
                                  Map<Locale,String> nameMap,
                                  Map<Locale,String> descriptionMap,
                                  ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

validate

protected void validate(long fileEntryTypeId,
                        long groupId,
                        String fileEntryTypeKey,
                        long[] ddmStructureIds)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

Liferay 6.2-ce-ga5