|
Liferay 6.2.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalServiceUtil
public class DDMTemplateLocalServiceUtil
The utility for the d d m template local service. This utility wraps com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
DDMTemplateLocalService,
com.liferay.portlet.dynamicdatamapping.service.base.DDMTemplateLocalServiceBaseImpl,
com.liferay.portlet.dynamicdatamapping.service.impl.DDMTemplateLocalServiceImpl| Constructor Summary | |
|---|---|
DDMTemplateLocalServiceUtil()
|
|
| Method Summary | |
|---|---|
static DDMTemplate |
addDDMTemplate(DDMTemplate ddmTemplate)
Adds the d d m template to the database. |
static 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)
|
static 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)
|
static void |
addTemplateResources(DDMTemplate template,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
static void |
addTemplateResources(DDMTemplate template,
String[] groupPermissions,
String[] guestPermissions)
|
static DDMTemplate |
copyTemplate(long userId,
long templateId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
ServiceContext serviceContext)
|
static List<DDMTemplate> |
copyTemplates(long userId,
long classNameId,
long oldClassPK,
long newClassPK,
String type,
ServiceContext serviceContext)
|
static DDMTemplate |
createDDMTemplate(long templateId)
Creates a new d d m template with the primary key. |
static DDMTemplate |
deleteDDMTemplate(DDMTemplate ddmTemplate)
Deletes the d d m template from the database. |
static DDMTemplate |
deleteDDMTemplate(long templateId)
Deletes the d d m template with the primary key from the database. |
static void |
deleteTemplate(DDMTemplate template)
|
static void |
deleteTemplate(long templateId)
|
static void |
deleteTemplates(long groupId)
|
static DynamicQuery |
dynamicQuery()
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query. |
static DDMTemplate |
fetchDDMTemplate(long templateId)
|
static DDMTemplate |
fetchTemplate(long groupId,
String templateKey)
|
static String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
static DDMTemplate |
getDDMTemplate(long templateId)
Returns the d d m template with the primary key. |
static DDMTemplate |
getDDMTemplateByUuidAndGroupId(String uuid,
long groupId)
Returns the d d m template with the UUID in the group. |
static List<DDMTemplate> |
getDDMTemplates(int start,
int end)
Returns a range of all the d d m templates. |
static int |
getDDMTemplatesCount()
Returns the number of d d m templates. |
static PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
static DDMTemplateLocalService |
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 classPK)
|
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)
|
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(DDMTemplateLocalService service)
Deprecated. |
static DDMTemplate |
updateDDMTemplate(DDMTemplate ddmTemplate)
Updates the d d m template in the database or adds it if it does not yet exist. |
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 |
|---|
public DDMTemplateLocalServiceUtil()
| Method Detail |
|---|
public static DDMTemplate addDDMTemplate(DDMTemplate ddmTemplate)
throws SystemException
ddmTemplate - the d d m template
SystemException - if a system exception occurredpublic static DDMTemplate createDDMTemplate(long templateId)
templateId - the primary key for the new d d m template
public static DDMTemplate deleteDDMTemplate(long templateId)
throws PortalException,
SystemException
templateId - the primary key of the d d m template
PortalException - if a d d m template with the primary key could not be found
SystemException - if a system exception occurred
public static DDMTemplate deleteDDMTemplate(DDMTemplate ddmTemplate)
throws SystemException
ddmTemplate - the d d m template
SystemException - if a system exception occurredpublic static DynamicQuery dynamicQuery()
public static List dynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery - the dynamic query
SystemException - if a system exception occurred
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDMTemplateModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)
SystemException - if a system exception occurred
public static List dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDMTemplateModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public static long dynamicQueryCount(DynamicQuery dynamicQuery)
throws SystemException
dynamicQuery - the dynamic query
SystemException - if a system exception occurred
public static DDMTemplate fetchDDMTemplate(long templateId)
throws SystemException
SystemException
public static DDMTemplate getDDMTemplate(long templateId)
throws PortalException,
SystemException
templateId - the primary key of the d d m template
PortalException - if a d d m template with the primary key could not be found
SystemException - if a system exception occurred
public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
throws PortalException,
SystemException
PortalException
SystemException
public static DDMTemplate getDDMTemplateByUuidAndGroupId(String uuid,
long groupId)
throws PortalException,
SystemException
uuid - the UUID of d d m templategroupId - the group id of the d d m template
PortalException - if a d d m template with the UUID in the group could not be found
SystemException - if a system exception occurred
public static List<DDMTemplate> getDDMTemplates(int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDMTemplateModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of d d m templatesend - the upper bound of the range of d d m templates (not inclusive)
SystemException - if a system exception occurred
public static int getDDMTemplatesCount()
throws SystemException
SystemException - if a system exception occurred
public static DDMTemplate updateDDMTemplate(DDMTemplate ddmTemplate)
throws SystemException
ddmTemplate - the d d m template
SystemException - if a system exception occurredpublic static String getBeanIdentifier()
public static void setBeanIdentifier(String beanIdentifier)
beanIdentifier - the Spring bean ID for this bean
public static 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
PortalException
SystemException
public static 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
PortalException
SystemException
public static void addTemplateResources(DDMTemplate template,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
PortalException
SystemException
public static void addTemplateResources(DDMTemplate template,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
PortalException
SystemException
public static DDMTemplate copyTemplate(long userId,
long templateId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static List<DDMTemplate> copyTemplates(long userId,
long classNameId,
long oldClassPK,
long newClassPK,
String type,
ServiceContext serviceContext)
throws PortalException,
SystemException
PortalException
SystemException
public static void deleteTemplate(DDMTemplate template)
throws PortalException,
SystemException
PortalException
SystemException
public static void deleteTemplate(long templateId)
throws PortalException,
SystemException
PortalException
SystemException
public static void deleteTemplates(long groupId)
throws PortalException,
SystemException
PortalException
SystemException
public static DDMTemplate fetchTemplate(long groupId,
String templateKey)
throws SystemException
SystemException
public static DDMTemplate getTemplate(long templateId)
throws PortalException,
SystemException
PortalException
SystemException
public static DDMTemplate getTemplate(long groupId,
String templateKey)
throws PortalException,
SystemException
PortalException
SystemException
public static DDMTemplate getTemplate(long groupId,
String templateKey,
boolean includeGlobalTemplates)
throws PortalException,
SystemException
PortalException
SystemException
public static List<DDMTemplate> getTemplates(long classPK)
throws SystemException
SystemException
public static List<DDMTemplate> getTemplates(long groupId,
long classNameId)
throws SystemException
SystemException
public static List<DDMTemplate> getTemplates(long groupId,
long classNameId,
long classPK)
throws SystemException
SystemException
public static List<DDMTemplate> getTemplates(long classNameId,
long classPK,
String type)
throws SystemException
SystemException
public static List<DDMTemplate> getTemplates(long classNameId,
long classPK,
String type,
String mode)
throws SystemException
SystemException
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
SystemException
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
SystemException
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
SystemException
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
SystemException
public static int searchCount(long companyId,
long groupId,
long classNameId,
long classPK,
String keywords,
String type,
String mode)
throws SystemException
SystemException
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
SystemException
public static int searchCount(long companyId,
long[] groupIds,
long[] classNameIds,
long classPK,
String keywords,
String type,
String mode)
throws SystemException
SystemException
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
SystemException
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
PortalException
SystemExceptionpublic static DDMTemplateLocalService getService()
public void setService(DDMTemplateLocalService service)
|
Liferay 6.2.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||