@ProviderType
public class TacticLocalServiceUtil
extends java.lang.Object
com.liferay.content.targeting.service.impl.TacticLocalServiceImpl and is the
primary 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.TacticLocalService,
com.liferay.content.targeting.service.base.TacticLocalServiceBaseImpl,
com.liferay.content.targeting.service.impl.TacticLocalServiceImpl| Constructor and Description |
|---|
TacticLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Tactic |
addTactic(long userId,
long campaignId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long[] userSegmentsIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static Tactic |
addTactic(Tactic tactic)
Adds the tactic to the database.
|
static void |
addUserSegmentTactic(long userSegmentId,
long tacticId) |
static void |
addUserSegmentTactic(long userSegmentId,
Tactic tactic) |
static void |
addUserSegmentTactics(long userSegmentId,
java.util.List<Tactic> tactics) |
static void |
addUserSegmentTactics(long userSegmentId,
long[] tacticIds) |
static void |
clearUserSegmentTactics(long userSegmentId) |
static Tactic |
createTactic(long tacticId)
Creates a new tactic with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static Tactic |
deleteTactic(long tacticId)
Deletes the tactic with the primary key from the database.
|
static Tactic |
deleteTactic(Tactic tactic)
Deletes the tactic from the database.
|
static void |
deleteUserSegmentTactic(long userSegmentId,
long tacticId) |
static void |
deleteUserSegmentTactic(long userSegmentId,
Tactic tactic) |
static void |
deleteUserSegmentTactics(long userSegmentId,
java.util.List<Tactic> tactics) |
static void |
deleteUserSegmentTactics(long userSegmentId,
long[] tacticIds) |
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 Tactic |
fetchTactic(long tacticId) |
static Tactic |
fetchTacticByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the tactic matching the UUID and group.
|
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
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 TacticLocalService |
getService() |
static Tactic |
getTactic(long tacticId)
Returns the tactic with the primary key.
|
static Tactic |
getTacticByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the tactic matching the UUID and group.
|
static java.util.List<Tactic> |
getTactics(int start,
int end)
Returns a range of all the tactics.
|
static java.util.List<Tactic> |
getTactics(long campaignId) |
static java.util.List<Tactic> |
getTactics(long campaignId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
static java.util.List<Tactic> |
getTacticsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the tactics matching the UUID and company.
|
static java.util.List<Tactic> |
getTacticsByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
Returns a range of tactics matching the UUID and company.
|
static int |
getTacticsCount()
Returns the number of tactics.
|
static int |
getTacticsCount(long campaignId) |
static long[] |
getUserSegmentPrimaryKeys(long tacticId)
Returns the userSegmentIds of the user segments associated with the tactic.
|
static java.util.List<Tactic> |
getUserSegmentTactics(long userSegmentId) |
static java.util.List<Tactic> |
getUserSegmentTactics(long userSegmentId,
int start,
int end) |
static java.util.List<Tactic> |
getUserSegmentTactics(long userSegmentId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) |
static int |
getUserSegmentTacticsCount(long userSegmentId) |
static boolean |
hasUserSegmentTactic(long userSegmentId,
long tacticId) |
static boolean |
hasUserSegmentTactics(long userSegmentId) |
static BaseModelSearchResult<Tactic> |
searchTactics(long campaignId,
long groupId,
java.lang.String keywords,
int start,
int end) |
static BaseModelSearchResult<Tactic> |
searchTactics(long campaignId,
long groupId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
static BaseModelSearchResult<Tactic> |
searchTactics(long groupId,
java.lang.String keywords,
int start,
int end) |
static BaseModelSearchResult<Tactic> |
searchTactics(long groupId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
static void |
setUserSegmentTactics(long userSegmentId,
long[] tacticIds) |
static Tactic |
updateTactic(long tacticId,
long campaignId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long[] userSegmentsIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static Tactic |
updateTactic(Tactic tactic)
Updates the tactic in the database or adds it if it does not yet exist.
|
public static Tactic addTactic(long userId, long campaignId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, long[] userSegmentsIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static Tactic addTactic(Tactic tactic)
tactic - the tacticpublic static void addUserSegmentTactic(long userSegmentId,
long tacticId)
public static void addUserSegmentTactic(long userSegmentId,
Tactic tactic)
public static void addUserSegmentTactics(long userSegmentId,
java.util.List<Tactic> tactics)
public static void addUserSegmentTactics(long userSegmentId,
long[] tacticIds)
public static void clearUserSegmentTactics(long userSegmentId)
public static Tactic createTactic(long tacticId)
tacticId - the primary key for the new tacticpublic static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
PortalExceptionpublic static Tactic deleteTactic(long tacticId) throws com.liferay.portal.kernel.exception.PortalException
tacticId - the primary key of the tacticPortalException - if a tactic with the primary key could not be foundpublic static Tactic deleteTactic(Tactic tactic) throws com.liferay.portal.kernel.exception.PortalException
tactic - the tacticPortalExceptionpublic static void deleteUserSegmentTactic(long userSegmentId,
long tacticId)
public static void deleteUserSegmentTactic(long userSegmentId,
Tactic tactic)
public static void deleteUserSegmentTactics(long userSegmentId,
java.util.List<Tactic> tactics)
public static void deleteUserSegmentTactics(long userSegmentId,
long[] tacticIds)
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 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 com.liferay.content.targeting.model.impl.TacticModelImpl. 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)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 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 com.liferay.content.targeting.model.impl.TacticModelImpl. 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)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 Tactic fetchTactic(long tacticId)
public static Tactic fetchTacticByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid - the tactic's UUIDgroupId - the primary key of the groupnull if a matching tactic could not be foundpublic static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
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
com.liferay.portal.kernel.exception.PortalExceptionpublic static Tactic getTactic(long tacticId) throws com.liferay.portal.kernel.exception.PortalException
tacticId - the primary key of the tacticPortalException - if a tactic with the primary key could not be foundpublic static Tactic getTacticByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
uuid - the tactic's UUIDgroupId - the primary key of the groupPortalException - if a matching tactic could not be foundpublic static java.util.List<Tactic> getTactics(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 com.liferay.content.targeting.model.impl.TacticModelImpl. 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 tacticsend - the upper bound of the range of tactics (not inclusive)public static java.util.List<Tactic> getTactics(long campaignId)
public static java.util.List<Tactic> getTactics(long campaignId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
public static java.util.List<Tactic> getTacticsByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid - the UUID of the tacticscompanyId - the primary key of the companypublic static java.util.List<Tactic> getTacticsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
uuid - the UUID of the tacticscompanyId - the primary key of the companystart - the lower bound of the range of tacticsend - the upper bound of the range of tactics (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static int getTacticsCount()
public static int getTacticsCount(long campaignId)
public static long[] getUserSegmentPrimaryKeys(long tacticId)
tacticId - the tacticId of the tacticpublic static java.util.List<Tactic> getUserSegmentTactics(long userSegmentId)
public static java.util.List<Tactic> getUserSegmentTactics(long userSegmentId, int start, int end)
public static java.util.List<Tactic> getUserSegmentTactics(long userSegmentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
public static int getUserSegmentTacticsCount(long userSegmentId)
public static boolean hasUserSegmentTactic(long userSegmentId,
long tacticId)
public static boolean hasUserSegmentTactics(long userSegmentId)
public static BaseModelSearchResult<Tactic> searchTactics(long campaignId, long groupId, java.lang.String keywords, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static BaseModelSearchResult<Tactic> searchTactics(long campaignId, long groupId, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static BaseModelSearchResult<Tactic> searchTactics(long groupId, java.lang.String keywords, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static BaseModelSearchResult<Tactic> searchTactics(long groupId, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void setUserSegmentTactics(long userSegmentId,
long[] tacticIds)
public static Tactic updateTactic(long tacticId, long campaignId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, long[] userSegmentsIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static Tactic updateTactic(Tactic tactic)
tactic - the tacticpublic static TacticLocalService getService()