@ProviderType public class TacticLocalServiceWrapper extends java.lang.Object implements TacticLocalService, com.liferay.portal.kernel.service.ServiceWrapper<TacticLocalService>
TacticLocalService
.TacticLocalService
Constructor and Description |
---|
TacticLocalServiceWrapper(TacticLocalService tacticLocalService) |
Modifier and Type | Method and Description |
---|---|
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) |
Tactic |
addTactic(Tactic tactic)
Adds the tactic to the database.
|
void |
addUserSegmentTactic(long userSegmentId,
long tacticId) |
void |
addUserSegmentTactic(long userSegmentId,
Tactic tactic) |
void |
addUserSegmentTactics(long userSegmentId,
java.util.List<Tactic> tactics) |
void |
addUserSegmentTactics(long userSegmentId,
long[] tacticIds) |
void |
clearUserSegmentTactics(long userSegmentId) |
Tactic |
createTactic(long tacticId)
Creates a new tactic with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
Tactic |
deleteTactic(long tacticId)
Deletes the tactic with the primary key from the database.
|
Tactic |
deleteTactic(Tactic tactic)
Deletes the tactic from the database.
|
void |
deleteUserSegmentTactic(long userSegmentId,
long tacticId) |
void |
deleteUserSegmentTactic(long userSegmentId,
Tactic tactic) |
void |
deleteUserSegmentTactics(long userSegmentId,
java.util.List<Tactic> tactics) |
void |
deleteUserSegmentTactics(long userSegmentId,
long[] tacticIds) |
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.
|
Tactic |
fetchTactic(long tacticId) |
Tactic |
fetchTacticByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the tactic matching the UUID and group.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
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.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
Tactic |
getTactic(long tacticId)
Returns the tactic with the primary key.
|
Tactic |
getTacticByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the tactic matching the UUID and group.
|
java.util.List<Tactic> |
getTactics(int start,
int end)
Returns a range of all the tactics.
|
java.util.List<Tactic> |
getTactics(long campaignId) |
java.util.List<Tactic> |
getTactics(long campaignId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
java.util.List<Tactic> |
getTacticsByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the tactics matching the UUID and company.
|
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.
|
int |
getTacticsCount()
Returns the number of tactics.
|
int |
getTacticsCount(long campaignId) |
long[] |
getUserSegmentPrimaryKeys(long tacticId)
Returns the userSegmentIds of the user segments associated with the tactic.
|
java.util.List<Tactic> |
getUserSegmentTactics(long userSegmentId) |
java.util.List<Tactic> |
getUserSegmentTactics(long userSegmentId,
int start,
int end) |
java.util.List<Tactic> |
getUserSegmentTactics(long userSegmentId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator) |
int |
getUserSegmentTacticsCount(long userSegmentId) |
TacticLocalService |
getWrappedService() |
boolean |
hasUserSegmentTactic(long userSegmentId,
long tacticId) |
boolean |
hasUserSegmentTactics(long userSegmentId) |
BaseModelSearchResult<Tactic> |
searchTactics(long campaignId,
long groupId,
java.lang.String keywords,
int start,
int end) |
BaseModelSearchResult<Tactic> |
searchTactics(long campaignId,
long groupId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
BaseModelSearchResult<Tactic> |
searchTactics(long groupId,
java.lang.String keywords,
int start,
int end) |
BaseModelSearchResult<Tactic> |
searchTactics(long groupId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
void |
setUserSegmentTactics(long userSegmentId,
long[] tacticIds) |
void |
setWrappedService(TacticLocalService tacticLocalService) |
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) |
Tactic |
updateTactic(Tactic tactic)
Updates the tactic in the database or adds it if it does not yet exist.
|
public TacticLocalServiceWrapper(TacticLocalService tacticLocalService)
public boolean hasUserSegmentTactic(long userSegmentId, long tacticId)
hasUserSegmentTactic
in interface TacticLocalService
public boolean hasUserSegmentTactics(long userSegmentId)
hasUserSegmentTactics
in interface TacticLocalService
public Tactic addTactic(Tactic tactic)
addTactic
in interface TacticLocalService
tactic
- the tacticpublic 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
addTactic
in interface TacticLocalService
com.liferay.portal.kernel.exception.PortalException
public Tactic createTactic(long tacticId)
createTactic
in interface TacticLocalService
tacticId
- the primary key for the new tacticpublic Tactic deleteTactic(Tactic tactic) throws com.liferay.portal.kernel.exception.PortalException
deleteTactic
in interface TacticLocalService
tactic
- the tacticPortalException
public Tactic deleteTactic(long tacticId) throws com.liferay.portal.kernel.exception.PortalException
deleteTactic
in interface TacticLocalService
tacticId
- the primary key of the tacticPortalException
- if a tactic with the primary key could not be foundpublic Tactic fetchTactic(long tacticId)
fetchTactic
in interface TacticLocalService
public Tactic fetchTacticByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchTacticByUuidAndGroupId
in interface TacticLocalService
uuid
- the tactic's UUIDgroupId
- the primary key of the groupnull
if a matching tactic could not be foundpublic Tactic getTactic(long tacticId) throws com.liferay.portal.kernel.exception.PortalException
getTactic
in interface TacticLocalService
tacticId
- the primary key of the tacticPortalException
- if a tactic with the primary key could not be foundpublic Tactic getTacticByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getTacticByUuidAndGroupId
in interface TacticLocalService
uuid
- the tactic's UUIDgroupId
- the primary key of the groupPortalException
- if a matching tactic could not be foundpublic Tactic updateTactic(Tactic tactic)
updateTactic
in interface TacticLocalService
tactic
- the tacticpublic 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
updateTactic
in interface TacticLocalService
com.liferay.portal.kernel.exception.PortalException
public BaseModelSearchResult<Tactic> searchTactics(long campaignId, long groupId, java.lang.String keywords, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
searchTactics
in interface TacticLocalService
com.liferay.portal.kernel.exception.PortalException
public 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
searchTactics
in interface TacticLocalService
com.liferay.portal.kernel.exception.PortalException
public BaseModelSearchResult<Tactic> searchTactics(long groupId, java.lang.String keywords, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
searchTactics
in interface TacticLocalService
com.liferay.portal.kernel.exception.PortalException
public 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
searchTactics
in interface TacticLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface TacticLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface TacticLocalService
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface TacticLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface TacticLocalService
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface TacticLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface TacticLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
public int getTacticsCount()
getTacticsCount
in interface TacticLocalService
public int getTacticsCount(long campaignId) throws com.liferay.portal.kernel.exception.PortalException
getTacticsCount
in interface TacticLocalService
com.liferay.portal.kernel.exception.PortalException
public int getUserSegmentTacticsCount(long userSegmentId)
getUserSegmentTacticsCount
in interface TacticLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface TacticLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface TacticLocalService
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 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
in interface TacticLocalService
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 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
in interface TacticLocalService
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 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.
getTactics
in interface TacticLocalService
start
- the lower bound of the range of tacticsend
- the upper bound of the range of tactics (not inclusive)public java.util.List<Tactic> getTactics(long campaignId) throws com.liferay.portal.kernel.exception.PortalException
getTactics
in interface TacticLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<Tactic> getTactics(long campaignId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc) throws com.liferay.portal.kernel.exception.PortalException
getTactics
in interface TacticLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<Tactic> getTacticsByUuidAndCompanyId(java.lang.String uuid, long companyId)
getTacticsByUuidAndCompanyId
in interface TacticLocalService
uuid
- the UUID of the tacticscompanyId
- the primary key of the companypublic java.util.List<Tactic> getTacticsByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
getTacticsByUuidAndCompanyId
in interface TacticLocalService
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 java.util.List<Tactic> getUserSegmentTactics(long userSegmentId)
getUserSegmentTactics
in interface TacticLocalService
public java.util.List<Tactic> getUserSegmentTactics(long userSegmentId, int start, int end)
getUserSegmentTactics
in interface TacticLocalService
public java.util.List<Tactic> getUserSegmentTactics(long userSegmentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Tactic> orderByComparator)
getUserSegmentTactics
in interface TacticLocalService
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface TacticLocalService
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 TacticLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic long[] getUserSegmentPrimaryKeys(long tacticId)
getUserSegmentPrimaryKeys
in interface TacticLocalService
tacticId
- the tacticId of the tacticpublic void addUserSegmentTactic(long userSegmentId, Tactic tactic)
addUserSegmentTactic
in interface TacticLocalService
public void addUserSegmentTactic(long userSegmentId, long tacticId)
addUserSegmentTactic
in interface TacticLocalService
public void addUserSegmentTactics(long userSegmentId, java.util.List<Tactic> tactics)
addUserSegmentTactics
in interface TacticLocalService
public void addUserSegmentTactics(long userSegmentId, long[] tacticIds)
addUserSegmentTactics
in interface TacticLocalService
public void clearUserSegmentTactics(long userSegmentId)
clearUserSegmentTactics
in interface TacticLocalService
public void deleteUserSegmentTactic(long userSegmentId, Tactic tactic)
deleteUserSegmentTactic
in interface TacticLocalService
public void deleteUserSegmentTactic(long userSegmentId, long tacticId)
deleteUserSegmentTactic
in interface TacticLocalService
public void deleteUserSegmentTactics(long userSegmentId, java.util.List<Tactic> tactics)
deleteUserSegmentTactics
in interface TacticLocalService
public void deleteUserSegmentTactics(long userSegmentId, long[] tacticIds)
deleteUserSegmentTactics
in interface TacticLocalService
public void setUserSegmentTactics(long userSegmentId, long[] tacticIds)
setUserSegmentTactics
in interface TacticLocalService
public TacticLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<TacticLocalService>
public void setWrappedService(TacticLocalService tacticLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<TacticLocalService>