@Deprecated
public class DDMTemplateServiceSoap
extends java.lang.Object
DDMTemplateServiceUtil
service
utility. The static methods of this class call the same methods of the
service utility. However, the signatures are different because it is
difficult for SOAP to support certain types.
ServiceBuilder follows certain rules in translating the methods. For example,
if the method in the service utility returns a java.util.List
,
that is translated to an array of
com.liferay.dynamic.data.mapping.model.DDMTemplateSoap
. If the method in the
service utility returns a
com.liferay.dynamic.data.mapping.model.DDMTemplate
, that is translated to a
com.liferay.dynamic.data.mapping.model.DDMTemplateSoap
. Methods that SOAP
cannot safely wire are skipped.
The benefits of using the SOAP utility is that it is cross platform compatible. SOAP allows different languages like Java, .NET, C++, PHP, and even Perl, to call the generated services. One drawback of SOAP is that it is slow because it needs to serialize all calls into a text format (XML).
You can see a list of services at http://localhost:8080/api/axis. Set the property axis.servlet.hosts.allowed in portal.properties to configure security.
The SOAP utility is only generated for remote services.
DDMTemplateServiceHttp
Constructor and Description |
---|
DDMTemplateServiceSoap()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DDMTemplateSoap |
addTemplate(long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String[] nameMapLanguageIds,
java.lang.String[] nameMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
java.lang.String type,
java.lang.String mode,
java.lang.String language,
java.lang.String script,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
Adds a template.
|
static DDMTemplateSoap |
copyTemplate(long templateId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
static DDMTemplateSoap |
copyTemplate(long templateId,
java.lang.String[] nameMapLanguageIds,
java.lang.String[] nameMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
Copies the template, creating a new template with all the values
extracted from the original one.
|
static DDMTemplateSoap[] |
copyTemplates(long classNameId,
long oldClassPK,
long resourceClassNameId,
long newClassPK,
java.lang.String type,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
Copies all the templates matching the class name ID, class PK, and type.
|
static void |
deleteTemplate(long templateId)
Deprecated.
Deletes the template and its resources.
|
static DDMTemplateSoap |
fetchTemplate(long groupId,
long classNameId,
java.lang.String templateKey)
Deprecated.
Returns the template matching the group and template key.
|
static DDMTemplateSoap |
getTemplate(long templateId)
Deprecated.
Returns the template with the ID.
|
static DDMTemplateSoap |
getTemplate(long groupId,
long classNameId,
java.lang.String templateKey)
Deprecated.
Returns the template matching the group and template key.
|
static DDMTemplateSoap |
getTemplate(long groupId,
long classNameId,
java.lang.String templateKey,
boolean includeAncestorTemplates)
Deprecated.
Returns the template matching the group and template key, optionally
searching ancestor sites (that have sharing enabled) and global scoped
sites.
|
static DDMTemplateSoap[] |
getTemplates(long companyId,
long[] groupIds,
long[] classNameIds,
long[] classPKs,
long resourceClassNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
Deprecated.
|
static DDMTemplateSoap[] |
getTemplates(long companyId,
long groupId,
long classNameId,
long resourceClassNameId,
int status)
Deprecated.
|
static DDMTemplateSoap[] |
getTemplates(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
boolean includeAncestorTemplates,
int status)
Deprecated.
|
static DDMTemplateSoap[] |
getTemplates(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
int status)
Deprecated.
|
static DDMTemplateSoap[] |
getTemplates(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String type,
int status)
Deprecated.
Returns all the templates matching the group, class name ID, class PK,
resource class name ID, and type.
|
static DDMTemplateSoap[] |
getTemplates(long companyId,
long groupId,
long classNameId,
long classPK,
long resourceClassNameId,
java.lang.String type,
java.lang.String mode,
int status)
Deprecated.
|
static DDMTemplateSoap[] |
getTemplatesByClassPK(long companyId,
long groupId,
long classPK,
long resourceClassNameId,
int status)
Deprecated.
Returns all the templates matching the group, class PK, and resource
class name ID.
|
static DDMTemplateSoap[] |
getTemplatesByStructureClassNameId(long groupId,
long structureClassNameId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator)
Deprecated.
Returns an ordered range of all the templates matching the group and
structure class name ID and all the generic templates matching the group.
|
static int |
getTemplatesByStructureClassNameIdCount(long groupId,
long structureClassNameId,
int status)
Deprecated.
Returns the number of templates matching the group and structure class
name ID plus the number of generic templates matching the group.
|
static int |
getTemplatesCount(long companyId,
long[] groupIds,
long[] classNameIds,
long[] classPKs,
long resourceClassNameId)
Deprecated.
|
static void |
revertTemplate(long templateId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
static DDMTemplateSoap[] |
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)
Deprecated.
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.
|
static DDMTemplateSoap[] |
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)
Deprecated.
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.
|
static DDMTemplateSoap[] |
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)
Deprecated.
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.
|
static DDMTemplateSoap[] |
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)
Deprecated.
Returns an ordered range of all the templates matching the group, class
name ID, class PK, name keyword, description keyword, type, mode, and
language.
|
static 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)
Deprecated.
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.
|
static 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)
Deprecated.
Returns the number of templates matching the group IDs, class name IDs,
class PK, name keyword, description keyword, type, mode, and language.
|
static 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)
Deprecated.
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.
|
static 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)
Deprecated.
Returns the number of templates matching the group, class name ID, class
PK, name keyword, description keyword, type, mode, and language.
|
static DDMTemplateSoap |
updateTemplate(long templateId,
long classPK,
java.lang.String[] nameMapLanguageIds,
java.lang.String[] nameMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
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)
Deprecated.
Updates the template matching the ID.
|
public static DDMTemplateSoap addTemplate(long groupId, long classNameId, long classPK, long resourceClassNameId, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, java.lang.String type, java.lang.String mode, java.lang.String language, java.lang.String script, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
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.java.rmi.RemoteException
public static DDMTemplateSoap copyTemplate(long templateId, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
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.java.rmi.RemoteException
public static DDMTemplateSoap copyTemplate(long templateId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMTemplateSoap[] copyTemplates(long classNameId, long oldClassPK, long resourceClassNameId, long newClassPK, java.lang.String type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
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.java.rmi.RemoteException
public static void deleteTemplate(long templateId) throws java.rmi.RemoteException
templateId
- the primary key of the template to be deletedjava.rmi.RemoteException
public static DDMTemplateSoap fetchTemplate(long groupId, long classNameId, java.lang.String templateKey) throws java.rmi.RemoteException
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 foundjava.rmi.RemoteException
public static DDMTemplateSoap getTemplate(long templateId) throws java.rmi.RemoteException
templateId
- the primary key of the templatejava.rmi.RemoteException
public static DDMTemplateSoap getTemplate(long groupId, long classNameId, java.lang.String templateKey) throws java.rmi.RemoteException
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for template's
related modeltemplateKey
- the unique string identifying the templatejava.rmi.RemoteException
public static DDMTemplateSoap getTemplate(long groupId, long classNameId, java.lang.String templateKey, boolean includeAncestorTemplates) throws java.rmi.RemoteException
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.
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
searchjava.rmi.RemoteException
public static DDMTemplateSoap[] getTemplates(long companyId, long groupId, long classNameId, long resourceClassNameId, int status) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMTemplateSoap[] getTemplates(long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, boolean includeAncestorTemplates, int status) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMTemplateSoap[] getTemplates(long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, int status) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMTemplateSoap[] getTemplates(long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, java.lang.String type, int status) throws java.rmi.RemoteException
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.java.rmi.RemoteException
public static DDMTemplateSoap[] getTemplates(long companyId, long groupId, long classNameId, long classPK, long resourceClassNameId, java.lang.String type, java.lang.String mode, int status) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMTemplateSoap[] getTemplates(long companyId, long[] groupIds, long[] classNameIds, long[] classPKs, long resourceClassNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMTemplateSoap[] getTemplatesByClassPK(long companyId, long groupId, long classPK, long resourceClassNameId, int status) throws java.rmi.RemoteException
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 modeljava.rmi.RemoteException
public static DDMTemplateSoap[] getTemplatesByStructureClassNameId(long groupId, long structureClassNameId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplate> orderByComparator) throws java.rmi.RemoteException
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.
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
)java.rmi.RemoteException
public static int getTemplatesByStructureClassNameIdCount(long groupId, long structureClassNameId, int status) throws java.rmi.RemoteException
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.java.rmi.RemoteException
public static int getTemplatesCount(long companyId, long[] groupIds, long[] classNameIds, long[] classPKs, long resourceClassNameId) throws java.rmi.RemoteException
java.rmi.RemoteException
public static void revertTemplate(long templateId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMTemplateSoap[] 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) throws java.rmi.RemoteException
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.
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
)java.rmi.RemoteException
public static DDMTemplateSoap[] 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) throws java.rmi.RemoteException
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.
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
)java.rmi.RemoteException
public static DDMTemplateSoap[] 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) throws java.rmi.RemoteException
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.
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
)java.rmi.RemoteException
public static DDMTemplateSoap[] 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) throws java.rmi.RemoteException
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.
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
)java.rmi.RemoteException
public static 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) throws java.rmi.RemoteException
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.java.rmi.RemoteException
public static 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) throws java.rmi.RemoteException
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.java.rmi.RemoteException
public static 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) throws java.rmi.RemoteException
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.java.rmi.RemoteException
public static 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) throws java.rmi.RemoteException
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.java.rmi.RemoteException
public static DDMTemplateSoap updateTemplate(long templateId, long classPK, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, 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 java.rmi.RemoteException
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.java.rmi.RemoteException