public class DDLRecordLocalServiceWrapper extends java.lang.Object implements DDLRecordLocalService, com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordLocalService>
DDLRecordLocalService
.DDLRecordLocalService
Constructor and Description |
---|
DDLRecordLocalServiceWrapper() |
DDLRecordLocalServiceWrapper(DDLRecordLocalService ddlRecordLocalService) |
Modifier and Type | Method and Description |
---|---|
DDLRecord |
addDDLRecord(DDLRecord ddlRecord)
Adds the ddl record to the database.
|
DDLRecord |
addRecord(long userId,
long groupId,
long recordSetId,
int displayIndex,
com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a record referencing the record set.
|
DDLRecord |
addRecord(long userId,
long groupId,
long ddmStorageId,
long ddlRecordSetId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Athanasius (7.3.x)
|
DDLRecord |
addRecord(long userId,
long groupId,
long ddmStorageId,
long ddlRecordSetId,
java.lang.String className,
long classPK,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
DDLRecord |
createDDLRecord(long recordId)
Creates a new ddl record with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
DDLRecord |
deleteDDLRecord(DDLRecord ddlRecord)
Deletes the ddl record from the database.
|
DDLRecord |
deleteDDLRecord(long recordId)
Deletes the ddl record with the primary key from the database.
|
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
DDLRecord |
deleteRecord(DDLRecord record)
Deletes the record and its resources.
|
void |
deleteRecord(long recordId)
Deletes the record and its resources.
|
void |
deleteRecords(long recordSetId)
Deletes all the record set's records.
|
<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.
|
DDLRecord |
fetchDDLRecord(long recordId) |
DDLRecord |
fetchDDLRecordByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddl record matching the UUID and group.
|
DDLRecord |
fetchFirstRecord(java.lang.String className,
long classPK) |
DDLRecord |
fetchRecord(long recordId)
Returns the record with the ID.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
java.util.List<DDLRecord> |
getCompanyRecords(long companyId,
int status,
int scope,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator)
Returns an ordered range of all the records matching the company,
workflow status, and scope.
|
int |
getCompanyRecordsCount(long companyId,
int status,
int scope)
Returns the number of records matching the company, workflow status, and
scope.
|
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecord> |
getCTPersistence() |
DDLRecord |
getDDLRecord(long recordId)
Returns the ddl record with the primary key.
|
DDLRecord |
getDDLRecordByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddl record matching the UUID and group.
|
java.util.List<DDLRecord> |
getDDLRecords(int start,
int end)
Returns a range of all the ddl records.
|
java.util.List<DDLRecord> |
getDDLRecordsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the ddl records matching the UUID and company.
|
java.util.List<DDLRecord> |
getDDLRecordsByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator)
Returns a range of ddl records matching the UUID and company.
|
int |
getDDLRecordsCount()
Returns the number of ddl records.
|
com.liferay.dynamic.data.mapping.storage.DDMFormValues |
getDDMFormValues(long ddmStorageId)
Returns the DDM form values object associated with the record storage ID
See
DDLRecord#getDDMFormValues in the
com.liferay.dynamic.data.lists.api module. |
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.Long[] |
getMinAndMaxCompanyRecordIds(long companyId,
int status,
int scope) |
java.util.List<DDLRecord> |
getMinAndMaxCompanyRecords(long companyId,
int status,
int scope,
long minRecordId,
long maxRecordId) |
java.lang.Class<DDLRecord> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
DDLRecord |
getRecord(long recordId)
Returns the record with the ID.
|
java.util.List<DDLRecord> |
getRecords(long recordSetId)
Returns all the records matching the record set ID
|
java.util.List<DDLRecord> |
getRecords(long recordSetId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator)
Returns an ordered range of all the records matching the record set ID
and workflow status.
|
java.util.List<DDLRecord> |
getRecords(long recordSetId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator) |
java.util.List<DDLRecord> |
getRecords(long recordSetId,
long userId)
Returns all the records matching the record set ID and user ID.
|
java.util.List<DDLRecord> |
getRecords(long recordSetId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator) |
int |
getRecordsCount(long recordSetId) |
int |
getRecordsCount(long recordSetId,
int status)
Returns the number of records matching the record set ID and workflow
status.
|
int |
getRecordsCount(long recordSetId,
long userId) |
DDLRecordLocalService |
getWrappedService() |
void |
revertRecord(long userId,
long recordId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Reverts the record to the given version.
|
com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.search.SearchContext searchContext)
Returns hits to all the records indexed by the search engine matching the
search context.
|
com.liferay.portal.kernel.search.BaseModelSearchResult<DDLRecord> |
searchDDLRecords(com.liferay.portal.kernel.search.SearchContext searchContext)
Searches for records documents indexed by the search engine.
|
void |
setWrappedService(DDLRecordLocalService ddlRecordLocalService) |
void |
updateAsset(long userId,
DDLRecord record,
DDLRecordVersion recordVersion,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
java.util.Locale locale,
java.lang.Double priority)
Updates the record's asset with new asset categories, tag names, and link
entries, removing and adding them as necessary.
|
DDLRecord |
updateDDLRecord(DDLRecord ddlRecord)
Updates the ddl record in the database or adds it if it does not yet exist.
|
DDLRecord |
updateRecord(long userId,
long recordId,
boolean majorVersion,
int displayIndex,
com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the record, replacing its display index and values.
|
DDLRecord |
updateRecord(long userId,
long recordId,
long ddmStorageId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
DDLRecord |
updateStatus(long userId,
long recordVersionId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the workflow status of the record version.
|
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecord>,R,E> updateUnsafeFunction) |
public DDLRecordLocalServiceWrapper()
public DDLRecordLocalServiceWrapper(DDLRecordLocalService ddlRecordLocalService)
public DDLRecord addDDLRecord(DDLRecord ddlRecord)
Important: Inspect DDLRecordLocalServiceImpl 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.
addDDLRecord
in interface DDLRecordLocalService
ddlRecord
- the ddl recordpublic DDLRecord addRecord(long userId, long groupId, long recordSetId, int displayIndex, com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addRecord
in interface DDLRecordLocalService
userId
- the primary key of the record's creator/ownergroupId
- the primary key of the record's grouprecordSetId
- the primary key of the record setdisplayIndex
- the index position in which the record is displayed
in the spreadsheet viewddmFormValues
- the record values. See DDMFormValues
in the dynamic.data.mapping.api
module.serviceContext
- the service context to be applied. This can set
the UUID, guest permissions, and group permissions for the
record.PortalException
- if a portal exception occurred@Deprecated public DDLRecord addRecord(long userId, long groupId, long ddmStorageId, long ddlRecordSetId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addRecord
in interface DDLRecordLocalService
com.liferay.portal.kernel.exception.PortalException
public DDLRecord addRecord(long userId, long groupId, long ddmStorageId, long ddlRecordSetId, java.lang.String className, long classPK, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addRecord
in interface DDLRecordLocalService
com.liferay.portal.kernel.exception.PortalException
public DDLRecord createDDLRecord(long recordId)
createDDLRecord
in interface DDLRecordLocalService
recordId
- the primary key for the new ddl recordpublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface DDLRecordLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public DDLRecord deleteDDLRecord(DDLRecord ddlRecord)
Important: Inspect DDLRecordLocalServiceImpl 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.
deleteDDLRecord
in interface DDLRecordLocalService
ddlRecord
- the ddl recordpublic DDLRecord deleteDDLRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect DDLRecordLocalServiceImpl 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.
deleteDDLRecord
in interface DDLRecordLocalService
recordId
- the primary key of the ddl recordPortalException
- if a ddl record with the primary key could not be foundpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface DDLRecordLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public DDLRecord deleteRecord(DDLRecord record) throws com.liferay.portal.kernel.exception.PortalException
deleteRecord
in interface DDLRecordLocalService
record
- the record to be deletedPortalException
- if a portal exception occurredpublic void deleteRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
deleteRecord
in interface DDLRecordLocalService
recordId
- the primary key of the record to be deletedPortalException
- if a portal exception occurredpublic void deleteRecords(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
deleteRecords
in interface DDLRecordLocalService
recordSetId
- the primary key of the record set from which to
delete recordsPortalException
- if a portal exception occurredpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface DDLRecordLocalService
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface DDLRecordLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface DDLRecordLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface DDLRecordLocalService
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.DDLRecordModelImpl
.
dynamicQuery
in interface DDLRecordLocalService
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.DDLRecordModelImpl
.
dynamicQuery
in interface DDLRecordLocalService
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 DDLRecordLocalService
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 DDLRecordLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic DDLRecord fetchDDLRecord(long recordId)
fetchDDLRecord
in interface DDLRecordLocalService
public DDLRecord fetchDDLRecordByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchDDLRecordByUuidAndGroupId
in interface DDLRecordLocalService
uuid
- the ddl record's UUIDgroupId
- the primary key of the groupnull
if a matching ddl record could not be foundpublic DDLRecord fetchFirstRecord(java.lang.String className, long classPK)
fetchFirstRecord
in interface DDLRecordLocalService
public DDLRecord fetchRecord(long recordId)
fetchRecord
in interface DDLRecordLocalService
recordId
- the primary key of the recordnull
if a matching record
could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface DDLRecordLocalService
public java.util.List<DDLRecord> getCompanyRecords(long companyId, int status, int scope, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> 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.
getCompanyRecords
in interface DDLRecordLocalService
companyId
- the primary key of the record's companystatus
- the record's workflow status. For more information search
the portal kernel's WorkflowConstants class for constants
starting with the "STATUS_" prefix.scope
- the record's scope. For more information search the
dynamic-data-lists-api module's DDLRecordSetConstants class for
constants starting with the "SCOPE_" prefix.start
- the lower bound of the range of records to returnend
- the upper bound of the range of records to return (not
inclusive)orderByComparator
- the comparator to order the recordspublic int getCompanyRecordsCount(long companyId, int status, int scope)
getCompanyRecordsCount
in interface DDLRecordLocalService
companyId
- the primary key of the record's companystatus
- the record's workflow status. For more information search
the portal kernel's WorkflowConstants class for constants
starting with the "STATUS_" prefix.scope
- the record's scope. For more information search the
dynamic-data-lists-api module's DDLRecordSetConstants class for
constants starting with the "SCOPE_" prefix.public DDLRecord getDDLRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
getDDLRecord
in interface DDLRecordLocalService
recordId
- the primary key of the ddl recordPortalException
- if a ddl record with the primary key could not be foundpublic DDLRecord getDDLRecordByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getDDLRecordByUuidAndGroupId
in interface DDLRecordLocalService
uuid
- the ddl record's UUIDgroupId
- the primary key of the groupPortalException
- if a matching ddl record could not be foundpublic java.util.List<DDLRecord> getDDLRecords(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.DDLRecordModelImpl
.
getDDLRecords
in interface DDLRecordLocalService
start
- the lower bound of the range of ddl recordsend
- the upper bound of the range of ddl records (not inclusive)public java.util.List<DDLRecord> getDDLRecordsByUuidAndCompanyId(java.lang.String uuid, long companyId)
getDDLRecordsByUuidAndCompanyId
in interface DDLRecordLocalService
uuid
- the UUID of the ddl recordscompanyId
- the primary key of the companypublic java.util.List<DDLRecord> getDDLRecordsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator)
getDDLRecordsByUuidAndCompanyId
in interface DDLRecordLocalService
uuid
- the UUID of the ddl recordscompanyId
- the primary key of the companystart
- the lower bound of the range of ddl recordsend
- the upper bound of the range of ddl records (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public int getDDLRecordsCount()
getDDLRecordsCount
in interface DDLRecordLocalService
public com.liferay.dynamic.data.mapping.storage.DDMFormValues getDDMFormValues(long ddmStorageId) throws com.liferay.dynamic.data.mapping.exception.StorageException
DDLRecord#getDDMFormValues
in the
com.liferay.dynamic.data.lists.api
module.getDDMFormValues
in interface DDLRecordLocalService
ddmStorageId
- the storage ID associated with the recordcom.liferay.dynamic.data.mapping.exception.StorageException
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface DDLRecordLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface DDLRecordLocalService
public java.lang.Long[] getMinAndMaxCompanyRecordIds(long companyId, int status, int scope)
getMinAndMaxCompanyRecordIds
in interface DDLRecordLocalService
public java.util.List<DDLRecord> getMinAndMaxCompanyRecords(long companyId, int status, int scope, long minRecordId, long maxRecordId)
getMinAndMaxCompanyRecords
in interface DDLRecordLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface DDLRecordLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface DDLRecordLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public DDLRecord getRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
getRecord
in interface DDLRecordLocalService
recordId
- the primary key of the recordPortalException
- if a portal exception occurredpublic java.util.List<DDLRecord> getRecords(long recordSetId)
getRecords
in interface DDLRecordLocalService
recordSetId
- the record's record set IDpublic java.util.List<DDLRecord> getRecords(long recordSetId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> 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.
getRecords
in interface DDLRecordLocalService
recordSetId
- the record's record set IDstatus
- the record's workflow status. For more information search
the portal kernel's WorkflowConstants class for constants
starting with the "STATUS_" prefix.start
- the lower bound of the range of records to returnend
- the upper bound of the range of records to return (not
inclusive)orderByComparator
- the comparator to order the recordspublic java.util.List<DDLRecord> getRecords(long recordSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator)
getRecords
in interface DDLRecordLocalService
public java.util.List<DDLRecord> getRecords(long recordSetId, long userId)
getRecords
in interface DDLRecordLocalService
recordSetId
- the record's record set IDuserId
- the user ID the records belong topublic java.util.List<DDLRecord> getRecords(long recordSetId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator)
getRecords
in interface DDLRecordLocalService
public int getRecordsCount(long recordSetId)
getRecordsCount
in interface DDLRecordLocalService
public int getRecordsCount(long recordSetId, int status)
getRecordsCount
in interface DDLRecordLocalService
recordSetId
- the record's record set IDstatus
- the record's workflow status. For more information search
the portal kernel's WorkflowConstants class for constants
starting with the "STATUS_" prefix.public int getRecordsCount(long recordSetId, long userId)
getRecordsCount
in interface DDLRecordLocalService
public void revertRecord(long userId, long recordId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
revertRecord
in interface DDLRecordLocalService
userId
- the primary key of the user who is reverting the recordrecordId
- the primary key of the recordversion
- the version to revert toserviceContext
- the service context to be applied. This can set
the record modified date.PortalException
- if a portal exception occurredpublic com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
search
in interface DDLRecordLocalService
searchContext
- the search context to be applied for searching
records. For more information, see SearchContext
in
the portal-kernel
module.public com.liferay.portal.kernel.search.BaseModelSearchResult<DDLRecord> searchDDLRecords(com.liferay.portal.kernel.search.SearchContext searchContext)
searchDDLRecords
in interface DDLRecordLocalService
searchContext
- the search context to be applied for searching
documents. For more information, see SearchContext
in the portal-kernel
module.public void updateAsset(long userId, DDLRecord record, DDLRecordVersion recordVersion, long[] assetCategoryIds, java.lang.String[] assetTagNames, java.util.Locale locale, java.lang.Double priority) throws com.liferay.portal.kernel.exception.PortalException
updateAsset
in interface DDLRecordLocalService
userId
- the primary key of the user updating the record's assetrecord
- the recordrecordVersion
- the record versionassetCategoryIds
- the primary keys of the new asset categoriesassetTagNames
- the new asset tag nameslocale
- the locale to apply to the assetpriority
- the new priorityPortalException
- if a portal exception occurredpublic DDLRecord updateDDLRecord(DDLRecord ddlRecord)
Important: Inspect DDLRecordLocalServiceImpl 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.
updateDDLRecord
in interface DDLRecordLocalService
ddlRecord
- the ddl recordpublic DDLRecord updateRecord(long userId, long recordId, boolean majorVersion, int displayIndex, com.liferay.dynamic.data.mapping.storage.DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateRecord
in interface DDLRecordLocalService
userId
- the primary key of the user updating the recordrecordId
- the primary key of the recordmajorVersion
- whether this update is a major change. A major
change increments the record's major version number.displayIndex
- the index position in which the record is displayed
in the spreadsheet viewddmFormValues
- the record values. See DDMFormValues
in the dynamic.data.mapping.api
module.serviceContext
- the service context to be applied. This can set
the record modified date.PortalException
- if a portal exception occurredpublic DDLRecord updateRecord(long userId, long recordId, long ddmStorageId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateRecord
in interface DDLRecordLocalService
com.liferay.portal.kernel.exception.PortalException
public DDLRecord updateStatus(long userId, long recordVersionId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStatus
in interface DDLRecordLocalService
userId
- the primary key of the user updating the record's workflow
statusrecordVersionId
- the primary key of the record versionstatus
- serviceContext
- the service context to be applied. This can set
the modification date and status date.PortalException
- if a portal exception occurredpublic com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecord> getCTPersistence()
getCTPersistence
in interface DDLRecordLocalService
getCTPersistence
in interface com.liferay.portal.kernel.service.change.tracking.CTService<DDLRecord>
public java.lang.Class<DDLRecord> getModelClass()
getModelClass
in interface DDLRecordLocalService
getModelClass
in interface com.liferay.portal.kernel.service.change.tracking.CTService<DDLRecord>
public <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDLRecord>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction
in interface DDLRecordLocalService
updateWithUnsafeFunction
in interface com.liferay.portal.kernel.service.change.tracking.CTService<DDLRecord>
E extends java.lang.Throwable
public DDLRecordLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordLocalService>
public void setWrappedService(DDLRecordLocalService ddlRecordLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDLRecordLocalService>