Liferay 6.1.10-ee-ga1

com.liferay.portlet.dynamicdatamapping.service
Interface DDMTemplateService

All Known Implementing Classes:
DDMTemplateServiceWrapper

@JSONWebService
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface DDMTemplateService

The interface for the d d m template remote service.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
DDMTemplateServiceUtil, com.liferay.portlet.dynamicdatamapping.service.base.DDMTemplateServiceBaseImpl, com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateServiceImpl

Method Summary
 DDMTemplate addTemplate(long groupId, long structureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String type, String mode, String language, String script, ServiceContext serviceContext)
           
 List<DDMTemplate> copyTemplates(long structureId, long newStructureId, String type, ServiceContext serviceContext)
           
 void deleteTemplate(long templateId)
           
 DDMTemplate getTemplate(long templateId)
           
 List<DDMTemplate> getTemplates(long structureId, String type, String mode)
           
 List<DDMTemplate> search(long companyId, long groupId, long structureId, String keywords, String type, String mode, int start, int end, OrderByComparator orderByComparator)
           
 List<DDMTemplate> search(long companyId, long groupId, long structureId, String name, String description, String type, String mode, String language, boolean andOperator, int start, int end, OrderByComparator orderByComparator)
           
 int searchCount(long companyId, long groupId, long structureId, String keywords, String type, String mode)
           
 int searchCount(long companyId, long groupId, long structureId, 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, ServiceContext serviceContext)
           
 

Method Detail

addTemplate

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

copyTemplates

List<DDMTemplate> copyTemplates(long structureId,
                                long newStructureId,
                                String type,
                                ServiceContext serviceContext)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

deleteTemplate

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

getTemplate

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DDMTemplate getTemplate(long templateId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getTemplates

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<DDMTemplate> getTemplates(long structureId,
                                                                        String type,
                                                                        String mode)
                               throws SystemException
Throws:
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<DDMTemplate> search(long companyId,
                                                                  long groupId,
                                                                  long structureId,
                                                                  String keywords,
                                                                  String type,
                                                                  String mode,
                                                                  int start,
                                                                  int end,
                                                                  OrderByComparator orderByComparator)
                         throws SystemException
Throws:
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<DDMTemplate> search(long companyId,
                                                                  long groupId,
                                                                  long structureId,
                                                                  String name,
                                                                  String description,
                                                                  String type,
                                                                  String mode,
                                                                  String language,
                                                                  boolean andOperator,
                                                                  int start,
                                                                  int end,
                                                                  OrderByComparator orderByComparator)
                         throws SystemException
Throws:
SystemException

searchCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int searchCount(long companyId,
                                                         long groupId,
                                                         long structureId,
                                                         String keywords,
                                                         String type,
                                                         String mode)
                throws SystemException
Throws:
SystemException

searchCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int searchCount(long companyId,
                                                         long groupId,
                                                         long structureId,
                                                         String name,
                                                         String description,
                                                         String type,
                                                         String mode,
                                                         String language,
                                                         boolean andOperator)
                throws SystemException
Throws:
SystemException

updateTemplate

DDMTemplate updateTemplate(long templateId,
                           Map<Locale,String> nameMap,
                           Map<Locale,String> descriptionMap,
                           String type,
                           String mode,
                           String language,
                           String script,
                           ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

Liferay 6.1.10-ee-ga1