public class DispatchLogLocalServiceUtil
extends java.lang.Object
com.liferay.dispatch.service.impl.DispatchLogLocalServiceImpl
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.DispatchLogLocalService
Constructor and Description |
---|
DispatchLogLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static DispatchLog |
addDispatchLog(DispatchLog dispatchLog)
Adds the dispatch log to the database.
|
static DispatchLog |
addDispatchLog(long userId,
long dispatchTriggerId,
java.util.Date endDate,
java.lang.String error,
java.lang.String output,
java.util.Date startDate,
DispatchTaskStatus dispatchTaskStatus) |
static DispatchLog |
createDispatchLog(long dispatchLogId)
Creates a new dispatch log with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static DispatchLog |
deleteDispatchLog(DispatchLog dispatchLog)
Deletes the dispatch log from the database.
|
static DispatchLog |
deleteDispatchLog(long dispatchLogId)
Deletes the dispatch log with the primary key from the database.
|
static void |
deleteDispatchLogs(long dispatchTriggerId) |
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 DispatchLog |
fetchDispatchLog(long dispatchLogId) |
static DispatchLog |
fetchLatestDispatchLog(long dispatchTriggerId) |
static DispatchLog |
fetchLatestDispatchLog(long dispatchTriggerId,
DispatchTaskStatus dispatchTaskStatus) |
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static DispatchLog |
getDispatchLog(long dispatchLogId)
Returns the dispatch log with the primary key.
|
static java.util.List<DispatchLog> |
getDispatchLogs(int start,
int end)
Returns a range of all the dispatch logs.
|
static java.util.List<DispatchLog> |
getDispatchLogs(long dispatchTriggerId,
int start,
int end) |
static int |
getDispatchLogsCount()
Returns the number of dispatch logs.
|
static int |
getDispatchLogsCount(long dispatchTriggerId) |
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 DispatchLogLocalService |
getService() |
static DispatchLog |
updateDispatchLog(DispatchLog dispatchLog)
Updates the dispatch log in the database or adds it if it does not yet exist.
|
static DispatchLog |
updateDispatchLog(long dispatchLogId,
java.util.Date endDate,
java.lang.String error,
java.lang.String output,
DispatchTaskStatus dispatchTaskStatus) |
public static DispatchLog addDispatchLog(DispatchLog dispatchLog)
Important: Inspect DispatchLogLocalServiceImpl 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.
dispatchLog
- the dispatch logpublic static DispatchLog addDispatchLog(long userId, long dispatchTriggerId, java.util.Date endDate, java.lang.String error, java.lang.String output, java.util.Date startDate, DispatchTaskStatus dispatchTaskStatus) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static DispatchLog createDispatchLog(long dispatchLogId)
dispatchLogId
- the primary key for the new dispatch logpublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static DispatchLog deleteDispatchLog(DispatchLog dispatchLog)
Important: Inspect DispatchLogLocalServiceImpl 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.
dispatchLog
- the dispatch logpublic static DispatchLog deleteDispatchLog(long dispatchLogId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect DispatchLogLocalServiceImpl 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.
dispatchLogId
- the primary key of the dispatch logPortalException
- if a dispatch log with the primary key could not be foundpublic static void deleteDispatchLogs(long dispatchTriggerId)
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.dispatch.model.impl.DispatchLogModelImpl
.
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.dispatch.model.impl.DispatchLogModelImpl
.
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 DispatchLog fetchDispatchLog(long dispatchLogId)
public static DispatchLog fetchLatestDispatchLog(long dispatchTriggerId)
public static DispatchLog fetchLatestDispatchLog(long dispatchTriggerId, DispatchTaskStatus dispatchTaskStatus)
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static DispatchLog getDispatchLog(long dispatchLogId) throws com.liferay.portal.kernel.exception.PortalException
dispatchLogId
- the primary key of the dispatch logPortalException
- if a dispatch log with the primary key could not be foundpublic static java.util.List<DispatchLog> getDispatchLogs(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.dispatch.model.impl.DispatchLogModelImpl
.
start
- the lower bound of the range of dispatch logsend
- the upper bound of the range of dispatch logs (not inclusive)public static java.util.List<DispatchLog> getDispatchLogs(long dispatchTriggerId, int start, int end)
public static int getDispatchLogsCount()
public static int getDispatchLogsCount(long dispatchTriggerId)
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 DispatchLog updateDispatchLog(DispatchLog dispatchLog)
Important: Inspect DispatchLogLocalServiceImpl 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.
dispatchLog
- the dispatch logpublic static DispatchLog updateDispatchLog(long dispatchLogId, java.util.Date endDate, java.lang.String error, java.lang.String output, DispatchTaskStatus dispatchTaskStatus) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static DispatchLogLocalService getService()