@ProviderType public class DDMTemplateServiceWrapper extends java.lang.Object implements DDMTemplateService, com.liferay.portal.kernel.service.ServiceWrapper<DDMTemplateService>
DDMTemplateService
.DDMTemplateService
Constructor and Description |
---|
DDMTemplateServiceWrapper(DDMTemplateService ddmTemplateService) |
Modifier and Type | Method and Description |
---|---|
DDMTemplate |
addTemplate(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 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.
|
DDMTemplate |
copyTemplate(long templateId,
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 templateId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
java.util.List<DDMTemplate> |
copyTemplates(long classNameId,
long oldClassPK,
long resourceClassNameId,
long newClassPK,
java.lang.String type,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Copies all the templates matching the class name ID, class PK, and type.
|
void |
deleteTemplate(long templateId)
Deletes the template and its resources.
|
DDMTemplate |
fetchTemplate(long groupId,
long classNameId,
java.lang.String templateKey)
Returns the template matching the group and template key.
|
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
DDMTemplate |
getTemplate(long templateId)
Returns the template with the ID.
|
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.
|
java.util.List<DDMTemplate> |
getTemplates(long companyId,
long groupId,
long classNameId,
long resourceClassNameId,
int status) |
java.util.List<DDMTemplate> |
getTemplates(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
boolean includeAncestorTemplates,
int status) |
java.util.List<DDMTemplate> |
getTemplates(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
int status) |
java.util.List<DDMTemplate> |
getTemplates(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String type,
int status)
Returns all the templates matching the group, class name ID, class PK,
resource class name ID, and type.
|
java.util.List<DDMTemplate> |
getTemplates(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String type,
java.lang.String mode,
int status) |
java.util.List<DDMTemplate> |
getTemplatesByClassPK(long companyId,
long groupId,
long classPK,
long resourceClassNameId,
int status)
Returns all the templates matching the group, class PK, and resource
class name ID.
|
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 and
structure class name ID and all the generic templates matching the group.
|
int |
getTemplatesByStructureClassNameIdCount(long groupId,
long structureClassNameId,
int status)
Returns the number of templates matching the group and structure class
name ID plus the number of generic templates matching the group.
|
DDMTemplateService |
getWrappedService() |
void |
revertTemplate(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, and mode, and matching the keywords in
the template 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,
and language.
|
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, and mode, 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, 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, and mode, 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 PK, name keyword, description keyword, type, mode, and language.
|
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, and mode, 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, and language.
|
void |
setWrappedService(DDMTemplateService ddmTemplateService) |
DDMTemplate |
updateTemplate(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 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 ID.
|
public DDMTemplateServiceWrapper(DDMTemplateService ddmTemplateService)
public DDMTemplate addTemplate(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 DDMTemplateService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for 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. Must have the
ddmResource
attribute to check permissions. Can set
the UUID, creation date, modification date, guest permissions,
and group permissions for the template.com.liferay.portal.kernel.exception.PortalException
public DDMTemplate addTemplate(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 DDMTemplateService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for 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. Must have the
ddmResource
attribute to check permissions. Can set
the UUID, creation date, modification date, guest permissions,
and group permissions for the template.com.liferay.portal.kernel.exception.PortalException
public DDMTemplate copyTemplate(long templateId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
copyTemplate
in interface DDMTemplateService
com.liferay.portal.kernel.exception.PortalException
public DDMTemplate copyTemplate(long templateId, 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 DDMTemplateService
templateId
- 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. Must have the
ddmResource
attribute to check permissions. Can set
the UUID, creation date, modification date, guest permissions,
and group permissions for the template.com.liferay.portal.kernel.exception.PortalException
public DDMTemplate fetchTemplate(long groupId, long classNameId, java.lang.String templateKey) throws com.liferay.portal.kernel.exception.PortalException
fetchTemplate
in interface DDMTemplateService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for template's
related modeltemplateKey
- the unique string identifying the templatenull
if a matching
template could not be foundcom.liferay.portal.kernel.exception.PortalException
public DDMTemplate getTemplate(long groupId, long classNameId, java.lang.String templateKey) throws com.liferay.portal.kernel.exception.PortalException
getTemplate
in interface DDMTemplateService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for template's
related modeltemplateKey
- the unique string identifying the templatecom.liferay.portal.kernel.exception.PortalException
public 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 DDMTemplateService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for 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
searchcom.liferay.portal.kernel.exception.PortalException
public DDMTemplate getTemplate(long templateId) throws com.liferay.portal.kernel.exception.PortalException
getTemplate
in interface DDMTemplateService
templateId
- the primary key of the templatecom.liferay.portal.kernel.exception.PortalException
public DDMTemplate updateTemplate(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 DDMTemplateService
templateId
- 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.com.liferay.portal.kernel.exception.PortalException
public DDMTemplate updateTemplate(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 DDMTemplateService
templateId
- 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.com.liferay.portal.kernel.exception.PortalException
public int getTemplatesByStructureClassNameIdCount(long groupId, long structureClassNameId, int status)
getTemplatesByStructureClassNameIdCount
in interface DDMTemplateService
groupId
- the primary key of the groupstructureClassNameId
- the primary key of the class name for the
template's related structure (optionally 0
). Specify
0
to count generic templates only.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 DDMTemplateService
companyId
- the primary key of the template's companygroupId
- the primary key of the groupclassNameId
- the primary key of the class name for 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.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 DDMTemplateService
companyId
- the primary key of the template's companygroupId
- the primary key of the groupclassNameId
- the primary key of the class name for 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.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 DDMTemplateService
companyId
- 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.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 DDMTemplateService
companyId
- 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.andOperator
- whether every field must match its keywords, or just
one field.public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface DDMTemplateService
public java.util.List<DDMTemplate> copyTemplates(long classNameId, long oldClassPK, long resourceClassNameId, long newClassPK, java.lang.String type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
copyTemplates
in interface DDMTemplateService
classNameId
- the primary key of the class name for template's
related modeloldClassPK
- the primary key of the old template's related entityresourceClassNameId
- the primary key of the class name for
template's resource modelnewClassPK
- 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. Must have the
ddmResource
attribute to check permissions. Can set
the UUID, creation date, modification date, guest permissions,
and group permissions for the template.com.liferay.portal.kernel.exception.PortalException
public java.util.List<DDMTemplate> getTemplates(long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, boolean includeAncestorTemplates, int status) throws com.liferay.portal.kernel.exception.PortalException
getTemplates
in interface DDMTemplateService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<DDMTemplate> getTemplates(long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, int status)
getTemplates
in interface DDMTemplateService
public java.util.List<DDMTemplate> getTemplates(long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, java.lang.String type, int status)
getTemplates
in interface DDMTemplateService
companyId
- 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 the
template's resource modeltype
- the template's type. For more information, see
DDMTemplateConstants in the dynamic-data-mapping-api module.public java.util.List<DDMTemplate> getTemplates(long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, java.lang.String type, java.lang.String mode, int status)
getTemplates
in interface DDMTemplateService
public java.util.List<DDMTemplate> getTemplates(long companyId, long groupId, long classNameId, long resourceClassNameId, int status)
getTemplates
in interface DDMTemplateService
public java.util.List<DDMTemplate> getTemplatesByClassPK(long companyId, long groupId, long classPK, long resourceClassNameId, int status)
getTemplatesByClassPK
in interface DDMTemplateService
companyId
- the primary key of the template's companygroupId
- the primary key of the groupclassPK
- the primary key of the template's related entityresourceClassNameId
- the primary key of the class name for the
template's resource modelpublic 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 DDMTemplateService
groupId
- the primary key of the groupstructureClassNameId
- the primary key of the class name for the
template's related structure (optionally 0
). Specify
0
to return generic templates only.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 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 DDMTemplateService
companyId
- the primary key of the template's companygroupId
- the primary key of the groupclassNameId
- the primary key of the class name for 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.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 DDMTemplateService
companyId
- the primary key of the template's companygroupId
- the primary key of the groupclassNameId
- the primary key of the class name for 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.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 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 DDMTemplateService
companyId
- 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.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 DDMTemplateService
companyId
- 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.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 void deleteTemplate(long templateId) throws com.liferay.portal.kernel.exception.PortalException
deleteTemplate
in interface DDMTemplateService
templateId
- the primary key of the template to be deletedcom.liferay.portal.kernel.exception.PortalException
public void revertTemplate(long templateId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
revertTemplate
in interface DDMTemplateService
com.liferay.portal.kernel.exception.PortalException
public DDMTemplateService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDMTemplateService>
public void setWrappedService(DDMTemplateService ddmTemplateService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDMTemplateService>