Liferay 7.0-ce-m3

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
classNameLocalService, classNamePersistence, classNameService, counterLocalService, ddmStructureFinder, ddmStructureLocalService, ddmStructurePersistence, ddmStructureService, dlAppHelperLocalService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryService, dlFileEntryTypeFinder, dlFileEntryTypeLocalService, dlFileEntryTypePersistence, dlFileEntryTypeService, dlFileVersionLocalService, dlFileVersionPersistence, dlFileVersionService, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, persistedModelLocalServiceRegistry, resourceLocalService, userFinder, userLocalService, userPersistence, userService, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
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)
           
protected  DDMForm getDDMForm(String definition)
           
 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<DLFileEntryType> 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, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchDLFileEntryType, fetchDLFileEntryTypeByUuidAndGroupId, getActionableDynamicQuery, getBeanIdentifier, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCounterLocalService, getDDMStructureDLFileEntryTypes, getDDMStructureDLFileEntryTypes, getDDMStructureDLFileEntryTypes, getDDMStructureDLFileEntryTypesCount, getDDMStructureFinder, getDDMStructureLocalService, getDDMStructurePersistence, getDDMStructurePrimaryKeys, getDDMStructureService, getDLAppHelperLocalService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryService, getDLFileEntryType, getDLFileEntryTypeByUuidAndGroupId, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileEntryTypes, getDLFileEntryTypesByUuidAndCompanyId, getDLFileEntryTypesByUuidAndCompanyId, getDLFileEntryTypesCount, getDLFileEntryTypeService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFileVersionService, getDLFolderDLFileEntryTypes, getDLFolderDLFileEntryTypes, getDLFolderDLFileEntryTypes, getDLFolderDLFileEntryTypesCount, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderPrimaryKeys, getDLFolderService, getExportActionableDynamicQuery, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, hasDDMStructureDLFileEntryType, hasDDMStructureDLFileEntryTypes, hasDLFolderDLFileEntryType, hasDLFolderDLFileEntryTypes, initActionableDynamicQuery, runSQL, setBeanIdentifier, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCounterLocalService, setDDMStructureDLFileEntryTypes, setDDMStructureFinder, setDDMStructureLocalService, setDDMStructurePersistence, setDDMStructureService, setDLAppHelperLocalService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryService, setDLFileEntryTypeFinder, setDLFileEntryTypeLocalService, setDLFileEntryTypePersistence, setDLFileEntryTypeService, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFileVersionService, setDLFolderDLFileEntryTypes, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateDLFileEntryType
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader
 
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
Throws:
PortalException

addFileEntryType

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

cascadeFileEntryTypes

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

deleteFileEntryType

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

deleteFileEntryType

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

deleteFileEntryTypes

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

fetchFileEntryType

public DLFileEntryType fetchFileEntryType(long fileEntryTypeId)

fetchFileEntryType

public DLFileEntryType fetchFileEntryType(long groupId,
                                          String fileEntryTypeKey)

getDefaultFileEntryTypeId

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

getFileEntryType

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

getFileEntryType

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

getFileEntryTypes

public List<DLFileEntryType> getFileEntryTypes(long[] groupIds)

getFolderFileEntryTypes

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

search

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

searchCount

public int searchCount(long companyId,
                       long[] groupIds,
                       String keywords,
                       boolean includeBasicFileEntryType)

unsetFolderFileEntryTypes

public void unsetFolderFileEntryTypes(long folderId)

updateFileEntryFileEntryType

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

updateFileEntryType

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

updateFileEntryType

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

updateFolderFileEntryTypes

public void updateFolderFileEntryTypes(DLFolder dlFolder,
                                       List<Long> fileEntryTypeIds,
                                       long defaultFileEntryTypeId,
                                       ServiceContext serviceContext)

addFileEntryTypeResources

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

addFileEntryTypeResources

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

cascadeFileEntryTypes

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

fixDDMStructureKey

protected void fixDDMStructureKey(String fileEntryTypeUuid,
                                  long fileEntryTypeId,
                                  long groupId)

getDDMForm

protected DDMForm getDDMForm(String definition)
                      throws PortalException
Throws:
PortalException

getFileEntryTypeIds

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

getFileEntryTypesPrimaryFolderId

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

updateDDMStructure

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

validate

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

Liferay 7.0-ce-m3