Class DDLRecordSetLocalServiceWrapper
- All Implemented Interfaces:
DDLRecordSetLocalService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<DDLRecordSet>
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordSetLocalService>
DDLRecordSetLocalService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionDDLRecordSetLocalServiceWrapper
(DDLRecordSetLocalService ddlRecordSetLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddDDLRecordSet
(DDLRecordSet ddlRecordSet) Adds the ddl record set to the database.addRecordSet
(long userId, long groupId, long ddmStructureId, String recordSetKey, Map<Locale, String> nameMap, Map<Locale, 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.createDDLRecordSet
(long recordSetId) Creates a new ddl record set with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteDDLRecordSet
(long recordSetId) Deletes the ddl record set with the primary key from the database.deleteDDLRecordSet
(DDLRecordSet ddlRecordSet) Deletes the ddl record set from the database.void
deleteDDMStructureRecordSets
(long ddmStructureId) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) void
deleteRecordSet
(long recordSetId) Deletes the record set and its resources.void
deleteRecordSet
(long groupId, String recordSetKey) Deletes the record set and its resources.void
deleteRecordSet
(DDLRecordSet recordSet) 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
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> 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> 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.fetchDDLRecordSet
(long recordSetId) fetchDDLRecordSetByUuidAndGroupId
(String uuid, long groupId) Returns the ddl record set matching the UUID and group.fetchRecordSet
(long recordSetId) Returns the record set with the ID.fetchRecordSet
(long groupId, String recordSetKey) Returns the record set matching the group and record set key.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
com.liferay.portal.kernel.service.persistence.BasePersistence<?>
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecordSet>
getDDLRecordSet
(long recordSetId) Returns the ddl record set with the primary key.getDDLRecordSetByUuidAndGroupId
(String uuid, long groupId) Returns the ddl record set matching the UUID and group.getDDLRecordSets
(int start, int end) Returns a range of all the ddl record sets.getDDLRecordSetsByUuidAndCompanyId
(String uuid, long companyId) Returns all the ddl record sets matching the UUID and company.getDDLRecordSetsByUuidAndCompanyId
(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
Returns the number of ddl record sets.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
Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) getRecordSet
(long recordSetId) Returns the record set with the ID.getRecordSet
(long groupId, String recordSetKey) Returns the record set matching the group and record set key.getRecordSet
(String uuid, long recordSetId) getRecordSets
(long groupId) Returns all the record sets belonging the group.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.getRecordSetSettingsModel
(DDLRecordSet recordSet) Returns the record set's settings.search
(long companyId, long groupId, 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.search
(long companyId, long groupId, String name, 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, String keywords, int scope) Returns the number of record sets matching the parameters.int
searchCount
(long companyId, long groupId, String name, String description, int scope, boolean andOperator) Returns the number of all record sets matching the parameters.void
setWrappedService
(DDLRecordSetLocalService ddlRecordSetLocalService) updateDDLRecordSet
(DDLRecordSet ddlRecordSet) Updates the ddl record set in the database or adds it if it does not yet exist.updateMinDisplayRows
(long recordSetId, int minDisplayRows, com.liferay.portal.kernel.service.ServiceContext serviceContext) Updates the number of minimum rows to display for the record set.updateRecordSet
(long groupId, long ddmStructureId, String recordSetKey, Map<Locale, String> nameMap, Map<Locale, 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.updateRecordSet
(long recordSetId, long ddmStructureId, Map<Locale, String> nameMap, Map<Locale, 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.updateRecordSet
(long recordSetId, com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues) Updates the the record set's settings.<R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecordSet>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
DDLRecordSetLocalServiceWrapper
public DDLRecordSetLocalServiceWrapper() -
DDLRecordSetLocalServiceWrapper
-
-
Method Details
-
addDDLRecordSet
Adds the ddl record set to the database. Also notifies the appropriate model listeners.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.
- Specified by:
addDDLRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
ddlRecordSet
- the ddl record set- Returns:
- the ddl record set that was added
-
addRecordSet
public DDLRecordSet addRecordSet(long userId, long groupId, long ddmStructureId, String recordSetKey, Map<Locale, String> nameMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, int minDisplayRows, int scope, com.liferay.portal.kernel.service.ServiceContext serviceContext) Adds a record set referencing the DDM structure.- Specified by:
addRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
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. Ifnull
, 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 searchDDLRecordSetConstants
in thedynamic.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.- Returns:
- the record set
- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
addRecordSetResources
public void addRecordSetResources(DDLRecordSet recordSet, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException Adds the resources to the record set.- Specified by:
addRecordSetResources
in interfaceDDLRecordSetLocalService
- Parameters:
recordSet
- the record setaddGroupPermissions
- whether to add group permissionsaddGuestPermissions
- whether to add guest permissions- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
addRecordSetResources
public void addRecordSetResources(DDLRecordSet recordSet, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException Adds the model resources with the permissions to the record set.- Specified by:
addRecordSetResources
in interfaceDDLRecordSetLocalService
- Parameters:
recordSet
- the record setmodelPermissions
- the model permissions- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
createDDLRecordSet
Creates a new ddl record set with the primary key. Does not add the ddl record set to the database.- Specified by:
createDDLRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
recordSetId
- the primary key for the new ddl record set- Returns:
- the new ddl record set
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfaceDDLRecordSetLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteDDLRecordSet
Deletes the ddl record set from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteDDLRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
ddlRecordSet
- the ddl record set- Returns:
- the ddl record set that was removed
-
deleteDDLRecordSet
public DDLRecordSet deleteDDLRecordSet(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException Deletes the ddl record set with the primary key from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteDDLRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
recordSetId
- the primary key of the ddl record set- Returns:
- the ddl record set that was removed
- Throws:
PortalException
- if a ddl record set with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteDDMStructureRecordSets
public void deleteDDMStructureRecordSets(long ddmStructureId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteDDMStructureRecordSets
in interfaceDDLRecordSetLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModel
in interfaceDDLRecordSetLocalService
- Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteRecordSet
public void deleteRecordSet(DDLRecordSet recordSet) throws com.liferay.portal.kernel.exception.PortalException Deletes the record set and its resources.- Specified by:
deleteRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
recordSet
- the record set to be deleted- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
deleteRecordSet
public void deleteRecordSet(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException Deletes the record set and its resources.- Specified by:
deleteRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
recordSetId
- the primary key of the record set to be deleted- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
deleteRecordSet
public void deleteRecordSet(long groupId, String recordSetKey) throws com.liferay.portal.kernel.exception.PortalException Deletes the record set and its resources.This operation updates the record set matching the group and recordSetKey.
- Specified by:
deleteRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
groupId
- the primary key of the record set's grouprecordSetKey
- the record set's mnemonic primary key- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
deleteRecordSets
public void deleteRecordSets(long groupId) throws com.liferay.portal.kernel.exception.PortalException Deletes all the record sets matching the group.- Specified by:
deleteRecordSets
in interfaceDDLRecordSetLocalService
- Parameters:
groupId
- the primary key of the record set's group- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceDDLRecordSetLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceDDLRecordSetLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceDDLRecordSetLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceDDLRecordSetLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.lists.model.impl.DDLRecordSetModelImpl
.- Specified by:
dynamicQuery
in interfaceDDLRecordSetLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.lists.model.impl.DDLRecordSetModelImpl
.- Specified by:
dynamicQuery
in interfaceDDLRecordSetLocalService
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceDDLRecordSetLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCount
in interfaceDDLRecordSetLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchDDLRecordSet
- Specified by:
fetchDDLRecordSet
in interfaceDDLRecordSetLocalService
-
fetchDDLRecordSetByUuidAndGroupId
Returns the ddl record set matching the UUID and group.- Specified by:
fetchDDLRecordSetByUuidAndGroupId
in interfaceDDLRecordSetLocalService
- Parameters:
uuid
- the ddl record set's UUIDgroupId
- the primary key of the group- Returns:
- the matching ddl record set, or
null
if a matching ddl record set could not be found
-
fetchRecordSet
Returns the record set with the ID.- Specified by:
fetchRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
recordSetId
- the primary key of the record set- Returns:
- the record set with the ID, or
null
if a matching record set could not be found
-
fetchRecordSet
Returns the record set matching the group and record set key.- Specified by:
fetchRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
groupId
- the primary key of the record set's grouprecordSetKey
- the record set's mnemonic primary key- Returns:
- the record set matching the group and record set key, or
null
if a matching record set could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceDDLRecordSetLocalService
-
getDDLRecordSet
public DDLRecordSet getDDLRecordSet(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException Returns the ddl record set with the primary key.- Specified by:
getDDLRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
recordSetId
- the primary key of the ddl record set- Returns:
- the ddl record set
- Throws:
PortalException
- if a ddl record set with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getDDLRecordSetByUuidAndGroupId
public DDLRecordSet getDDLRecordSetByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the ddl record set matching the UUID and group.- Specified by:
getDDLRecordSetByUuidAndGroupId
in interfaceDDLRecordSetLocalService
- Parameters:
uuid
- the ddl record set's UUIDgroupId
- the primary key of the group- Returns:
- the matching ddl record set
- Throws:
PortalException
- if a matching ddl record set could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getDDLRecordSets
Returns a range of all the ddl record sets.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.lists.model.impl.DDLRecordSetModelImpl
.- Specified by:
getDDLRecordSets
in interfaceDDLRecordSetLocalService
- Parameters:
start
- the lower bound of the range of ddl record setsend
- the upper bound of the range of ddl record sets (not inclusive)- Returns:
- the range of ddl record sets
-
getDDLRecordSetsByUuidAndCompanyId
Returns all the ddl record sets matching the UUID and company.- Specified by:
getDDLRecordSetsByUuidAndCompanyId
in interfaceDDLRecordSetLocalService
- Parameters:
uuid
- the UUID of the ddl record setscompanyId
- the primary key of the company- Returns:
- the matching ddl record sets, or an empty list if no matches were found
-
getDDLRecordSetsByUuidAndCompanyId
public List<DDLRecordSet> getDDLRecordSetsByUuidAndCompanyId(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.- Specified by:
getDDLRecordSetsByUuidAndCompanyId
in interfaceDDLRecordSetLocalService
- Parameters:
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 (optionallynull
)- Returns:
- the range of matching ddl record sets, or an empty list if no matches were found
-
getDDLRecordSetsCount
public int getDDLRecordSetsCount()Returns the number of ddl record sets.- Specified by:
getDDLRecordSetsCount
in interfaceDDLRecordSetLocalService
- Returns:
- the number of ddl record sets
-
getDDMStructureRecordSets
- Specified by:
getDDMStructureRecordSets
in interfaceDDLRecordSetLocalService
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceDDLRecordSetLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceDDLRecordSetLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceDDLRecordSetLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfaceDDLRecordSetLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
getRecordSet
public DDLRecordSet getRecordSet(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException Returns the record set with the ID.- Specified by:
getRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
recordSetId
- the primary key of the record set- Returns:
- the record set with the ID
- Throws:
PortalException
- if the the matching record set could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getRecordSet
public DDLRecordSet getRecordSet(long groupId, String recordSetKey) throws com.liferay.portal.kernel.exception.PortalException Returns the record set matching the group and record set key.- Specified by:
getRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
groupId
- the primary key of the record set's grouprecordSetKey
- the record set's mnemonic primary key- Returns:
- the record set matching the group and record set key
- Throws:
PortalException
- if the the matching record set could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getRecordSet
public DDLRecordSet getRecordSet(String uuid, long recordSetId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getRecordSet
in interfaceDDLRecordSetLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRecordSets
Returns all the record sets belonging the group.- Specified by:
getRecordSets
in interfaceDDLRecordSetLocalService
- Returns:
- the record sets belonging to the group
-
getRecordSets
- Specified by:
getRecordSets
in interfaceDDLRecordSetLocalService
-
getRecordSetsCount
public int getRecordSetsCount(long groupId) Returns the number of all the record sets belonging the group.- Specified by:
getRecordSetsCount
in interfaceDDLRecordSetLocalService
- Parameters:
groupId
- the primary key of the record set's group- Returns:
- the number of record sets belonging to the group
-
getRecordSetsCount
public int getRecordSetsCount(long groupId, long ddmStructureId, boolean andOperator) Returns the number of all the record sets belonging the group and associated with the DDMStructure.- Specified by:
getRecordSetsCount
in interfaceDDLRecordSetLocalService
- Parameters:
groupId
- the primary key of the record set's group- Returns:
- the number of record sets belonging to the group
-
getRecordSetSettingsDDMFormValues
public com.liferay.dynamic.data.mapping.storage.DDMFormValues getRecordSetSettingsDDMFormValues(DDLRecordSet recordSet) throws com.liferay.portal.kernel.exception.PortalException Returns the record set's settings as a DDMFormValues object. For more information seeDDMFormValues
in thedynamic.data.mapping.api
module.- Specified by:
getRecordSetSettingsDDMFormValues
in interfaceDDLRecordSetLocalService
- Parameters:
recordSet
- the record set- Returns:
- the record set settings as a DDMFormValues object
- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
getRecordSetSettingsModel
public DDLRecordSetSettings getRecordSetSettingsModel(DDLRecordSet recordSet) throws com.liferay.portal.kernel.exception.PortalException Returns the record set's settings.- Specified by:
getRecordSetSettingsModel
in interfaceDDLRecordSetLocalService
- Parameters:
recordSet
- the record set- Returns:
- the record set settings
- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
- See Also:
-
search
public List<DDLRecordSet> search(long companyId, long groupId, 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil.ALL_POS
will return the full result set.- Specified by:
search
in interfaceDDLRecordSetLocalService
- Parameters:
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 (optionallynull
). If the keywords value is notnull
, 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 thedynamic.data.lists.api
module'sDDLRecordSetConstants
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 sets- Returns:
- the range of matching record sets ordered by the comparator
-
search
public List<DDLRecordSet> search(long companyId, long groupId, String name, 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. Company ID and group ID must be matched. If the and operator is set totrue
, only record sets with a matching name, description, and scope are returned. If the and operator is set tofalse
, 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil.ALL_POS
will return the full result set.- Specified by:
search
in interfaceDDLRecordSetLocalService
- Parameters:
companyId
- the primary key of the record set's companygroupId
- the primary key of the record set's groupname
- the name keywords (space separated, optionallynull
)description
- the description keywords (space separated, optionallynull
)scope
- the record set's scope. A constant used to scope the record set's data. For more information search thedynamic.data.lists.api
module'sDDLRecordSetConstants
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 sets- Returns:
- the range of matching record sets ordered by the comparator
-
searchCount
Returns the number of record sets matching the parameters. The keywords parameter is used for matching the record set's name or description- Specified by:
searchCount
in interfaceDDLRecordSetLocalService
- Parameters:
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 (optionallynull
). If the keywords value is notnull
, 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 thedynamic.data.lists.api
module'sDDLRecordSetConstants
class for constants prefixed with "SCOPE_".- Returns:
- the number of matching record sets
-
searchCount
public int searchCount(long companyId, long groupId, String name, String description, int scope, boolean andOperator) Returns the number of all record sets matching the parameters. name and description keywords. Company ID and group ID must be matched. If the and operator is set totrue
, only record sets with a matching name, description, and scope are counted. If the and operator is set tofalse
, only one parameter of name, description, and scope is needed to count matching record sets.- Specified by:
searchCount
in interfaceDDLRecordSetLocalService
- Parameters:
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 benull
.description
- the description keywords (space separated). This can benull
.scope
- the record set's scope. A constant used to scope the record set's data. For more information search thedynamic.data.lists.api
module'sDDLRecordSetConstants
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.- Returns:
- the number of matching record sets
-
updateDDLRecordSet
Updates the ddl record set in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.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.
- Specified by:
updateDDLRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
ddlRecordSet
- the ddl record set- Returns:
- the ddl record set that was updated
-
updateMinDisplayRows
public DDLRecordSet updateMinDisplayRows(long recordSetId, int minDisplayRows, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException Updates the number of minimum rows to display for the record set. Useful when the record set is being displayed in spreadsheet.- Specified by:
updateMinDisplayRows
in interfaceDDLRecordSetLocalService
- Parameters:
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.- Returns:
- the record set
- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
updateRecordSet
public DDLRecordSet updateRecordSet(long recordSetId, com.liferay.dynamic.data.mapping.storage.DDMFormValues settingsDDMFormValues) throws com.liferay.portal.kernel.exception.PortalException Updates the the record set's settings.- Specified by:
updateRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
recordSetId
- the primary key of the record setsettingsDDMFormValues
- the record set's settings. For more information seeDDMFormValues
in thedynamic.data.mapping.api
the module.- Returns:
- the record set
- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
updateRecordSet
public DDLRecordSet updateRecordSet(long recordSetId, long ddmStructureId, Map<Locale, String> nameMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> 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.- Specified by:
updateRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
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.- Returns:
- the record set
- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
updateRecordSet
public DDLRecordSet updateRecordSet(long groupId, long ddmStructureId, String recordSetKey, Map<Locale, String> nameMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> 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.- Specified by:
updateRecordSet
in interfaceDDLRecordSetLocalService
- Parameters:
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.- Returns:
- the record set
- Throws:
PortalException
- if a portal exception occurredcom.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecordSet> getCTPersistence()- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<DDLRecordSet>
- Specified by:
getCTPersistence
in interfaceDDLRecordSetLocalService
-
getModelClass
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<DDLRecordSet>
- Specified by:
getModelClass
in interfaceDDLRecordSetLocalService
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecordSet>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<DDLRecordSet>
- Specified by:
updateWithUnsafeFunction
in interfaceDDLRecordSetLocalService
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<DDLRecordSetLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<DDLRecordSetLocalService>
-