public class DDLRecordSetLocalServiceWrapper extends java.lang.Object implements DDLRecordSetLocalService, com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordSetLocalService>
DDLRecordSetLocalService
.DDLRecordSetLocalService
Constructor and Description |
---|
DDLRecordSetLocalServiceWrapper() |
DDLRecordSetLocalServiceWrapper(DDLRecordSetLocalService ddlRecordSetLocalService) |
Modifier and Type | Method and Description |
---|---|
DDLRecordSet |
addDDLRecordSet(DDLRecordSet ddlRecordSet)
Adds the ddl record set to the database.
|
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.
|
void |
addRecordSetResources(DDLRecordSet recordSet,
boolean addGroupPermissions,
boolean addGuestPermissions)
Adds the resources to the record set.
|
void |
addRecordSetResources(DDLRecordSet recordSet,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
Adds the model resources with the permissions to the record set.
|
DDLRecordSet |
createDDLRecordSet(long recordSetId)
Creates a new ddl record set with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
DDLRecordSet |
deleteDDLRecordSet(DDLRecordSet ddlRecordSet)
Deletes the ddl record set from the database.
|
DDLRecordSet |
deleteDDLRecordSet(long recordSetId)
Deletes the ddl record set with the primary key from the database.
|
void |
deleteDDMStructureRecordSets(long ddmStructureId) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
void |
deleteRecordSet(DDLRecordSet recordSet)
Deletes the record set and its resources.
|
void |
deleteRecordSet(long recordSetId)
Deletes the record set and its resources.
|
void |
deleteRecordSet(long groupId,
java.lang.String recordSetKey)
Deletes the record set and its resources.
|
void |
deleteRecordSets(long groupId)
Deletes all the record sets matching the group.
|
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
DDLRecordSet |
fetchDDLRecordSet(long recordSetId) |
DDLRecordSet |
fetchDDLRecordSetByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddl record set matching the UUID and group.
|
DDLRecordSet |
fetchRecordSet(long recordSetId)
Returns the record set with the ID.
|
DDLRecordSet |
fetchRecordSet(long groupId,
java.lang.String recordSetKey)
Returns the record set matching the group and record set key.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecordSet> |
getCTPersistence() |
DDLRecordSet |
getDDLRecordSet(long recordSetId)
Returns the ddl record set with the primary key.
|
DDLRecordSet |
getDDLRecordSetByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddl record set matching the UUID and group.
|
java.util.List<DDLRecordSet> |
getDDLRecordSets(int start,
int end)
Returns a range of all the ddl record sets.
|
java.util.List<DDLRecordSet> |
getDDLRecordSetsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the ddl record sets matching the UUID and company.
|
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.
|
int |
getDDLRecordSetsCount()
Returns the number of ddl record sets.
|
java.util.List<DDLRecordSet> |
getDDMStructureRecordSets(long ddmStructureId) |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.Class<DDLRecordSet> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
DDLRecordSet |
getRecordSet(long recordSetId)
Returns the record set with the ID.
|
DDLRecordSet |
getRecordSet(long groupId,
java.lang.String recordSetKey)
Returns the record set matching the group and record set key.
|
DDLRecordSet |
getRecordSet(java.lang.String uuid,
long recordSetId) |
java.util.List<DDLRecordSet> |
getRecordSets(long groupId)
Returns all the record sets belonging the group.
|
java.util.List<DDLRecordSet> |
getRecordSets(long groupId,
int start,
int end) |
int |
getRecordSetsCount(long groupId)
Returns the number of all the record sets belonging the group.
|
int |
getRecordSetsCount(long groupId,
long ddmStructureId,
boolean andOperator)
Returns the number of all the record sets belonging the group and
associated with the DDMStructure.
|
com.liferay.dynamic.data.mapping.storage.DDMFormValues |
getRecordSetSettingsDDMFormValues(DDLRecordSet recordSet)
Returns the record set's settings as a DDMFormValues object.
|
DDLRecordSetSettings |
getRecordSetSettingsModel(DDLRecordSet recordSet)
Returns the record set's settings.
|
DDLRecordSetLocalService |
getWrappedService() |
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.
|
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.
|
int |
searchCount(long companyId,
long groupId,
java.lang.String keywords,
int scope)
Returns the number of record sets matching the parameters.
|
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.
|
void |
setWrappedService(DDLRecordSetLocalService ddlRecordSetLocalService) |
DDLRecordSet |
updateDDLRecordSet(DDLRecordSet ddlRecordSet)
Updates the ddl record set in the database or adds it if it does not yet exist.
|
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.
|
DDLRecordSet |
updateRecordSet(long recordSetId,
com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues)
Updates the the record set's settings.
|
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.
|
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.
|
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecordSet>,R,E> updateUnsafeFunction) |
public DDLRecordSetLocalServiceWrapper()
public DDLRecordSetLocalServiceWrapper(DDLRecordSetLocalService ddlRecordSetLocalService)
public 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.
addDDLRecordSet
in interface DDLRecordSetLocalService
ddlRecordSet
- the ddl record setpublic 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
addRecordSet
in interface DDLRecordSetLocalService
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 void addRecordSetResources(DDLRecordSet recordSet, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
addRecordSetResources
in interface DDLRecordSetLocalService
recordSet
- the record setaddGroupPermissions
- whether to add group permissionsaddGuestPermissions
- whether to add guest permissionsPortalException
- if a portal exception occurredpublic void addRecordSetResources(DDLRecordSet recordSet, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
addRecordSetResources
in interface DDLRecordSetLocalService
recordSet
- the record setmodelPermissions
- the model permissionsPortalException
- if a portal exception occurredpublic DDLRecordSet createDDLRecordSet(long recordSetId)
createDDLRecordSet
in interface DDLRecordSetLocalService
recordSetId
- the primary key for the new ddl record setpublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface DDLRecordSetLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public 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.
deleteDDLRecordSet
in interface DDLRecordSetLocalService
ddlRecordSet
- the ddl record setpublic 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.
deleteDDLRecordSet
in interface DDLRecordSetLocalService
recordSetId
- the primary key of the ddl record setPortalException
- if a ddl record set with the primary key could not be foundpublic void deleteDDMStructureRecordSets(long ddmStructureId) throws com.liferay.portal.kernel.exception.PortalException
deleteDDMStructureRecordSets
in interface DDLRecordSetLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface DDLRecordSetLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public void deleteRecordSet(DDLRecordSet recordSet) throws com.liferay.portal.kernel.exception.PortalException
deleteRecordSet
in interface DDLRecordSetLocalService
recordSet
- the record set to be deletedPortalException
- if a portal exception occurredpublic void deleteRecordSet(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
deleteRecordSet
in interface DDLRecordSetLocalService
recordSetId
- the primary key of the record set to be deletedPortalException
- if a portal exception occurredpublic 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.
deleteRecordSet
in interface DDLRecordSetLocalService
groupId
- the primary key of the record set's grouprecordSetKey
- the record set's mnemonic primary keyPortalException
- if a portal exception occurredpublic void deleteRecordSets(long groupId) throws com.liferay.portal.kernel.exception.PortalException
deleteRecordSets
in interface DDLRecordSetLocalService
groupId
- the primary key of the record set's groupPortalException
- if a portal exception occurredpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface DDLRecordSetLocalService
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface DDLRecordSetLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface DDLRecordSetLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface DDLRecordSetLocalService
dynamicQuery
- the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.dynamic.data.lists.model.impl.DDLRecordSetModelImpl
.
dynamicQuery
in interface DDLRecordSetLocalService
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 <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
in interface DDLRecordSetLocalService
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 long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface DDLRecordSetLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface DDLRecordSetLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic DDLRecordSet fetchDDLRecordSet(long recordSetId)
fetchDDLRecordSet
in interface DDLRecordSetLocalService
public DDLRecordSet fetchDDLRecordSetByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchDDLRecordSetByUuidAndGroupId
in interface DDLRecordSetLocalService
uuid
- the ddl record set's UUIDgroupId
- the primary key of the groupnull
if a matching ddl record set could not be foundpublic DDLRecordSet fetchRecordSet(long recordSetId)
fetchRecordSet
in interface DDLRecordSetLocalService
recordSetId
- the primary key of the record setnull
if a matching
record set could not be foundpublic DDLRecordSet fetchRecordSet(long groupId, java.lang.String recordSetKey)
fetchRecordSet
in interface DDLRecordSetLocalService
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 com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface DDLRecordSetLocalService
public DDLRecordSet getDDLRecordSet(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
getDDLRecordSet
in interface DDLRecordSetLocalService
recordSetId
- the primary key of the ddl record setPortalException
- if a ddl record set with the primary key could not be foundpublic DDLRecordSet getDDLRecordSetByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getDDLRecordSetByUuidAndGroupId
in interface DDLRecordSetLocalService
uuid
- the ddl record set's UUIDgroupId
- the primary key of the groupPortalException
- if a matching ddl record set could not be foundpublic 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
.
getDDLRecordSets
in interface DDLRecordSetLocalService
start
- the lower bound of the range of ddl record setsend
- the upper bound of the range of ddl record sets (not inclusive)public java.util.List<DDLRecordSet> getDDLRecordSetsByUuidAndCompanyId(java.lang.String uuid, long companyId)
getDDLRecordSetsByUuidAndCompanyId
in interface DDLRecordSetLocalService
uuid
- the UUID of the ddl record setscompanyId
- the primary key of the companypublic java.util.List<DDLRecordSet> getDDLRecordSetsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordSet> orderByComparator)
getDDLRecordSetsByUuidAndCompanyId
in interface DDLRecordSetLocalService
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 int getDDLRecordSetsCount()
getDDLRecordSetsCount
in interface DDLRecordSetLocalService
public java.util.List<DDLRecordSet> getDDMStructureRecordSets(long ddmStructureId)
getDDMStructureRecordSets
in interface DDLRecordSetLocalService
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface DDLRecordSetLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface DDLRecordSetLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface DDLRecordSetLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface DDLRecordSetLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public DDLRecordSet getRecordSet(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
getRecordSet
in interface DDLRecordSetLocalService
recordSetId
- the primary key of the record setPortalException
- if the the matching record set could not be foundpublic DDLRecordSet getRecordSet(long groupId, java.lang.String recordSetKey) throws com.liferay.portal.kernel.exception.PortalException
getRecordSet
in interface DDLRecordSetLocalService
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 DDLRecordSet getRecordSet(java.lang.String uuid, long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
getRecordSet
in interface DDLRecordSetLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<DDLRecordSet> getRecordSets(long groupId)
getRecordSets
in interface DDLRecordSetLocalService
public java.util.List<DDLRecordSet> getRecordSets(long groupId, int start, int end)
getRecordSets
in interface DDLRecordSetLocalService
public int getRecordSetsCount(long groupId)
getRecordSetsCount
in interface DDLRecordSetLocalService
groupId
- the primary key of the record set's grouppublic int getRecordSetsCount(long groupId, long ddmStructureId, boolean andOperator)
getRecordSetsCount
in interface DDLRecordSetLocalService
groupId
- the primary key of the record set's grouppublic 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.getRecordSetSettingsDDMFormValues
in interface DDLRecordSetLocalService
recordSet
- the record setPortalException
- if a portal exception occurredpublic DDLRecordSetSettings getRecordSetSettingsModel(DDLRecordSet recordSet) throws com.liferay.portal.kernel.exception.PortalException
getRecordSetSettingsModel
in interface DDLRecordSetLocalService
recordSet
- the record setPortalException
- if a portal exception occurredgetRecordSetSettingsDDMFormValues(DDLRecordSet)
public 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.
search
in interface DDLRecordSetLocalService
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 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.
search
in interface DDLRecordSetLocalService
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 int searchCount(long companyId, long groupId, java.lang.String keywords, int scope)
searchCount
in interface DDLRecordSetLocalService
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 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.searchCount
in interface DDLRecordSetLocalService
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 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.
updateDDLRecordSet
in interface DDLRecordSetLocalService
ddlRecordSet
- the ddl record setpublic DDLRecordSet updateMinDisplayRows(long recordSetId, int minDisplayRows, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateMinDisplayRows
in interface DDLRecordSetLocalService
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 DDLRecordSet updateRecordSet(long recordSetId, com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues) throws com.liferay.portal.kernel.exception.PortalException
updateRecordSet
in interface DDLRecordSetLocalService
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 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
updateRecordSet
in interface DDLRecordSetLocalService
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 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
updateRecordSet
in interface DDLRecordSetLocalService
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 com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecordSet> getCTPersistence()
getCTPersistence
in interface DDLRecordSetLocalService
getCTPersistence
in interface com.liferay.portal.kernel.service.change.tracking.CTService<DDLRecordSet>
public java.lang.Class<DDLRecordSet> getModelClass()
getModelClass
in interface DDLRecordSetLocalService
getModelClass
in interface com.liferay.portal.kernel.service.change.tracking.CTService<DDLRecordSet>
public <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecordSet>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction
in interface DDLRecordSetLocalService
updateWithUnsafeFunction
in interface com.liferay.portal.kernel.service.change.tracking.CTService<DDLRecordSet>
E extends java.lang.Throwable
public DDLRecordSetLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordSetLocalService>
public void setWrappedService(DDLRecordSetLocalService ddlRecordSetLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordSetLocalService>