public class DDLRecordSetLocalServiceUtil
extends java.lang.Object
com.liferay.dynamic.data.lists.service.impl.DDLRecordSetLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.DDLRecordSetLocalService
Constructor and Description |
---|
DDLRecordSetLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static DDLRecordSet |
addDDLRecordSet(DDLRecordSet ddlRecordSet)
Adds the ddl record set to the database.
|
static DDLRecordSet |
addRecordSet(long userId,
long groupId,
long ddmStructureId,
java.lang.String recordSetKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
int minDisplayRows,
int scope,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a record set referencing the DDM structure.
|
static void |
addRecordSetResources(DDLRecordSet recordSet,
boolean addGroupPermissions,
boolean addGuestPermissions)
Adds the resources to the record set.
|
static void |
addRecordSetResources(DDLRecordSet recordSet,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
Adds the model resources with the permissions to the record set.
|
static DDLRecordSet |
createDDLRecordSet(long recordSetId)
Creates a new ddl record set with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static DDLRecordSet |
deleteDDLRecordSet(DDLRecordSet ddlRecordSet)
Deletes the ddl record set from the database.
|
static DDLRecordSet |
deleteDDLRecordSet(long recordSetId)
Deletes the ddl record set with the primary key from the database.
|
static void |
deleteDDMStructureRecordSets(long ddmStructureId) |
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static void |
deleteRecordSet(DDLRecordSet recordSet)
Deletes the record set and its resources.
|
static void |
deleteRecordSet(long recordSetId)
Deletes the record set and its resources.
|
static void |
deleteRecordSet(long groupId,
java.lang.String recordSetKey)
Deletes the record set and its resources.
|
static void |
deleteRecordSets(long groupId)
Deletes all the record sets matching the group.
|
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <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.
|
static <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.
|
static <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.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static 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.
|
static DDLRecordSet |
fetchDDLRecordSet(long recordSetId) |
static DDLRecordSet |
fetchDDLRecordSetByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddl record set matching the UUID and group.
|
static DDLRecordSet |
fetchRecordSet(long recordSetId)
Returns the record set with the ID.
|
static DDLRecordSet |
fetchRecordSet(long groupId,
java.lang.String recordSetKey)
Returns the record set matching the group and record set key.
|
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static DDLRecordSet |
getDDLRecordSet(long recordSetId)
Returns the ddl record set with the primary key.
|
static DDLRecordSet |
getDDLRecordSetByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddl record set matching the UUID and group.
|
static java.util.List<DDLRecordSet> |
getDDLRecordSets(int start,
int end)
Returns a range of all the ddl record sets.
|
static java.util.List<DDLRecordSet> |
getDDLRecordSetsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the ddl record sets matching the UUID and company.
|
static java.util.List<DDLRecordSet> |
getDDLRecordSetsByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet> orderByComparator)
Returns a range of ddl record sets matching the UUID and company.
|
static int |
getDDLRecordSetsCount()
Returns the number of ddl record sets.
|
static java.util.List<DDLRecordSet> |
getDDMStructureRecordSets(long ddmStructureId) |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static DDLRecordSet |
getRecordSet(long recordSetId)
Returns the record set with the ID.
|
static DDLRecordSet |
getRecordSet(long groupId,
java.lang.String recordSetKey)
Returns the record set matching the group and record set key.
|
static DDLRecordSet |
getRecordSet(java.lang.String uuid,
long recordSetId) |
static java.util.List<DDLRecordSet> |
getRecordSets(long groupId)
Returns all the record sets belonging the group.
|
static java.util.List<DDLRecordSet> |
getRecordSets(long groupId,
int start,
int end) |
static int |
getRecordSetsCount(long groupId)
Returns the number of all the record sets belonging the group.
|
static int |
getRecordSetsCount(long groupId,
long ddmStructureId,
boolean andOperator)
Returns the number of all the record sets belonging the group and
associated with the DDMStructure.
|
static com.liferay.dynamic.data.mapping.storage.DDMFormValues |
getRecordSetSettingsDDMFormValues(DDLRecordSet recordSet)
Returns the record set's settings as a DDMFormValues object.
|
static DDLRecordSetSettings |
getRecordSetSettingsModel(DDLRecordSet recordSet)
Returns the record set's settings.
|
static DDLRecordSetLocalService |
getService() |
static java.util.List<DDLRecordSet> |
search(long companyId,
long groupId,
java.lang.String keywords,
int scope,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet> orderByComparator)
Returns a range of all record sets matching the parameters, including a
keywords parameter for matching string values to the record set's name or
description.
|
static java.util.List<DDLRecordSet> |
search(long companyId,
long groupId,
java.lang.String name,
java.lang.String description,
int scope,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet> orderByComparator)
Returns an ordered range of record sets.
|
static int |
searchCount(long companyId,
long groupId,
java.lang.String keywords,
int scope)
Returns the number of record sets matching the parameters.
|
static int |
searchCount(long companyId,
long groupId,
java.lang.String name,
java.lang.String description,
int scope,
boolean andOperator)
Returns the number of all record sets matching the parameters.
|
static DDLRecordSet |
updateDDLRecordSet(DDLRecordSet ddlRecordSet)
Updates the ddl record set in the database or adds it if it does not yet exist.
|
static DDLRecordSet |
updateMinDisplayRows(long recordSetId,
int minDisplayRows,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the number of minimum rows to display for the record set.
|
static DDLRecordSet |
updateRecordSet(long recordSetId,
com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues)
Updates the the record set's settings.
|
static DDLRecordSet |
updateRecordSet(long recordSetId,
long ddmStructureId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
int minDisplayRows,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the DDM structure, name, description, and minimum number of
display rows for the record set matching the record set ID.
|
static DDLRecordSet |
updateRecordSet(long groupId,
long ddmStructureId,
java.lang.String recordSetKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
int minDisplayRows,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the DDM strucutre, name, description, and minimum number of
display rows for the record set matching the record set key and group ID.
|
public static DDLRecordSet addDDLRecordSet(DDLRecordSet ddlRecordSet)
Important: Inspect DDLRecordSetLocalServiceImpl 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.
ddlRecordSet
- the ddl record setpublic static DDLRecordSet addRecordSet(long userId, long groupId, long ddmStructureId, java.lang.String recordSetKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, int minDisplayRows, int scope, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
userId
- the primary key of the record set's creator/ownergroupId
- the primary key of the record set's groupddmStructureId
- the primary key of the record set's DDM structurerecordSetKey
- the record set's mnemonic primary key. If
null
, the record set key will be autogenerated.nameMap
- the record set's locales and localized namesdescriptionMap
- the record set's locales and localized
descriptionsminDisplayRows
- the record set's minimum number of rows to be
displayed in spreadsheet view.scope
- the record set's scope, used to scope the record set's
data. For more information search
DDLRecordSetConstants
in the
dynamic.data.lists.api
module for constants starting
with the "SCOPE_" prefix.serviceContext
- the service context to be applied. Can set the
UUID, guest permissions, and group permissions for the record
set.PortalException
- if a portal exception occurredpublic static void addRecordSetResources(DDLRecordSet recordSet, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
recordSet
- the record setaddGroupPermissions
- whether to add group permissionsaddGuestPermissions
- whether to add guest permissionsPortalException
- if a portal exception occurredpublic static void addRecordSetResources(DDLRecordSet recordSet, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
recordSet
- the record setmodelPermissions
- the model permissionsPortalException
- if a portal exception occurredpublic static DDLRecordSet createDDLRecordSet(long recordSetId)
recordSetId
- the primary key for the new ddl record setpublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static DDLRecordSet deleteDDLRecordSet(DDLRecordSet ddlRecordSet)
Important: Inspect DDLRecordSetLocalServiceImpl 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.
ddlRecordSet
- the ddl record setpublic static DDLRecordSet deleteDDLRecordSet(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect DDLRecordSetLocalServiceImpl 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.
recordSetId
- the primary key of the ddl record setPortalException
- if a ddl record set with the primary key could not be foundpublic static void deleteDDMStructureRecordSets(long ddmStructureId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static void deleteRecordSet(DDLRecordSet recordSet) throws com.liferay.portal.kernel.exception.PortalException
recordSet
- the record set to be deletedPortalException
- if a portal exception occurredpublic static void deleteRecordSet(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
recordSetId
- the primary key of the record set to be deletedPortalException
- if a portal exception occurredpublic static void deleteRecordSet(long groupId, java.lang.String recordSetKey) throws com.liferay.portal.kernel.exception.PortalException
This operation updates the record set matching the group and recordSetKey.
groupId
- the primary key of the record set's grouprecordSetKey
- the record set's mnemonic primary keyPortalException
- if a portal exception occurredpublic static void deleteRecordSets(long groupId) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the record set's groupPortalException
- if a portal exception occurredpublic static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <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.lists.model.impl.DDLRecordSetModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <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.lists.model.impl.DDLRecordSetModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static DDLRecordSet fetchDDLRecordSet(long recordSetId)
public static DDLRecordSet fetchDDLRecordSetByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the ddl record set's UUIDgroupId
- the primary key of the groupnull
if a matching ddl record set could not be foundpublic static DDLRecordSet fetchRecordSet(long recordSetId)
recordSetId
- the primary key of the record setnull
if a matching
record set could not be foundpublic static DDLRecordSet fetchRecordSet(long groupId, java.lang.String recordSetKey)
groupId
- the primary key of the record set's grouprecordSetKey
- the record set's mnemonic primary keynull
if a matching record set could not be foundpublic static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static DDLRecordSet getDDLRecordSet(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
recordSetId
- the primary key of the ddl record setPortalException
- if a ddl record set with the primary key could not be foundpublic static DDLRecordSet getDDLRecordSetByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the ddl record set's UUIDgroupId
- the primary key of the groupPortalException
- if a matching ddl record set could not be foundpublic static java.util.List<DDLRecordSet> getDDLRecordSets(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.lists.model.impl.DDLRecordSetModelImpl
.
start
- the lower bound of the range of ddl record setsend
- the upper bound of the range of ddl record sets (not inclusive)public static java.util.List<DDLRecordSet> getDDLRecordSetsByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the ddl record setscompanyId
- the primary key of the companypublic static java.util.List<DDLRecordSet> getDDLRecordSetsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet> orderByComparator)
uuid
- the UUID of the ddl record setscompanyId
- the primary key of the companystart
- the lower bound of the range of ddl record setsend
- the upper bound of the range of ddl record sets (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getDDLRecordSetsCount()
public static java.util.List<DDLRecordSet> getDDMStructureRecordSets(long ddmStructureId)
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static DDLRecordSet getRecordSet(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
recordSetId
- the primary key of the record setPortalException
- if the the matching record set could not be foundpublic static DDLRecordSet getRecordSet(long groupId, java.lang.String recordSetKey) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the record set's grouprecordSetKey
- the record set's mnemonic primary keyPortalException
- if the the matching record set could not be foundpublic static DDLRecordSet getRecordSet(java.lang.String uuid, long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<DDLRecordSet> getRecordSets(long groupId)
public static java.util.List<DDLRecordSet> getRecordSets(long groupId, int start, int end)
public static int getRecordSetsCount(long groupId)
groupId
- the primary key of the record set's grouppublic static int getRecordSetsCount(long groupId, long ddmStructureId, boolean andOperator)
groupId
- the primary key of the record set's grouppublic static com.liferay.dynamic.data.mapping.storage.DDMFormValues getRecordSetSettingsDDMFormValues(DDLRecordSet recordSet) throws com.liferay.portal.kernel.exception.PortalException
DDMFormValues
in the
dynamic.data.mapping.api
module.recordSet
- the record setPortalException
- if a portal exception occurredpublic static DDLRecordSetSettings getRecordSetSettingsModel(DDLRecordSet recordSet) throws com.liferay.portal.kernel.exception.PortalException
recordSet
- the record setPortalException
- if a portal exception occurredgetRecordSetSettingsDDMFormValues(DDLRecordSet)
public static java.util.List<DDLRecordSet> search(long companyId, long groupId, java.lang.String keywords, int scope, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet> 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.
companyId
- the primary key of the record set's companygroupId
- the primary key of the record set's groupkeywords
- the keywords (space separated) to look for and match in
the record set name or description (optionally
null
). If the keywords value is not
null
, the search uses the OR operator in connecting
query criteria; otherwise it uses the AND operator.scope
- the record set's scope. A constant used to scope the record
set's data. For more information search the
dynamic.data.lists.api
module's
DDLRecordSetConstants
class for constants prefixed
with "SCOPE_".start
- the lower bound of the range of record sets to returnend
- the upper bound of the range of recor sets to return (not
inclusive)orderByComparator
- the comparator to order the record setspublic static java.util.List<DDLRecordSet> search(long companyId, long groupId, java.lang.String name, java.lang.String description, int scope, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet> orderByComparator)
true
, only record
sets with a matching name, description, and scope are returned. If the
and operator is set to false
, only one parameter of name,
description, and scope is needed to return matching record sets.
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 record set's companygroupId
- the primary key of the record set's groupname
- the name keywords (space separated, optionally
null
)description
- the description keywords (space separated, optionally
null
)scope
- the record set's scope. A constant used to scope the record
set's data. For more information search the
dynamic.data.lists.api
module's
DDLRecordSetConstants
class for constants prefixed
with "SCOPE_".andOperator
- whether every field must match its value or keywords,
or just one field must match. Company and group must match their
values.start
- the lower bound of the range of record sets to returnend
- the upper bound of the range of recor sets to return (not
inclusive)orderByComparator
- the comparator to order the record setspublic static int searchCount(long companyId, long groupId, java.lang.String keywords, int scope)
companyId
- the primary key of the record set's companygroupId
- the primary key of the record set's group.keywords
- the keywords (space separated) to look for and match in
the record set name or description (optionally
null
). If the keywords value is not
null
, the OR operator is used in connecting query
criteria; otherwise it uses the AND operator.scope
- the record set's scope. A constant used to scope the record
set's data. For more information search the
dynamic.data.lists.api
module's
DDLRecordSetConstants
class for constants prefixed
with "SCOPE_".public static int searchCount(long companyId, long groupId, java.lang.String name, java.lang.String description, int scope, boolean andOperator)
true
, only record sets with a matching
name, description, and scope are counted. If the and operator is set to
false
, only one parameter of name, description, and scope is
needed to count matching record sets.companyId
- the primary key of the record set's companygroupId
- the primary key of the record set's groupname
- the name keywords (space separated). This can be
null
.description
- the description keywords (space separated). This can
be null
.scope
- the record set's scope. A constant used to scope the record
set's data. For more information search the
dynamic.data.lists.api
module's
DDLRecordSetConstants
class for constants prefixed
with "SCOPE_".andOperator
- whether every field must match its value or keywords,
or just one field must match. Company and group must match their
values.public static DDLRecordSet updateDDLRecordSet(DDLRecordSet ddlRecordSet)
Important: Inspect DDLRecordSetLocalServiceImpl 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.
ddlRecordSet
- the ddl record setpublic static DDLRecordSet updateMinDisplayRows(long recordSetId, int minDisplayRows, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
recordSetId
- the primary key of the record setminDisplayRows
- the record set's minimum number of rows to be
displayed in spreadsheet viewserviceContext
- the service context to be applied. This can set
the record set modified date.PortalException
- if a portal exception occurredpublic static DDLRecordSet updateRecordSet(long recordSetId, com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues) throws com.liferay.portal.kernel.exception.PortalException
recordSetId
- the primary key of the record setsettingsDDMFormValues
- the record set's settings. For more
information see DDMFormValues
in the
dynamic.data.mapping.api
the module.PortalException
- if a portal exception occurredpublic static DDLRecordSet updateRecordSet(long recordSetId, long ddmStructureId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, int minDisplayRows, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
recordSetId
- the primary key of the record setddmStructureId
- the primary key of the record set's DDM structurenameMap
- the record set's locales and localized namesdescriptionMap
- the record set's locales and localized
descriptionsminDisplayRows
- the record set's minimum number of rows to be
displayed in spreadsheet viewserviceContext
- the service context to be applied. This can set
the record set modified date.PortalException
- if a portal exception occurredpublic static DDLRecordSet updateRecordSet(long groupId, long ddmStructureId, java.lang.String recordSetKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, int minDisplayRows, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
groupId
- the primary key of the record set's groupddmStructureId
- the primary key of the record set's DDM structurerecordSetKey
- the record set's mnemonic primary keynameMap
- the record set's locales and localized namesdescriptionMap
- the record set's locales and localized
descriptionsminDisplayRows
- the record set's minimum number of rows to be
displayed in spreadsheet viewserviceContext
- the service context to be applied. This can set
the record set modified date.PortalException
- if a portal exception occurredpublic static DDLRecordSetLocalService getService()