@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface DDLRecordLocalService
extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
DDLRecordLocalServiceUtil
,
com.liferay.dynamic.data.lists.service.base.DDLRecordLocalServiceBaseImpl
,
com.liferay.dynamic.data.lists.service.impl.DDLRecordLocalServiceImpl
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,
DDMFormValues ddmFormValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a record referencing the record set.
|
DDLRecord |
addRecord(long userId,
long groupId,
long recordSetId,
int displayIndex,
Fields fields,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 1.1.0, replaced by
#addRecord(long, long, int,
DDMFormValues, ServiceContext) |
DDLRecord |
addRecord(long userId,
long groupId,
long recordSetId,
int displayIndex,
java.util.Map<java.lang.String,java.io.Serializable> fieldsMap,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 1.1.0, replaced by
#addRecord(long, long, int,
DDMFormValues, ServiceContext) |
DDLRecord |
createDDLRecord(long recordId)
Creates a new ddl record with the primary key.
|
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.
|
DDLRecord |
deleteRecordLocale(long recordId,
java.util.Locale locale,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 1.1.0, replaced by
#updateRecord(long, boolean,
int, DDMFormValues, ServiceContext) |
void |
deleteRecords(long recordSetId)
Deletes all the record set's records.
|
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 |
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.
|
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.
|
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() |
DDLRecordVersion |
getLatestRecordVersion(long recordId)
Deprecated.
As of 1.1.0, replaced by
DDLRecordVersionLocalService.getLatestRecordVersion(long) |
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.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> obc) |
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> obc) |
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) |
DDLRecordVersion |
getRecordVersion(long recordVersionId)
Deprecated.
As of 1.1.0, replaced by
DDLRecordVersionLocalService.getRecordVersion(
long) |
DDLRecordVersion |
getRecordVersion(long recordId,
java.lang.String version)
Deprecated.
As of 1.1.0, replaced by
DDLRecordVersionLocalService.getRecordVersion(
long, String) |
java.util.List<DDLRecordVersion> |
getRecordVersions(long recordId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
Deprecated.
As of 1.1.0, replaced by
DDLRecordVersionLocalService.getRecordVersions(
long, int, int, OrderByComparator) |
int |
getRecordVersionsCount(long recordId)
Deprecated.
As of 1.1.0, replaced by
DDLRecordVersionLocalService.getRecordVersionsCount(
long) |
void |
revertRecord(long userId,
long recordId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Reverts the record to the given version.
|
void |
revertRecordVersion(long userId,
long recordId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 1.1.0, replaced by
revertRecord(long, long,
String, ServiceContext) |
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 |
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,
DDMFormValues ddmFormValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the record, replacing its display index and values.
|
DDLRecord |
updateRecord(long userId,
long recordId,
boolean majorVersion,
int displayIndex,
Fields fields,
boolean mergeFields,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 1.1.0, replaced by
updateRecord(long, long,
boolean, int, DDMFormValues, ServiceContext) |
DDLRecord |
updateRecord(long userId,
long recordId,
int displayIndex,
java.util.Map<java.lang.String,java.io.Serializable> fieldsMap,
boolean mergeFields,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 1.1.0, replaced by
updateRecord(long, long,
boolean, int, DDMFormValues, ServiceContext) |
DDLRecord |
updateStatus(long userId,
long recordVersionId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the workflow status of the record version.
|
@Indexable(type=REINDEX) DDLRecord addDDLRecord(DDLRecord ddlRecord)
ddlRecord
- the ddl record@Indexable(type=REINDEX) DDLRecord addRecord(long userId, long groupId, long recordSetId, int displayIndex, DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
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.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated DDLRecord addRecord(long userId, long groupId, long recordSetId, int displayIndex, Fields fields, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
#addRecord(long, long, int,
DDMFormValues, ServiceContext)
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 view.fields
- the record values. See the dynamic-data-mapping-api
module's Fields class for more information.serviceContext
- the service context to be applied. This can
set the UUID, guest permissions, and group permissions for
the record.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated DDLRecord addRecord(long userId, long groupId, long recordSetId, int displayIndex, java.util.Map<java.lang.String,java.io.Serializable> fieldsMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
#addRecord(long, long, int,
DDMFormValues, ServiceContext)
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 viewfieldsMap
- the record values. The fieldsMap is a map of field
names and their serializable values.serviceContext
- the service context to be applied. This can
set the UUID, guest permissions, and group permissions for
the record.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurredDDLRecord createDDLRecord(long recordId)
recordId
- the primary key for the new ddl record@Indexable(type=DELETE) DDLRecord deleteDDLRecord(DDLRecord ddlRecord)
ddlRecord
- the ddl record@Indexable(type=DELETE) DDLRecord deleteDDLRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
recordId
- the primary key of the ddl recordcom.liferay.portal.kernel.exception.PortalException
- if a ddl record with the primary key could not be foundcom.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Indexable(type=DELETE) @SystemEvent(action=1, type=1) DDLRecord deleteRecord(DDLRecord record) throws com.liferay.portal.kernel.exception.PortalException
record
- the record to be deletedcom.liferay.portal.kernel.exception.PortalException
- if a portal exception occurredvoid deleteRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
recordId
- the primary key of the record to be deletedcom.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated DDLRecord deleteRecordLocale(long recordId, java.util.Locale locale, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
#updateRecord(long, boolean,
int, DDMFormValues, ServiceContext)
recordId
- the primary key of the recordlocale
- the locale of the record values to be removedserviceContext
- the service context to be applied. This can
set the record modified date.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurredvoid deleteRecords(long recordSetId) throws com.liferay.portal.kernel.exception.PortalException
recordSetId
- the primary key of the record set from which to
delete recordscom.liferay.portal.kernel.exception.PortalException
- if a portal exception occurredcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
<T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query<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 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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DDLRecordModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)<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 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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DDLRecordModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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
)long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querylong dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) DDLRecord fetchDDLRecord(long recordId)
@Transactional(propagation=SUPPORTS, readOnly=true) DDLRecord fetchDDLRecordByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the ddl record's UUIDgroupId
- the primary key of the groupnull
if a matching ddl record could not be found@Transactional(propagation=SUPPORTS, readOnly=true) DDLRecord fetchRecord(long recordId)
recordId
- the primary key of the recordnull
if a matching record
could not be found@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) 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.
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 records@Transactional(propagation=SUPPORTS, readOnly=true) int getCompanyRecordsCount(long companyId, int status, int scope)
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.@Transactional(propagation=SUPPORTS, readOnly=true) DDLRecord getDDLRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
recordId
- the primary key of the ddl recordcom.liferay.portal.kernel.exception.PortalException
- if a ddl record with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) DDLRecord getDDLRecordByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the ddl record's UUIDgroupId
- the primary key of the groupcom.liferay.portal.kernel.exception.PortalException
- if a matching ddl record could not be found@Transactional(propagation=SUPPORTS, readOnly=true) 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 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 and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from DDLRecordModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of ddl recordsend
- the upper bound of the range of ddl records (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDLRecord> getDDLRecordsByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the ddl recordscompanyId
- the primary key of the company@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDLRecord> getDDLRecordsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> orderByComparator)
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
)@Transactional(propagation=SUPPORTS, readOnly=true) int getDDLRecordsCount()
@Transactional(propagation=SUPPORTS, readOnly=true) DDMFormValues getDDMFormValues(long ddmStorageId) throws StorageException
DDLRecord#getDDMFormValues
in the
com.liferay.dynamic.data.lists.api
module.ddmStorageId
- the storage ID associated with the recordStorageException
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) DDLRecordVersion getLatestRecordVersion(long recordId) throws com.liferay.portal.kernel.exception.PortalException
DDLRecordVersionLocalService.getLatestRecordVersion(long)
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) java.lang.Long[] getMinAndMaxCompanyRecordIds(long companyId, int status, int scope)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDLRecord> getMinAndMaxCompanyRecords(long companyId, int status, int scope, long minRecordId, long maxRecordId)
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) DDLRecord getRecord(long recordId) throws com.liferay.portal.kernel.exception.PortalException
recordId
- the primary key of the recordcom.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDLRecord> getRecords(long recordSetId)
recordSetId
- the record's record set ID@Transactional(propagation=SUPPORTS, readOnly=true) 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.
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 records@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDLRecord> getRecords(long recordSetId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> obc)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDLRecord> getRecords(long recordSetId, long userId)
recordSetId
- the record's record set IDuserId
- the user ID the records belong to@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDLRecord> getRecords(long recordSetId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecord> obc)
@Transactional(propagation=SUPPORTS, readOnly=true) int getRecordsCount(long recordSetId)
@Transactional(propagation=SUPPORTS, readOnly=true) int getRecordsCount(long recordSetId, int status)
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.@Transactional(propagation=SUPPORTS, readOnly=true) int getRecordsCount(long recordSetId, long userId)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) DDLRecordVersion getRecordVersion(long recordVersionId) throws com.liferay.portal.kernel.exception.PortalException
DDLRecordVersionLocalService.getRecordVersion(
long)
com.liferay.portal.kernel.exception.PortalException
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) DDLRecordVersion getRecordVersion(long recordId, java.lang.String version) throws com.liferay.portal.kernel.exception.PortalException
DDLRecordVersionLocalService.getRecordVersion(
long, String)
com.liferay.portal.kernel.exception.PortalException
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<DDLRecordVersion> getRecordVersions(long recordId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDLRecordVersion> orderByComparator)
DDLRecordVersionLocalService.getRecordVersions(
long, int, int, OrderByComparator)
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) int getRecordVersionsCount(long recordId)
DDLRecordVersionLocalService.getRecordVersionsCount(
long)
void revertRecord(long userId, long recordId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
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.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated void revertRecordVersion(long userId, long recordId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
revertRecord(long, long,
String, ServiceContext)
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
searchContext
- the search context to be applied for searching
records. For more information, see SearchContext
in
the portal-kernel
module.@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.search.BaseModelSearchResult<DDLRecord> searchDDLRecords(com.liferay.portal.kernel.search.SearchContext searchContext)
searchContext
- the search context to be applied for searching
documents. For more information, see SearchContext
in the portal-kernel
module.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
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 prioritycom.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Indexable(type=REINDEX) DDLRecord updateDDLRecord(DDLRecord ddlRecord)
ddlRecord
- the ddl record@Indexable(type=REINDEX) DDLRecord updateRecord(long userId, long recordId, boolean majorVersion, int displayIndex, DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
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.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated DDLRecord updateRecord(long userId, long recordId, boolean majorVersion, int displayIndex, Fields fields, boolean mergeFields, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateRecord(long, long,
boolean, int, DDMFormValues, ServiceContext)
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 numberdisplayIndex
- the index position in which the record is
displayed in the spreadsheet view.fields
- the record values. See Fields
in the
dynamic.data.mapping.api
module.mergeFields
- whether to merge the new fields with the existing
ones; otherwise replace the existing fieldsserviceContext
- the service context to be applied. This can
set the record modified date.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Deprecated DDLRecord updateRecord(long userId, long recordId, int displayIndex, java.util.Map<java.lang.String,java.io.Serializable> fieldsMap, boolean mergeFields, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateRecord(long, long,
boolean, int, DDMFormValues, ServiceContext)
userId
- the primary key of the user updating the recordrecordId
- the primary key of the recorddisplayIndex
- the index position in which the record is
displayed in the spreadsheet viewfieldsMap
- the record values. The fieldsMap is a map of field
names and its Serializable values.mergeFields
- whether to merge the new fields with the existing
ones; otherwise replace the existing fieldsserviceContext
- the service context to be applied. This can
set the record modified date.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred@Indexable(type=REINDEX) DDLRecord updateStatus(long userId, long recordVersionId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
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.com.liferay.portal.kernel.exception.PortalException
- if a portal exception occurred