Liferay 6.1.2-ce-ga3

com.liferay.portlet.dynamicdatamapping.service
Class DDMTemplateServiceUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.service.DDMTemplateServiceUtil

public class DDMTemplateServiceUtil
extends Object

The utility for the d d m template remote service. This utility wraps com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateServiceImpl and is the primary access point for service operations in application layer code running on a remote server.

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:
DDMTemplateService, com.liferay.portlet.dynamicdatamapping.service.base.DDMTemplateServiceBaseImpl, com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateServiceImpl

Constructor Summary
DDMTemplateServiceUtil()
           
 
Method Summary
static DDMTemplate addTemplate(long groupId, long structureId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String type, String mode, String language, String script, ServiceContext serviceContext)
           
static List<DDMTemplate> copyTemplates(long structureId, long newStructureId, String type, ServiceContext serviceContext)
           
static void deleteTemplate(long templateId)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static DDMTemplateService getService()
           
static DDMTemplate getTemplate(long templateId)
           
static List<DDMTemplate> getTemplates(long structureId, String type, String mode)
           
static List<DDMTemplate> search(long companyId, long groupId, long structureId, String keywords, String type, String mode, int start, int end, OrderByComparator orderByComparator)
           
static 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)
           
static int searchCount(long companyId, long groupId, long structureId, String keywords, String type, String mode)
           
static int searchCount(long companyId, long groupId, long structureId, String name, String description, String type, String mode, String language, boolean andOperator)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(DDMTemplateService service)
          Deprecated.  
static DDMTemplate updateTemplate(long templateId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String type, String mode, String language, String script, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMTemplateServiceUtil

public DDMTemplateServiceUtil()
Method Detail

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addTemplate

public static 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

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

deleteTemplate

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

getTemplate

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

getTemplates

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

search

public static 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

public static 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

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

searchCount

public static 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

public static 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

getService

public static DDMTemplateService getService()

setService

public void setService(DDMTemplateService service)
Deprecated. 


Liferay 6.1.2-ce-ga3