public class DDMTemplateLocalServiceWrapper extends java.lang.Object implements DDMTemplateLocalService, com.liferay.portal.kernel.service.ServiceWrapper<DDMTemplateLocalService>
DDMTemplateLocalService.DDMTemplateLocalService| Constructor and Description |
|---|
DDMTemplateLocalServiceWrapper() |
DDMTemplateLocalServiceWrapper(DDMTemplateLocalService ddmTemplateLocalService) |
| Modifier and Type | Method and Description |
|---|---|
DDMTemplate |
addDDMTemplate(DDMTemplate ddmTemplate)
Adds the ddm template to the database.
|
DDMTemplate |
addTemplate(long userId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
java.lang.String mode,
java.lang.String language,
java.lang.String script,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a template.
|
DDMTemplate |
addTemplate(long userId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String templateKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
java.lang.String mode,
java.lang.String language,
java.lang.String script,
boolean cacheable,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a template with additional parameters.
|
void |
addTemplateResources(DDMTemplate template,
boolean addGroupPermissions,
boolean addGuestPermissions)
Adds the resources to the template.
|
void |
addTemplateResources(DDMTemplate template,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
Adds the model resources with the permissions to the template.
|
DDMTemplate |
copyTemplate(long userId,
long sourceTemplateId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Copies the template, creating a new template with all the values
extracted from the original one.
|
DDMTemplate |
copyTemplate(long userId,
long sourceTemplateId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
java.util.List<DDMTemplate> |
copyTemplates(long userId,
long classNameId,
long sourceClassPK,
long targetClassPK,
java.lang.String type,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Copies all the templates matching the class name ID, class PK, and type.
|
DDMTemplate |
createDDMTemplate(long templateId)
Creates a new ddm template with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
DDMTemplate |
deleteDDMTemplate(DDMTemplate ddmTemplate)
Deletes the ddm template from the database.
|
DDMTemplate |
deleteDDMTemplate(long templateId)
Deletes the ddm template with the primary key from the database.
|
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
DDMTemplate |
deleteTemplate(DDMTemplate template)
Deletes the template and its resources.
|
void |
deleteTemplate(long templateId)
Deletes the template and its resources.
|
void |
deleteTemplates(long groupId)
Deletes all the templates of the group.
|
void |
deleteTemplates(long groupId,
long classNameId) |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
DDMTemplate |
fetchDDMTemplate(long templateId) |
DDMTemplate |
fetchDDMTemplateByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddm template matching the UUID and group.
|
DDMTemplate |
fetchTemplate(long templateId)
Returns the template with the primary key.
|
DDMTemplate |
fetchTemplate(long groupId,
long classNameId,
java.lang.String templateKey)
Returns the template matching the group and template key.
|
DDMTemplate |
fetchTemplate(long groupId,
long classNameId,
java.lang.String templateKey,
boolean includeAncestorTemplates)
Returns the template matching the group and template key, optionally
searching ancestor sites (that have sharing enabled) and global scoped
sites.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDMTemplate> |
getCTPersistence() |
DDMTemplate |
getDDMTemplate(long templateId)
Returns the ddm template with the primary key.
|
DDMTemplate |
getDDMTemplateByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddm template matching the UUID and group.
|
java.util.List<DDMTemplate> |
getDDMTemplates(int start,
int end)
Returns a range of all the ddm templates.
|
java.util.List<DDMTemplate> |
getDDMTemplatesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the ddm templates matching the UUID and company.
|
java.util.List<DDMTemplate> |
getDDMTemplatesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
Returns a range of ddm templates matching the UUID and company.
|
int |
getDDMTemplatesCount()
Returns the number of ddm templates.
|
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.Class<DDMTemplate> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
DDMTemplate |
getTemplate(long templateId)
Returns the template with the primary key.
|
DDMTemplate |
getTemplate(long groupId,
long classNameId,
java.lang.String templateKey)
Returns the template matching the group and template key.
|
DDMTemplate |
getTemplate(long groupId,
long classNameId,
java.lang.String templateKey,
boolean includeAncestorTemplates)
Returns the template matching the group and template key, optionally
searching ancestor sites (that have sharing enabled) and global scoped
sites.
|
DDMTemplate |
getTemplateBySmallImageId(long smallImageId) |
java.util.List<DDMTemplate> |
getTemplates(long classPK)
Returns all the templates with the class PK.
|
java.util.List<DDMTemplate> |
getTemplates(long[] groupIds,
long classNameId,
long classPK) |
java.util.List<DDMTemplate> |
getTemplates(long groupId,
long classNameId)
Returns all the templates matching the group and class name ID.
|
java.util.List<DDMTemplate> |
getTemplates(long companyId,
long[] groupIds,
long[] classNameIds,
long[] classPKs,
long resourceClassNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator) |
java.util.List<DDMTemplate> |
getTemplates(long groupId,
long classNameId,
long classPK)
Returns all the templates matching the group, class name ID, and class
PK.
|
java.util.List<DDMTemplate> |
getTemplates(long groupId,
long classNameId,
long classPK,
boolean includeAncestorTemplates) |
java.util.List<DDMTemplate> |
getTemplates(long groupId,
long classNameId,
long classPK,
java.lang.String type)
Returns all the templates matching the group, class name ID, class PK,
and type.
|
java.util.List<DDMTemplate> |
getTemplates(long groupId,
long classNameId,
long classPK,
java.lang.String type,
java.lang.String mode)
Returns all the templates matching the group, class name ID, class PK,
type, and mode.
|
java.util.List<DDMTemplate> |
getTemplatesByClassPK(long[] groupIds,
long classPK) |
java.util.List<DDMTemplate> |
getTemplatesByClassPK(long groupId,
long classPK) |
java.util.List<DDMTemplate> |
getTemplatesByClassPK(long groupId,
long classPK,
int start,
int end) |
int |
getTemplatesByClassPKCount(long groupId,
long classPK)
Returns the number of templates matching the group and class PK.
|
java.util.List<DDMTemplate> |
getTemplatesByGroupId(long groupId) |
java.util.List<DDMTemplate> |
getTemplatesByStructureClassNameId(long groupId,
long structureClassNameId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the templates matching the group,
structure class name ID, and status.
|
int |
getTemplatesByStructureClassNameIdCount(long groupId,
long structureClassNameId,
int status)
Returns the number of templates matching the group, structure class name
ID, and status, including Generic Templates.
|
int |
getTemplatesCount(long groupId)
Returns the number of templates belonging to the group.
|
int |
getTemplatesCount(long[] groupIds,
long classNameId,
long classPK)
Returns the number of templates matching the group IDs, class name ID,
and class PK.
|
int |
getTemplatesCount(long groupId,
long classNameId)
Returns the number of templates matching the group and class name ID.
|
int |
getTemplatesCount(long companyId,
long[] groupIds,
long[] classNameIds,
long[] classPKs,
long resourceClassNameId) |
int |
getTemplatesCount(long groupId,
long classNameId,
long classPK)
Returns the number of templates matching the group, class name ID, and
class PK.
|
DDMTemplateLocalService |
getWrappedService() |
void |
revertTemplate(long userId,
long templateId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
java.util.List<DDMTemplate> |
search(long companyId,
long[] groupIds,
long[] classNameIds,
long[] classPKs,
long resourceClassNameId,
java.lang.String keywords,
java.lang.String type,
java.lang.String mode,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the templates matching the group IDs,
class Name IDs, class PK, type, mode, and status, and include the
keywords on its names and descriptions.
|
java.util.List<DDMTemplate> |
search(long companyId,
long[] groupIds,
long[] classNameIds,
long[] classPKs,
long resourceClassNameId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String mode,
java.lang.String language,
int status,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the templates matching the group IDs,
class name IDs, class PK, name keyword, description keyword, type, mode,
language, and status.
|
java.util.List<DDMTemplate> |
search(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String keywords,
java.lang.String type,
java.lang.String mode,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the templates matching the group, class
name ID, class PK, type, mode, and status, and matching the keywords in
the template names and descriptions.
|
java.util.List<DDMTemplate> |
search(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String mode,
java.lang.String language,
int status,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the templates matching the group, class
name ID, class PK, name keyword, description keyword, type, mode, status,
and language.
|
int |
searchCount(long companyId,
long[] groupIds,
long[] classNameIds,
long[] classPKs,
long resourceClassNameId,
java.lang.String keywords,
java.lang.String type,
java.lang.String mode,
int status)
Returns the number of templates matching the group IDs, class name IDs,
class PK, type, mode, and status, and matching the keywords in the
template names and descriptions.
|
int |
searchCount(long companyId,
long[] groupIds,
long[] classNameIds,
long[] classPKs,
long resourceClassNameId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String mode,
java.lang.String language,
int status,
boolean andOperator)
Returns the number of templates matching the group IDs, class name IDs,
class PKs, name keyword, description keyword, type, mode, language, and
status.
|
int |
searchCount(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String keywords,
java.lang.String type,
java.lang.String mode,
int status)
Returns the number of templates matching the group, class name ID, class
PK, type, mode, and status, and matching the keywords in the template
names and descriptions.
|
int |
searchCount(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String mode,
java.lang.String language,
int status,
boolean andOperator)
Returns the number of templates matching the group, class name ID, class
PK, name keyword, description keyword, type, mode, language, and status.
|
void |
setWrappedService(DDMTemplateLocalService ddmTemplateLocalService) |
DDMTemplate |
updateDDMTemplate(DDMTemplate ddmTemplate)
Updates the ddm template in the database or adds it if it does not yet exist.
|
DDMTemplate |
updateTemplate(long userId,
long templateId,
long classPK,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
java.lang.String mode,
java.lang.String language,
java.lang.String script,
boolean cacheable,
boolean smallImage,
java.lang.String smallImageURL,
java.io.File smallImageFile,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the template matching the ID.
|
DDMTemplate |
updateTemplate(long userId,
long templateId,
long classPK,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String type,
java.lang.String mode,
java.lang.String language,
java.lang.String script,
boolean cacheable,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the template matching the primary key.
|
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDMTemplate>,R,E> updateUnsafeFunction) |
public DDMTemplateLocalServiceWrapper()
public DDMTemplateLocalServiceWrapper(DDMTemplateLocalService ddmTemplateLocalService)
public DDMTemplate addDDMTemplate(DDMTemplate ddmTemplate)
Important: Inspect DDMTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
addDDMTemplate in interface DDMTemplateLocalServiceddmTemplate - the ddm templatepublic DDMTemplate addTemplate(long userId, long groupId, long classNameId, long classPK, long resourceClassNameId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String type, java.lang.String mode, java.lang.String language, java.lang.String script, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addTemplate in interface DDMTemplateLocalServiceuserId - the primary key of the template's creator/ownergroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelclassPK - the primary key of the template's related entityresourceClassNameId - the primary key of the class name for
template's resource modelnameMap - the template's locales and localized namesdescriptionMap - the template's locales and localized descriptionstype - the template's type. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.mode - the template's mode. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.language - the template's script language. For more information,
see DDMTemplateConstants in the dynamic-data-mapping-api module.script - the template's scriptserviceContext - the service context to be applied. Can set the
UUID, creation date, modification date, guest permissions, and
group permissions for the template.PortalException - if a portal exception occurredpublic DDMTemplate addTemplate(long userId, long groupId, long classNameId, long classPK, long resourceClassNameId, java.lang.String templateKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String type, java.lang.String mode, java.lang.String language, java.lang.String script, boolean cacheable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallImageFile, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addTemplate in interface DDMTemplateLocalServiceuserId - the primary key of the template's creator/ownergroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelclassPK - the primary key of the template's related entityresourceClassNameId - the primary key of the class name for
template's resource modeltemplateKey - the unique string identifying the template
(optionally null)nameMap - the template's locales and localized namesdescriptionMap - the template's locales and localized descriptionstype - the template's type. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.mode - the template's mode. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.language - the template's script language. For more information,
see DDMTemplateConstants in the dynamic-data-mapping-api module.script - the template's scriptcacheable - whether the template is cacheablesmallImage - whether the template has a small imagesmallImageURL - the template's small image URL (optionally
null)smallImageFile - the template's small image file (optionally
null)serviceContext - the service context to be applied. Can set the
UUID, creation date, modification date, guest permissions, and
group permissions for the template.PortalException - if a portal exception occurredpublic void addTemplateResources(DDMTemplate template, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
addTemplateResources in interface DDMTemplateLocalServicetemplate - the template to add resources toaddGroupPermissions - whether to add group permissionsaddGuestPermissions - whether to add guest permissionsPortalExceptionpublic void addTemplateResources(DDMTemplate template, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
addTemplateResources in interface DDMTemplateLocalServicetemplate - the template to add resources tomodelPermissions - the model permissions to be addedPortalException - if a portal exception occurredpublic DDMTemplate copyTemplate(long userId, long sourceTemplateId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
copyTemplate in interface DDMTemplateLocalServiceuserId - the primary key of the template's creator/ownersourceTemplateId - the primary key of the template to be copiednameMap - the new template's locales and localized namesdescriptionMap - the new template's locales and localized
descriptionsserviceContext - the service context to be applied. Can set the
UUID, creation date, modification date, guest permissions, and
group permissions for the template.PortalException - if a portal exception occurredpublic DDMTemplate copyTemplate(long userId, long sourceTemplateId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
copyTemplate in interface DDMTemplateLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<DDMTemplate> copyTemplates(long userId, long classNameId, long sourceClassPK, long targetClassPK, java.lang.String type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
copyTemplates in interface DDMTemplateLocalServiceuserId - the primary key of the template's creator/ownerclassNameId - the primary key of the class name for the template's
related modelsourceClassPK - the primary key of the old template's related entitytargetClassPK - the primary key of the new template's related entitytype - the template's type. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.serviceContext - the service context to be applied. Can set the
creation date, modification date, guest permissions, and group
permissions for the new templates.PortalException - if a portal exception occurredpublic DDMTemplate createDDMTemplate(long templateId)
createDDMTemplate in interface DDMTemplateLocalServicetemplateId - the primary key for the new ddm templatepublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel in interface DDMTemplateLocalServicecreatePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic DDMTemplate deleteDDMTemplate(DDMTemplate ddmTemplate)
Important: Inspect DDMTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteDDMTemplate in interface DDMTemplateLocalServiceddmTemplate - the ddm templatepublic DDMTemplate deleteDDMTemplate(long templateId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect DDMTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteDDMTemplate in interface DDMTemplateLocalServicetemplateId - the primary key of the ddm templatePortalException - if a ddm template with the primary key could not be foundpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface DDMTemplateLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic DDMTemplate deleteTemplate(DDMTemplate template) throws com.liferay.portal.kernel.exception.PortalException
deleteTemplate in interface DDMTemplateLocalServicetemplate - the template to be deletedPortalException - if a portal exception occurredpublic void deleteTemplate(long templateId)
throws com.liferay.portal.kernel.exception.PortalException
deleteTemplate in interface DDMTemplateLocalServicetemplateId - the primary key of the template to be deletedPortalException - if a portal exception occurredpublic void deleteTemplates(long groupId)
throws com.liferay.portal.kernel.exception.PortalException
deleteTemplates in interface DDMTemplateLocalServicegroupId - the primary key of the groupPortalException - if a portal exception occurredpublic void deleteTemplates(long groupId,
long classNameId)
throws com.liferay.portal.kernel.exception.PortalException
deleteTemplates in interface DDMTemplateLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface DDMTemplateLocalServicedslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface DDMTemplateLocalServicedslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface DDMTemplateLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface DDMTemplateLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.dynamic.data.mapping.model.impl.DDMTemplateModelImpl.
dynamicQuery in interface DDMTemplateLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.dynamic.data.mapping.model.impl.DDMTemplateModelImpl.
dynamicQuery in interface DDMTemplateLocalServicedynamicQuery - 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)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface DDMTemplateLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface DDMTemplateLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic DDMTemplate fetchDDMTemplate(long templateId)
fetchDDMTemplate in interface DDMTemplateLocalServicepublic DDMTemplate fetchDDMTemplateByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchDDMTemplateByUuidAndGroupId in interface DDMTemplateLocalServiceuuid - the ddm template's UUIDgroupId - the primary key of the groupnull if a matching ddm template could not be foundpublic DDMTemplate fetchTemplate(long templateId)
fetchTemplate in interface DDMTemplateLocalServicetemplateId - the primary key of the templatenull if a matching
template could not be foundpublic DDMTemplate fetchTemplate(long groupId, long classNameId, java.lang.String templateKey)
fetchTemplate in interface DDMTemplateLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modeltemplateKey - the unique string identifying the templatenull if a matching
template could not be foundpublic DDMTemplate fetchTemplate(long groupId, long classNameId, java.lang.String templateKey, boolean includeAncestorTemplates)
This method first searches in the given group. If the template is still
not found and includeAncestorTemplates is set to
true, this method searches the group's ancestor sites (that
have sharing enabled) and lastly searches global scoped sites.
fetchTemplate in interface DDMTemplateLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modeltemplateKey - the unique string identifying the templateincludeAncestorTemplates - whether to include ancestor sites (that
have sharing enabled) and include global scoped sites in the
search in the searchnull if a matching
template could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface DDMTemplateLocalServicepublic DDMTemplate getDDMTemplate(long templateId) throws com.liferay.portal.kernel.exception.PortalException
getDDMTemplate in interface DDMTemplateLocalServicetemplateId - the primary key of the ddm templatePortalException - if a ddm template with the primary key could not be foundpublic DDMTemplate getDDMTemplateByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getDDMTemplateByUuidAndGroupId in interface DDMTemplateLocalServiceuuid - the ddm template's UUIDgroupId - the primary key of the groupPortalException - if a matching ddm template could not be foundpublic java.util.List<DDMTemplate> getDDMTemplates(int start, int end)
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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.dynamic.data.mapping.model.impl.DDMTemplateModelImpl.
getDDMTemplates in interface DDMTemplateLocalServicestart - the lower bound of the range of ddm templatesend - the upper bound of the range of ddm templates (not inclusive)public java.util.List<DDMTemplate> getDDMTemplatesByUuidAndCompanyId(java.lang.String uuid, long companyId)
getDDMTemplatesByUuidAndCompanyId in interface DDMTemplateLocalServiceuuid - the UUID of the ddm templatescompanyId - the primary key of the companypublic java.util.List<DDMTemplate> getDDMTemplatesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
getDDMTemplatesByUuidAndCompanyId in interface DDMTemplateLocalServiceuuid - the UUID of the ddm templatescompanyId - the primary key of the companystart - the lower bound of the range of ddm templatesend - the upper bound of the range of ddm templates (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public int getDDMTemplatesCount()
getDDMTemplatesCount in interface DDMTemplateLocalServicepublic com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery in interface DDMTemplateLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface DDMTemplateLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface DDMTemplateLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface DDMTemplateLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic DDMTemplate getTemplate(long templateId) throws com.liferay.portal.kernel.exception.PortalException
getTemplate in interface DDMTemplateLocalServicetemplateId - the primary key of the templatePortalException - if a portal exception occurredpublic DDMTemplate getTemplate(long groupId, long classNameId, java.lang.String templateKey) throws com.liferay.portal.kernel.exception.PortalException
getTemplate in interface DDMTemplateLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modeltemplateKey - the unique string identifying the templatePortalException - if a portal exception occurredpublic DDMTemplate getTemplate(long groupId, long classNameId, java.lang.String templateKey, boolean includeAncestorTemplates) throws com.liferay.portal.kernel.exception.PortalException
This method first searches in the group. If the template is still not
found and includeAncestorTemplates is set to
true, this method searches the group's ancestor sites (that
have sharing enabled) and lastly searches global scoped sites.
getTemplate in interface DDMTemplateLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modeltemplateKey - the unique string identifying the templateincludeAncestorTemplates - whether to include ancestor sites (that
have sharing enabled) and include global scoped sites in the
search in the searchPortalException - if a portal exception occurredpublic DDMTemplate getTemplateBySmallImageId(long smallImageId) throws com.liferay.portal.kernel.exception.PortalException
getTemplateBySmallImageId in interface DDMTemplateLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<DDMTemplate> getTemplates(long classPK)
getTemplates in interface DDMTemplateLocalServiceclassPK - the primary key of the template's related entitypublic java.util.List<DDMTemplate> getTemplates(long groupId, long classNameId)
getTemplates in interface DDMTemplateLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelpublic java.util.List<DDMTemplate> getTemplates(long groupId, long classNameId, long classPK)
getTemplates in interface DDMTemplateLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelclassPK - the primary key of the template's related entitypublic java.util.List<DDMTemplate> getTemplates(long groupId, long classNameId, long classPK, boolean includeAncestorTemplates) throws com.liferay.portal.kernel.exception.PortalException
getTemplates in interface DDMTemplateLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<DDMTemplate> getTemplates(long groupId, long classNameId, long classPK, java.lang.String type)
getTemplates in interface DDMTemplateLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelclassPK - the primary key of the template's related entitytype - the template's type. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.public java.util.List<DDMTemplate> getTemplates(long groupId, long classNameId, long classPK, java.lang.String type, java.lang.String mode)
getTemplates in interface DDMTemplateLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelclassPK - the primary key of the template's related entitytype - the template's type. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.mode - the template's mode. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.public java.util.List<DDMTemplate> getTemplates(long companyId, long[] groupIds, long[] classNameIds, long[] classPKs, long resourceClassNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
getTemplates in interface DDMTemplateLocalServicepublic java.util.List<DDMTemplate> getTemplates(long[] groupIds, long classNameId, long classPK)
getTemplates in interface DDMTemplateLocalServicepublic java.util.List<DDMTemplate> getTemplatesByClassPK(long groupId, long classPK)
getTemplatesByClassPK in interface DDMTemplateLocalServicepublic java.util.List<DDMTemplate> getTemplatesByClassPK(long groupId, long classPK, int start, int end)
getTemplatesByClassPK in interface DDMTemplateLocalServicepublic java.util.List<DDMTemplate> getTemplatesByClassPK(long[] groupIds, long classPK)
getTemplatesByClassPK in interface DDMTemplateLocalServicepublic int getTemplatesByClassPKCount(long groupId,
long classPK)
getTemplatesByClassPKCount in interface DDMTemplateLocalServicegroupId - the primary key of the groupclassPK - the primary key of the template's related entitypublic java.util.List<DDMTemplate> getTemplatesByGroupId(long groupId)
getTemplatesByGroupId in interface DDMTemplateLocalServicepublic java.util.List<DDMTemplate> getTemplatesByStructureClassNameId(long groupId, long structureClassNameId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
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.
getTemplatesByStructureClassNameId in interface DDMTemplateLocalServicegroupId - the primary key of the groupstructureClassNameId - the primary key of the class name for the
template's related structurestatus - the template's workflow status. For more information see
WorkflowConstants for constants starting with the
"STATUS_" prefix.start - the lower bound of the range of templates to returnend - the upper bound of the range of templates to return (not
inclusive)orderByComparator - the comparator to order the templates
(optionally null)public int getTemplatesByStructureClassNameIdCount(long groupId,
long structureClassNameId,
int status)
getTemplatesByStructureClassNameIdCount in interface DDMTemplateLocalServicegroupId - the primary key of the groupstructureClassNameId - the primary key of the class name for the
template's related structurestatus - the template's workflow status. For more information see
WorkflowConstants for constants starting with the
"STATUS_" prefix.public int getTemplatesCount(long groupId)
getTemplatesCount in interface DDMTemplateLocalServicegroupId - the primary key of the grouppublic int getTemplatesCount(long groupId,
long classNameId)
getTemplatesCount in interface DDMTemplateLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelpublic int getTemplatesCount(long groupId,
long classNameId,
long classPK)
getTemplatesCount in interface DDMTemplateLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelclassPK - the primary key of the template's related entitypublic int getTemplatesCount(long companyId,
long[] groupIds,
long[] classNameIds,
long[] classPKs,
long resourceClassNameId)
getTemplatesCount in interface DDMTemplateLocalServicepublic int getTemplatesCount(long[] groupIds,
long classNameId,
long classPK)
getTemplatesCount in interface DDMTemplateLocalServicegroupIds - the primary keys of the groupsclassNameId - the primary key of the class name for the template's
related modelclassPK - the primary key of the template's related entitypublic void revertTemplate(long userId,
long templateId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
revertTemplate in interface DDMTemplateLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<DDMTemplate> search(long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, java.lang.String keywords, java.lang.String type, java.lang.String mode, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
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.
search in interface DDMTemplateLocalServicecompanyId - the primary key of the template's companygroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelclassPK - the primary key of the template's related entityresourceClassNameId - the primary key of the class name for
template's resource modelkeywords - the keywords (space separated), which may occur in the
template's name or description (optionally null)type - the template's type (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.mode - the template's mode (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.status - the template's workflow status. For more information see
WorkflowConstants for constants starting with the
"STATUS_" prefix.start - the lower bound of the range of templates to returnend - the upper bound of the range of templates to return (not
inclusive)orderByComparator - the comparator to order the templates
(optionally null)public java.util.List<DDMTemplate> search(long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, java.lang.String name, java.lang.String description, java.lang.String type, java.lang.String mode, java.lang.String language, int status, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
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.
search in interface DDMTemplateLocalServicecompanyId - the primary key of the template's companygroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelclassPK - the primary key of the template's related entityresourceClassNameId - the primary key of the class name for
template's resource modelname - the name keywords (optionally null)description - the description keywords (optionally
null)type - the template's type (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.mode - the template's mode (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.language - the template's script language (optionally
null). For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.status - the template's workflow status. For more information see
WorkflowConstants for constants starting with the
"STATUS_" prefix.andOperator - whether every field must match its keywords, or just
one fieldstart - the lower bound of the range of templates to returnend - the upper bound of the range of templates to return (not
inclusive)orderByComparator - the comparator to order the templates
(optionally null)public java.util.List<DDMTemplate> search(long companyId, long[] groupIds, long[] classNameIds, long[] classPKs, long resourceClassNameId, java.lang.String keywords, java.lang.String type, java.lang.String mode, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
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.
search in interface DDMTemplateLocalServicecompanyId - the primary key of the template's companygroupIds - the primary keys of the groupsclassNameIds - the primary keys of the entity's instances the
templates are related toclassPKs - the primary keys of the template's related entitiesresourceClassNameId - the primary key of the class name for
template's resource modelkeywords - the keywords (space separated), which may occur in the
template's name or description (optionally null)type - the template's type (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.mode - the template's mode (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.status - the template's workflow status. For more information see
WorkflowConstants for constants starting with the
"STATUS_" prefix.start - the lower bound of the range of templates to returnend - the upper bound of the range of templates to return (not
inclusive)orderByComparator - the comparator to order the templates
(optionally null)public java.util.List<DDMTemplate> search(long companyId, long[] groupIds, long[] classNameIds, long[] classPKs, long resourceClassNameId, java.lang.String name, java.lang.String description, java.lang.String type, java.lang.String mode, java.lang.String language, int status, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
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.
search in interface DDMTemplateLocalServicecompanyId - the primary key of the template's companygroupIds - the primary keys of the groupsclassNameIds - the primary keys of the entity's instances the
templates are related toclassPKs - the primary keys of the template's related entitiesresourceClassNameId - the primary key of the class name for
template's resource modelname - the name keywords (optionally null)description - the description keywords (optionally
null)type - the template's type (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.mode - the template's mode (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.language - the template's script language (optionally
null). For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.status - the template's workflow status. For more information see
WorkflowConstants for constants starting with the
"STATUS_" prefix.andOperator - whether every field must match its keywords, or just
one field.start - the lower bound of the range of templates to returnend - the upper bound of the range of templates to return (not
inclusive)orderByComparator - the comparator to order the templates
(optionally null)public int searchCount(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String keywords,
java.lang.String type,
java.lang.String mode,
int status)
searchCount in interface DDMTemplateLocalServicecompanyId - the primary key of the template's companygroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelclassPK - the primary key of the template's related entityresourceClassNameId - the primary key of the class name for
template's resource modelkeywords - the keywords (space separated), which may occur in the
template's name or description (optionally null)type - the template's type (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.mode - the template's mode (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.status - the template's workflow status. For more information see
WorkflowConstants for constants starting with the
"STATUS_" prefix.public int searchCount(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String mode,
java.lang.String language,
int status,
boolean andOperator)
searchCount in interface DDMTemplateLocalServicecompanyId - the primary key of the template's companygroupId - the primary key of the groupclassNameId - the primary key of the class name for the template's
related modelclassPK - the primary key of the template's related entityresourceClassNameId - the primary key of the class name for
template's resource modelname - the name keywords (optionally null)description - the description keywords (optionally
null)type - the template's type (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.mode - the template's mode (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.language - the template's script language (optionally
null). For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.status - the template's workflow status. For more information see
WorkflowConstants for constants starting with the
"STATUS_" prefix.andOperator - whether every field must match its keywords, or just
one field.public int searchCount(long companyId,
long[] groupIds,
long[] classNameIds,
long[] classPKs,
long resourceClassNameId,
java.lang.String keywords,
java.lang.String type,
java.lang.String mode,
int status)
searchCount in interface DDMTemplateLocalServicecompanyId - the primary key of the template's companygroupIds - the primary keys of the groupsclassNameIds - the primary keys of the entity's instance the
templates are related toclassPKs - the primary keys of the template's related entitiesresourceClassNameId - the primary key of the class name for
template's resource modelkeywords - the keywords (space separated), which may occur in the
template's name or description (optionally null)type - the template's type (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.mode - the template's mode (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.status - the template's workflow status. For more information see
WorkflowConstants for constants starting with the
"STATUS_" prefix.public int searchCount(long companyId,
long[] groupIds,
long[] classNameIds,
long[] classPKs,
long resourceClassNameId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String mode,
java.lang.String language,
int status,
boolean andOperator)
searchCount in interface DDMTemplateLocalServicecompanyId - the primary key of the templates companygroupIds - the primary keys of the groupsclassNameIds - the primary keys of the entity's instance the
templates are related toclassPKs - the primary keys of the template's related entitiesresourceClassNameId - the primary key of the class name for
template's resource modelname - the name keywords (optionally null)description - the description keywords (optionally
null)type - the template's type (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.mode - the template's mode (optionally null). For more
information, see DDMTemplateConstants in the
dynamic-data-mapping-api module.language - the template's script language (optionally
null). For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.status - the template's workflow status. For more information see
WorkflowConstants for constants starting with the
"STATUS_" prefix.andOperator - whether every field must match its keywords, or just
one field.public DDMTemplate updateDDMTemplate(DDMTemplate ddmTemplate)
Important: Inspect DDMTemplateLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
updateDDMTemplate in interface DDMTemplateLocalServiceddmTemplate - the ddm templatepublic DDMTemplate updateTemplate(long userId, long templateId, long classPK, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String type, java.lang.String mode, java.lang.String language, java.lang.String script, boolean cacheable, boolean smallImage, java.lang.String smallImageURL, java.io.File smallImageFile, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateTemplate in interface DDMTemplateLocalServiceuserId - the primary key of the template's creator/ownertemplateId - the primary key of the templateclassPK - the primary key of the template's related entitynameMap - the template's new locales and localized namesdescriptionMap - the template's new locales and localized
descriptiontype - the template's type. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.mode - the template's mode. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.language - the template's script language. For more information,
see DDMTemplateConstants in the dynamic-data-mapping-api module.script - the template's scriptcacheable - whether the template is cacheablesmallImage - whether the template has a small imagesmallImageURL - the template's small image URL (optionally
null)smallImageFile - the template's small image file (optionally
null)serviceContext - the service context to be applied. Can set the
modification date.PortalException - if a portal exception occurredpublic DDMTemplate updateTemplate(long userId, long templateId, long classPK, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String type, java.lang.String mode, java.lang.String language, java.lang.String script, boolean cacheable, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateTemplate in interface DDMTemplateLocalServiceuserId - the primary key of the template's creator/ownertemplateId - the primary key of the templateclassPK - the primary key of the template's related entitynameMap - the template's new locales and localized namesdescriptionMap - the template's new locales and localized
descriptiontype - the template's type. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.mode - the template's mode. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.language - the template's script language. For more information,
see DDMTemplateConstants in the dynamic-data-mapping-api module.script - the template's scriptcacheable - whether the template is cacheableserviceContext - the service context to be applied. Can set the
modification date.PortalException - if a portal exception occurredpublic com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDMTemplate> getCTPersistence()
getCTPersistence in interface DDMTemplateLocalServicegetCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<DDMTemplate>public java.lang.Class<DDMTemplate> getModelClass()
getModelClass in interface DDMTemplateLocalServicegetModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<DDMTemplate>public <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDMTemplate>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction in interface DDMTemplateLocalServiceupdateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<DDMTemplate>E extends java.lang.Throwablepublic DDMTemplateLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<DDMTemplateLocalService>public void setWrappedService(DDMTemplateLocalService ddmTemplateLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<DDMTemplateLocalService>