Liferay 6.2.0-ce-m3

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 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, DDMTemplateServiceBaseImpl, DDMTemplateServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
DDMTemplateServiceUtil()
           
 
Method Summary
static DDMTemplate addTemplate(long groupId, long classNameId, long classPK, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, String type, String mode, String language, String script, ServiceContext serviceContext)
           
static DDMTemplate addTemplate(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)
           
static DDMTemplate copyTemplate(long templateId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, ServiceContext serviceContext)
           
static List<DDMTemplate> copyTemplates(long classNameId, long classPK, long newClassPK, String type, ServiceContext serviceContext)
           
static void deleteTemplate(long templateId)
           
static DDMTemplate fetchTemplate(long groupId, String templateKey)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static DDMTemplateService getService()
           
static DDMTemplate getTemplate(long templateId)
           
static DDMTemplate getTemplate(long groupId, String templateKey)
           
static DDMTemplate getTemplate(long groupId, String templateKey, boolean includeGlobalTemplates)
           
static List<DDMTemplate> getTemplates(long groupId, long classNameId)
           
static List<DDMTemplate> getTemplates(long groupId, long classNameId, long classPK)
           
static List<DDMTemplate> getTemplates(long classNameId, long classPK, String type, String mode)
           
static List<DDMTemplate> search(long companyId, long[] groupIds, long[] classNameIds, long classPK, String keywords, String type, String mode, int start, int end, OrderByComparator orderByComparator)
           
static 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)
           
static List<DDMTemplate> search(long companyId, long groupId, long classNameId, long classPK, String keywords, String type, String mode, int start, int end, OrderByComparator orderByComparator)
           
static 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)
           
static int searchCount(long companyId, long[] groupIds, long[] classNameIds, long classPK, String keywords, String type, String mode)
           
static int searchCount(long companyId, long[] groupIds, long[] classNameIds, long classPK, String name, String description, String type, String mode, String language, boolean andOperator)
           
static int searchCount(long companyId, long groupId, long classNameId, long classPK, String keywords, String type, String mode)
           
static int searchCount(long companyId, long groupId, long classNameId, long classPK, 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, boolean cacheable, boolean smallImage, String smallImageURL, File smallImageFile, 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 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 static DDMTemplate addTemplate(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

copyTemplate

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

copyTemplates

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

deleteTemplate

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

fetchTemplate

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

getTemplate

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

getTemplate

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

getTemplate

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

getTemplates

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

getTemplates

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

getTemplates

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

search

public static 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 static 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 static 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 static 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 static int searchCount(long companyId,
                              long groupId,
                              long classNameId,
                              long classPK,
                              String keywords,
                              String type,
                              String mode)
                       throws SystemException
Throws:
SystemException

searchCount

public static 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 static int searchCount(long companyId,
                              long[] groupIds,
                              long[] classNameIds,
                              long classPK,
                              String keywords,
                              String type,
                              String mode)
                       throws SystemException
Throws:
SystemException

searchCount

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

getService

public static DDMTemplateService getService()

setService

public void setService(DDMTemplateService service)
Deprecated. 


Liferay 6.2.0-ce-m3