Liferay 6.2.0-ce-m3

com.liferay.portlet.dynamicdatamapping.service.impl
Class DDMTemplateLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.dynamicdatamapping.service.base.DDMTemplateLocalServiceBaseImpl
          extended by com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, DDMTemplateLocalService

public class DDMTemplateLocalServiceImpl
extends DDMTemplateLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.dynamicdatamapping.service.base.DDMTemplateLocalServiceBaseImpl
counterLocalService, ddmContentLocalService, ddmContentPersistence, ddmStorageLinkLocalService, ddmStorageLinkPersistence, ddmStructureFinder, ddmStructureLinkLocalService, ddmStructureLinkPersistence, ddmStructureLocalService, ddmStructurePersistence, ddmStructureService, ddmTemplateFinder, ddmTemplateLocalService, ddmTemplatePersistence, ddmTemplateService, groupFinder, groupLocalService, groupPersistence, groupService, imageLocalService, imagePersistence, imageService, persistedModelLocalServiceRegistry, resourceLocalService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
DDMTemplateLocalServiceImpl()
           
 
Method Summary
 DDMTemplate addTemplate(long userId, long groupId, long classNameId, long classPK, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String type, String mode, String language, String script, ServiceContext serviceContext)
           
 DDMTemplate addTemplate(long userId, long groupId, long classNameId, long classPK, String templateKey, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String type, String mode, String language, String script, boolean cacheable, boolean smallImage, String smallImageURL, File smallImageFile, ServiceContext serviceContext)
           
 void addTemplateResources(DDMTemplate template, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addTemplateResources(DDMTemplate template, String[] groupPermissions, String[] guestPermissions)
           
 DDMTemplate copyTemplate(long userId, long templateId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, ServiceContext serviceContext)
           
 List<DDMTemplate> copyTemplates(long userId, long classNameId, long oldClassPK, long newClassPK, String type, ServiceContext serviceContext)
           
 void deleteTemplate(DDMTemplate template)
           
 void deleteTemplate(long templateId)
           
 void deleteTemplates(long groupId)
           
 DDMTemplate fetchTemplate(long groupId, String templateKey)
           
 DDMTemplate getTemplate(long templateId)
           
 DDMTemplate getTemplate(long groupId, String templateKey)
           
 DDMTemplate getTemplate(long groupId, String templateKey, boolean includeGlobalTemplates)
           
 List<DDMTemplate> getTemplates(long classPK)
           
 List<DDMTemplate> getTemplates(long groupId, long classNameId)
           
 List<DDMTemplate> getTemplates(long groupId, long classNameId, long classPK)
           
 List<DDMTemplate> getTemplates(long classNameId, long classPK, String type)
           
 List<DDMTemplate> getTemplates(long classNameId, long classPK, String type, String mode)
           
protected  void saveImages(boolean smallImage, long smallImageId, File smallImageFile, byte[] smallImageBytes)
           
 List<DDMTemplate> search(long companyId, long[] groupIds, long[] classNameIds, long classPK, String keywords, String type, String mode, int start, int end, OrderByComparator orderByComparator)
           
 List<DDMTemplate> search(long companyId, long[] groupIds, long[] classNameIds, long classPK, String name, String description, String type, String mode, String language, boolean andOperator, int start, int end, OrderByComparator orderByComparator)
           
 List<DDMTemplate> search(long companyId, long groupId, long classNameId, long classPK, String keywords, String type, String mode, int start, int end, OrderByComparator orderByComparator)
           
 List<DDMTemplate> search(long companyId, long groupId, long classNameId, long classPK, String name, String description, String type, String mode, String language, boolean andOperator, int start, int end, OrderByComparator orderByComparator)
           
 int searchCount(long companyId, long[] groupIds, long[] classNameIds, long classPK, String keywords, String type, String mode)
           
 int searchCount(long companyId, long[] groupIds, long[] classNameIds, long classPK, String name, String description, String type, String mode, String language, boolean andOperator)
           
 int searchCount(long companyId, long groupId, long classNameId, long classPK, String keywords, String type, String mode)
           
 int searchCount(long companyId, long groupId, long classNameId, long classPK, String name, String description, String type, String mode, String language, boolean andOperator)
           
 DDMTemplate updateTemplate(long templateId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String type, String mode, String language, String script, boolean cacheable, boolean smallImage, String smallImageURL, File smallImageFile, ServiceContext serviceContext)
           
protected  void validate(long groupId, String templateKey, Map<Locale,String> nameMap, String script, boolean smallImage, String smallImageURL, File smallImageFile, byte[] smallImageBytes)
           
protected  void validate(Map<Locale,String> nameMap, String script, boolean smallImage, String smallImageURL, File smallImageFile, byte[] smallImageBytes)
           
protected  void validateName(Map<Locale,String> nameMap)
           
 
Methods inherited from class com.liferay.portlet.dynamicdatamapping.service.base.DDMTemplateLocalServiceBaseImpl
addDDMTemplate, afterPropertiesSet, createDDMTemplate, deleteDDMTemplate, deleteDDMTemplate, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchDDMTemplate, getBeanIdentifier, getCounterLocalService, getDDMContentLocalService, getDDMContentPersistence, getDDMStorageLinkLocalService, getDDMStorageLinkPersistence, getDDMStructureFinder, getDDMStructureLinkLocalService, getDDMStructureLinkPersistence, getDDMStructureLocalService, getDDMStructurePersistence, getDDMStructureService, getDDMTemplate, getDDMTemplateByUuidAndGroupId, getDDMTemplateFinder, getDDMTemplateLocalService, getDDMTemplatePersistence, getDDMTemplates, getDDMTemplatesCount, getDDMTemplateService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getImageLocalService, getImagePersistence, getImageService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setBeanIdentifier, setCounterLocalService, setDDMContentLocalService, setDDMContentPersistence, setDDMStorageLinkLocalService, setDDMStorageLinkPersistence, setDDMStructureFinder, setDDMStructureLinkLocalService, setDDMStructureLinkPersistence, setDDMStructureLocalService, setDDMStructurePersistence, setDDMStructureService, setDDMTemplateFinder, setDDMTemplateLocalService, setDDMTemplatePersistence, setDDMTemplateService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setImageLocalService, setImagePersistence, setImageService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateDDMTemplate
 
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

DDMTemplateLocalServiceImpl

public DDMTemplateLocalServiceImpl()
Method Detail

addTemplate

public DDMTemplate addTemplate(long userId,
                               long groupId,
                               long classNameId,
                               long classPK,
                               Map<Locale,String> nameMap,
                               Map<Locale,String> descriptionMap,
                               String type,
                               String mode,
                               String language,
                               String script,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

addTemplate

public DDMTemplate addTemplate(long userId,
                               long groupId,
                               long classNameId,
                               long classPK,
                               String templateKey,
                               Map<Locale,String> nameMap,
                               Map<Locale,String> descriptionMap,
                               String type,
                               String mode,
                               String language,
                               String script,
                               boolean cacheable,
                               boolean smallImage,
                               String smallImageURL,
                               File smallImageFile,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

addTemplateResources

public void addTemplateResources(DDMTemplate template,
                                 boolean addGroupPermissions,
                                 boolean addGuestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addTemplateResources

public void addTemplateResources(DDMTemplate template,
                                 String[] groupPermissions,
                                 String[] guestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

copyTemplate

public DDMTemplate copyTemplate(long userId,
                                long templateId,
                                Map<Locale,String> nameMap,
                                Map<Locale,String> descriptionMap,
                                ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

copyTemplates

public List<DDMTemplate> copyTemplates(long userId,
                                       long classNameId,
                                       long oldClassPK,
                                       long newClassPK,
                                       String type,
                                       ServiceContext serviceContext)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

deleteTemplate

public void deleteTemplate(DDMTemplate template)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

deleteTemplate

public void deleteTemplate(long templateId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

deleteTemplates

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

fetchTemplate

public DDMTemplate fetchTemplate(long groupId,
                                 String templateKey)
                          throws SystemException
Throws:
SystemException

getTemplate

public DDMTemplate getTemplate(long templateId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getTemplate

public DDMTemplate getTemplate(long groupId,
                               String templateKey)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getTemplate

public DDMTemplate getTemplate(long groupId,
                               String templateKey,
                               boolean includeGlobalTemplates)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getTemplates

public List<DDMTemplate> getTemplates(long classPK)
                               throws SystemException
Throws:
SystemException

getTemplates

public List<DDMTemplate> getTemplates(long groupId,
                                      long classNameId)
                               throws SystemException
Throws:
SystemException

getTemplates

public List<DDMTemplate> getTemplates(long groupId,
                                      long classNameId,
                                      long classPK)
                               throws SystemException
Throws:
SystemException

getTemplates

public List<DDMTemplate> getTemplates(long classNameId,
                                      long classPK,
                                      String type)
                               throws SystemException
Throws:
SystemException

getTemplates

public List<DDMTemplate> getTemplates(long classNameId,
                                      long classPK,
                                      String type,
                                      String mode)
                               throws SystemException
Throws:
SystemException

search

public List<DDMTemplate> search(long companyId,
                                long groupId,
                                long classNameId,
                                long classPK,
                                String keywords,
                                String type,
                                String mode,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Throws:
SystemException

search

public List<DDMTemplate> search(long companyId,
                                long groupId,
                                long classNameId,
                                long classPK,
                                String name,
                                String description,
                                String type,
                                String mode,
                                String language,
                                boolean andOperator,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Throws:
SystemException

search

public List<DDMTemplate> search(long companyId,
                                long[] groupIds,
                                long[] classNameIds,
                                long classPK,
                                String keywords,
                                String type,
                                String mode,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Throws:
SystemException

search

public List<DDMTemplate> search(long companyId,
                                long[] groupIds,
                                long[] classNameIds,
                                long classPK,
                                String name,
                                String description,
                                String type,
                                String mode,
                                String language,
                                boolean andOperator,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws SystemException
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long groupId,
                       long classNameId,
                       long classPK,
                       String keywords,
                       String type,
                       String mode)
                throws SystemException
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long groupId,
                       long classNameId,
                       long classPK,
                       String name,
                       String description,
                       String type,
                       String mode,
                       String language,
                       boolean andOperator)
                throws SystemException
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long[] groupIds,
                       long[] classNameIds,
                       long classPK,
                       String keywords,
                       String type,
                       String mode)
                throws SystemException
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long[] groupIds,
                       long[] classNameIds,
                       long classPK,
                       String name,
                       String description,
                       String type,
                       String mode,
                       String language,
                       boolean andOperator)
                throws SystemException
Throws:
SystemException

updateTemplate

public DDMTemplate updateTemplate(long templateId,
                                  Map<Locale,String> nameMap,
                                  Map<Locale,String> descriptionMap,
                                  String type,
                                  String mode,
                                  String language,
                                  String script,
                                  boolean cacheable,
                                  boolean smallImage,
                                  String smallImageURL,
                                  File smallImageFile,
                                  ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

saveImages

protected void saveImages(boolean smallImage,
                          long smallImageId,
                          File smallImageFile,
                          byte[] smallImageBytes)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

validate

protected void validate(long groupId,
                        String templateKey,
                        Map<Locale,String> nameMap,
                        String script,
                        boolean smallImage,
                        String smallImageURL,
                        File smallImageFile,
                        byte[] smallImageBytes)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

validate

protected void validate(Map<Locale,String> nameMap,
                        String script,
                        boolean smallImage,
                        String smallImageURL,
                        File smallImageFile,
                        byte[] smallImageBytes)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

validateName

protected void validateName(Map<Locale,String> nameMap)
                     throws PortalException
Throws:
PortalException

Liferay 6.2.0-ce-m3