public class DDMFormInstanceRecordLocalServiceUtil
extends java.lang.Object
com.liferay.dynamic.data.mapping.service.impl.DDMFormInstanceRecordLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. Methods of this service will not have security checks
based on the propagated JAAS credentials because this service can only be
accessed from within the same VM.DDMFormInstanceRecordLocalService
Constructor and Description |
---|
DDMFormInstanceRecordLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static DDMFormInstanceRecord |
addDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
Adds the ddm form instance record to the database.
|
static DDMFormInstanceRecord |
addFormInstanceRecord(long userId,
long groupId,
long ddmFormInstanceId,
DDMFormValues ddmFormValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DDMFormInstanceRecord |
createDDMFormInstanceRecord(long formInstanceRecordId)
Creates a new ddm form instance record with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static DDMFormInstanceRecord |
deleteDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
Deletes the ddm form instance record from the database.
|
static DDMFormInstanceRecord |
deleteDDMFormInstanceRecord(long formInstanceRecordId)
Deletes the ddm form instance record with the primary key from the database.
|
static DDMFormInstanceRecord |
deleteFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord) |
static DDMFormInstanceRecord |
deleteFormInstanceRecord(long ddmFormInstanceRecordId) |
static void |
deleteFormInstanceRecords(long ddmFormInstanceId) |
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
static DDMFormInstanceRecord |
fetchDDMFormInstanceRecord(long formInstanceRecordId) |
static DDMFormInstanceRecord |
fetchDDMFormInstanceRecordByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddm form instance record matching the UUID and group.
|
static DDMFormInstanceRecord |
fetchFormInstanceRecord(long ddmFormInstanceRecordId) |
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static DDMFormInstanceRecord |
getDDMFormInstanceRecord(long formInstanceRecordId)
Returns the ddm form instance record with the primary key.
|
static DDMFormInstanceRecord |
getDDMFormInstanceRecordByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddm form instance record matching the UUID and group.
|
static java.util.List<DDMFormInstanceRecord> |
getDDMFormInstanceRecords(int start,
int end)
Returns a range of all the ddm form instance records.
|
static java.util.List<DDMFormInstanceRecord> |
getDDMFormInstanceRecordsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the ddm form instance records matching the UUID and company.
|
static java.util.List<DDMFormInstanceRecord> |
getDDMFormInstanceRecordsByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator)
Returns a range of ddm form instance records matching the UUID and company.
|
static int |
getDDMFormInstanceRecordsCount()
Returns the number of ddm form instance records.
|
static DDMFormValues |
getDDMFormValues(DDMForm ddmForm,
long storageId,
java.lang.String storageType) |
static DDMFormValues |
getDDMFormValues(long storageId,
DDMForm ddmForm)
Deprecated.
As of Athanasius (7.3.x), replaced by
getDDMFormValues(DDMForm, long, String) |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
static DDMFormInstanceRecord |
getFormInstanceRecord(long ddmFormInstanceRecordId) |
static java.util.List<DDMFormInstanceRecord> |
getFormInstanceRecords(long ddmFormInstanceId) |
static java.util.List<DDMFormInstanceRecord> |
getFormInstanceRecords(long ddmFormInstanceId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator) |
static java.util.List<DDMFormInstanceRecord> |
getFormInstanceRecords(long ddmFormInstanceId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator) |
static int |
getFormInstanceRecordsCount(long ddmFormInstanceId) |
static int |
getFormInstanceRecordsCount(long ddmFormInstanceId,
int status) |
static int |
getFormInstanceRecordsCount(long ddmFormInstanceId,
long userId) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static DDMFormInstanceRecordLocalService |
getService() |
static void |
revertFormInstanceRecord(long userId,
long ddmFormInstanceRecordId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.portal.kernel.search.BaseModelSearchResult<DDMFormInstanceRecord> |
searchFormInstanceRecords(com.liferay.portal.kernel.search.SearchContext searchContext) |
static DDMFormInstanceRecord |
updateDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
Updates the ddm form instance record in the database or adds it if it does not yet exist.
|
static DDMFormInstanceRecord |
updateFormInstanceRecord(long userId,
long ddmFormInstanceRecordId,
boolean majorVersion,
DDMFormValues ddmFormValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DDMFormInstanceRecord |
updateStatus(long userId,
long recordVersionId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public DDMFormInstanceRecordLocalServiceUtil()
public static DDMFormInstanceRecord addDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
ddmFormInstanceRecord
- the ddm form instance recordpublic static DDMFormInstanceRecord addFormInstanceRecord(long userId, long groupId, long ddmFormInstanceId, DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static DDMFormInstanceRecord createDDMFormInstanceRecord(long formInstanceRecordId)
formInstanceRecordId
- the primary key for the new ddm form instance recordpublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static DDMFormInstanceRecord deleteDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
ddmFormInstanceRecord
- the ddm form instance recordpublic static DDMFormInstanceRecord deleteDDMFormInstanceRecord(long formInstanceRecordId) throws com.liferay.portal.kernel.exception.PortalException
formInstanceRecordId
- the primary key of the ddm form instance recordPortalException
- if a ddm form instance record with the primary key could not be foundpublic static DDMFormInstanceRecord deleteFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static DDMFormInstanceRecord deleteFormInstanceRecord(long ddmFormInstanceRecordId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteFormInstanceRecords(long ddmFormInstanceId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.dynamic.data.mapping.model.impl.DDMFormInstanceRecordModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.dynamic.data.mapping.model.impl.DDMFormInstanceRecordModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static DDMFormInstanceRecord fetchDDMFormInstanceRecord(long formInstanceRecordId)
public static DDMFormInstanceRecord fetchDDMFormInstanceRecordByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid
- the ddm form instance record's UUIDgroupId
- the primary key of the groupnull
if a matching ddm form instance record could not be foundpublic static DDMFormInstanceRecord fetchFormInstanceRecord(long ddmFormInstanceRecordId)
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static DDMFormInstanceRecord getDDMFormInstanceRecord(long formInstanceRecordId) throws com.liferay.portal.kernel.exception.PortalException
formInstanceRecordId
- the primary key of the ddm form instance recordPortalException
- if a ddm form instance record with the primary key could not be foundpublic static DDMFormInstanceRecord getDDMFormInstanceRecordByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the ddm form instance record's UUIDgroupId
- the primary key of the groupPortalException
- if a matching ddm form instance record could not be foundpublic static java.util.List<DDMFormInstanceRecord> getDDMFormInstanceRecords(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.mapping.model.impl.DDMFormInstanceRecordModelImpl
.
start
- the lower bound of the range of ddm form instance recordsend
- the upper bound of the range of ddm form instance records (not inclusive)public static java.util.List<DDMFormInstanceRecord> getDDMFormInstanceRecordsByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the UUID of the ddm form instance recordscompanyId
- the primary key of the companypublic static java.util.List<DDMFormInstanceRecord> getDDMFormInstanceRecordsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator)
uuid
- the UUID of the ddm form instance recordscompanyId
- the primary key of the companystart
- the lower bound of the range of ddm form instance recordsend
- the upper bound of the range of ddm form instance records (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getDDMFormInstanceRecordsCount()
public static DDMFormValues getDDMFormValues(DDMForm ddmForm, long storageId, java.lang.String storageType) throws StorageException
StorageException
@Deprecated public static DDMFormValues getDDMFormValues(long storageId, DDMForm ddmForm) throws StorageException
getDDMFormValues(DDMForm, long, String)
StorageException
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
public static DDMFormInstanceRecord getFormInstanceRecord(long ddmFormInstanceRecordId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<DDMFormInstanceRecord> getFormInstanceRecords(long ddmFormInstanceId)
public static java.util.List<DDMFormInstanceRecord> getFormInstanceRecords(long ddmFormInstanceId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator)
public static java.util.List<DDMFormInstanceRecord> getFormInstanceRecords(long ddmFormInstanceId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFormInstanceRecord> orderByComparator)
public static int getFormInstanceRecordsCount(long ddmFormInstanceId)
public static int getFormInstanceRecordsCount(long ddmFormInstanceId, int status)
public static int getFormInstanceRecordsCount(long ddmFormInstanceId, long userId)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static void revertFormInstanceRecord(long userId, long ddmFormInstanceRecordId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.search.BaseModelSearchResult<DDMFormInstanceRecord> searchFormInstanceRecords(com.liferay.portal.kernel.search.SearchContext searchContext)
public static DDMFormInstanceRecord updateDDMFormInstanceRecord(DDMFormInstanceRecord ddmFormInstanceRecord)
ddmFormInstanceRecord
- the ddm form instance recordpublic static DDMFormInstanceRecord updateFormInstanceRecord(long userId, long ddmFormInstanceRecordId, boolean majorVersion, DDMFormValues ddmFormValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static DDMFormInstanceRecord updateStatus(long userId, long recordVersionId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static DDMFormInstanceRecordLocalService getService()