Class AnnouncementsEntryLocalServiceWrapper
- All Implemented Interfaces:
AnnouncementsEntryLocalService
,BaseLocalService
,CTService<AnnouncementsEntry>
,PersistedModelLocalService
,ServiceWrapper<AnnouncementsEntryLocalService>
AnnouncementsEntryLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionAnnouncementsEntryLocalServiceWrapper
(AnnouncementsEntryLocalService announcementsEntryLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddAnnouncementsEntry
(AnnouncementsEntry announcementsEntry) Adds the announcements entry to the database.addEntry
(long userId, long classNameId, long classPK, String title, String content, String url, String type, Date displayDate, Date expirationDate, int priority, boolean alert) void
void
checkEntries
(Date startDate, Date endDate) createAnnouncementsEntry
(long entryId) Creates a new announcements entry with the primary key.createPersistedModel
(Serializable primaryKeyObj) deleteAnnouncementsEntry
(long entryId) Deletes the announcements entry with the primary key from the database.deleteAnnouncementsEntry
(AnnouncementsEntry announcementsEntry) Deletes the announcements entry from the database.void
deleteEntries
(long companyId) void
deleteEntries
(long classNameId, long classPK) void
deleteEntries
(long companyId, long classNameId, long classPK) void
deleteEntry
(long entryId) void
deleteEntry
(AnnouncementsEntry entry) deletePersistedModel
(PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchAnnouncementsEntry
(long entryId) fetchAnnouncementsEntryByUuidAndCompanyId
(String uuid, long companyId) Returns the announcements entry with the matching UUID and company.getAnnouncementsEntries
(int start, int end) Returns a range of all the announcements entries.int
Returns the number of announcements entries.getAnnouncementsEntry
(long entryId) Returns the announcements entry with the primary key.getAnnouncementsEntryByUuidAndCompanyId
(String uuid, long companyId) Returns the announcements entry with the matching UUID and company.getEntries
(long userId, long classNameId, long[] classPKs, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean alert, int flagValue, int start, int end) getEntries
(long companyId, long classNameId, long classPK, boolean alert, int start, int end) getEntries
(long userId, LinkedHashMap<Long, long[]> scopes, boolean alert, int flagValue, int start, int end) getEntries
(long userId, LinkedHashMap<Long, long[]> scopes, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean alert, int flagValue, int start, int end) int
getEntriesCount
(long userId, long classNameId, long[] classPKs, boolean alert, int flagValue) int
getEntriesCount
(long userId, long classNameId, long[] classPKs, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean alert, int flagValue) int
getEntriesCount
(long companyId, long classNameId, long classPK, boolean alert) int
getEntriesCount
(long userId, LinkedHashMap<Long, long[]> scopes, boolean alert, int flagValue) int
getEntriesCount
(long userId, LinkedHashMap<Long, long[]> scopes, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean alert, int flagValue) getEntry
(long entryId) getExportActionableDynamicQuery
(PortletDataContext portletDataContext) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) getUserEntries
(long userId, int start, int end) int
getUserEntriesCount
(long userId) void
setWrappedService
(AnnouncementsEntryLocalService announcementsEntryLocalService) updateAnnouncementsEntry
(AnnouncementsEntry announcementsEntry) Updates the announcements entry in the database or adds it if it does not yet exist.updateEntry
(long entryId, String title, String content, String url, String type, Date displayDate, Date expirationDate, int priority) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<AnnouncementsEntry>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
AnnouncementsEntryLocalServiceWrapper
public AnnouncementsEntryLocalServiceWrapper() -
AnnouncementsEntryLocalServiceWrapper
public AnnouncementsEntryLocalServiceWrapper(AnnouncementsEntryLocalService announcementsEntryLocalService)
-
-
Method Details
-
addAnnouncementsEntry
Adds the announcements entry to the database. Also notifies the appropriate model listeners.Important: Inspect AnnouncementsEntryLocalServiceImpl 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.
- Specified by:
addAnnouncementsEntry
in interfaceAnnouncementsEntryLocalService
- Parameters:
announcementsEntry
- the announcements entry- Returns:
- the announcements entry that was added
-
addEntry
public AnnouncementsEntry addEntry(long userId, long classNameId, long classPK, String title, String content, String url, String type, Date displayDate, Date expirationDate, int priority, boolean alert) throws PortalException - Specified by:
addEntry
in interfaceAnnouncementsEntryLocalService
- Throws:
PortalException
-
checkEntries
- Specified by:
checkEntries
in interfaceAnnouncementsEntryLocalService
- Throws:
PortalException
-
checkEntries
- Specified by:
checkEntries
in interfaceAnnouncementsEntryLocalService
- Throws:
PortalException
-
createAnnouncementsEntry
Creates a new announcements entry with the primary key. Does not add the announcements entry to the database.- Specified by:
createAnnouncementsEntry
in interfaceAnnouncementsEntryLocalService
- Parameters:
entryId
- the primary key for the new announcements entry- Returns:
- the new announcements entry
-
createPersistedModel
- Specified by:
createPersistedModel
in interfaceAnnouncementsEntryLocalService
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
deleteAnnouncementsEntry
Deletes the announcements entry from the database. Also notifies the appropriate model listeners.Important: Inspect AnnouncementsEntryLocalServiceImpl 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.
- Specified by:
deleteAnnouncementsEntry
in interfaceAnnouncementsEntryLocalService
- Parameters:
announcementsEntry
- the announcements entry- Returns:
- the announcements entry that was removed
-
deleteAnnouncementsEntry
Deletes the announcements entry with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect AnnouncementsEntryLocalServiceImpl 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.
- Specified by:
deleteAnnouncementsEntry
in interfaceAnnouncementsEntryLocalService
- Parameters:
entryId
- the primary key of the announcements entry- Returns:
- the announcements entry that was removed
- Throws:
PortalException
- if a announcements entry with the primary key could not be foundPortalException
-
deleteEntries
public void deleteEntries(long companyId) - Specified by:
deleteEntries
in interfaceAnnouncementsEntryLocalService
-
deleteEntries
- Specified by:
deleteEntries
in interfaceAnnouncementsEntryLocalService
- Throws:
PortalException
-
deleteEntries
- Specified by:
deleteEntries
in interfaceAnnouncementsEntryLocalService
- Throws:
PortalException
-
deleteEntry
- Specified by:
deleteEntry
in interfaceAnnouncementsEntryLocalService
- Throws:
PortalException
-
deleteEntry
- Specified by:
deleteEntry
in interfaceAnnouncementsEntryLocalService
- Throws:
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfaceAnnouncementsEntryLocalService
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceAnnouncementsEntryLocalService
- Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceAnnouncementsEntryLocalService
- Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfaceAnnouncementsEntryLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceAnnouncementsEntryLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl
.- Specified by:
dynamicQuery
in interfaceAnnouncementsEntryLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl
.- Specified by:
dynamicQuery
in interfaceAnnouncementsEntryLocalService
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceAnnouncementsEntryLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceAnnouncementsEntryLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAnnouncementsEntry
- Specified by:
fetchAnnouncementsEntry
in interfaceAnnouncementsEntryLocalService
-
fetchAnnouncementsEntryByUuidAndCompanyId
Returns the announcements entry with the matching UUID and company.- Specified by:
fetchAnnouncementsEntryByUuidAndCompanyId
in interfaceAnnouncementsEntryLocalService
- Parameters:
uuid
- the announcements entry's UUIDcompanyId
- the primary key of the company- Returns:
- the matching announcements entry, or
null
if a matching announcements entry could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfaceAnnouncementsEntryLocalService
-
getAnnouncementsEntries
Returns a range of all the announcements entries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl
.- Specified by:
getAnnouncementsEntries
in interfaceAnnouncementsEntryLocalService
- Parameters:
start
- the lower bound of the range of announcements entriesend
- the upper bound of the range of announcements entries (not inclusive)- Returns:
- the range of announcements entries
-
getAnnouncementsEntriesCount
public int getAnnouncementsEntriesCount()Returns the number of announcements entries.- Specified by:
getAnnouncementsEntriesCount
in interfaceAnnouncementsEntryLocalService
- Returns:
- the number of announcements entries
-
getAnnouncementsEntry
Returns the announcements entry with the primary key.- Specified by:
getAnnouncementsEntry
in interfaceAnnouncementsEntryLocalService
- Parameters:
entryId
- the primary key of the announcements entry- Returns:
- the announcements entry
- Throws:
PortalException
- if a announcements entry with the primary key could not be foundPortalException
-
getAnnouncementsEntryByUuidAndCompanyId
public AnnouncementsEntry getAnnouncementsEntryByUuidAndCompanyId(String uuid, long companyId) throws PortalException Returns the announcements entry with the matching UUID and company.- Specified by:
getAnnouncementsEntryByUuidAndCompanyId
in interfaceAnnouncementsEntryLocalService
- Parameters:
uuid
- the announcements entry's UUIDcompanyId
- the primary key of the company- Returns:
- the matching announcements entry
- Throws:
PortalException
- if a matching announcements entry could not be foundPortalException
-
getEntries
public List<AnnouncementsEntry> getEntries(long userId, LinkedHashMap<Long, long[]> scopes, boolean alert, int flagValue, int start, int end) - Specified by:
getEntries
in interfaceAnnouncementsEntryLocalService
-
getEntries
public List<AnnouncementsEntry> getEntries(long userId, LinkedHashMap<Long, long[]> scopes, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean alert, int flagValue, int start, int end) - Specified by:
getEntries
in interfaceAnnouncementsEntryLocalService
-
getEntries
public List<AnnouncementsEntry> getEntries(long companyId, long classNameId, long classPK, boolean alert, int start, int end) - Specified by:
getEntries
in interfaceAnnouncementsEntryLocalService
-
getEntries
public List<AnnouncementsEntry> getEntries(long userId, long classNameId, long[] classPKs, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean alert, int flagValue, int start, int end) - Specified by:
getEntries
in interfaceAnnouncementsEntryLocalService
-
getEntriesCount
public int getEntriesCount(long userId, LinkedHashMap<Long, long[]> scopes, boolean alert, int flagValue) - Specified by:
getEntriesCount
in interfaceAnnouncementsEntryLocalService
-
getEntriesCount
public int getEntriesCount(long userId, LinkedHashMap<Long, long[]> scopes, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean alert, int flagValue) - Specified by:
getEntriesCount
in interfaceAnnouncementsEntryLocalService
-
getEntriesCount
public int getEntriesCount(long companyId, long classNameId, long classPK, boolean alert) - Specified by:
getEntriesCount
in interfaceAnnouncementsEntryLocalService
-
getEntriesCount
public int getEntriesCount(long userId, long classNameId, long[] classPKs, boolean alert, int flagValue) - Specified by:
getEntriesCount
in interfaceAnnouncementsEntryLocalService
-
getEntriesCount
public int getEntriesCount(long userId, long classNameId, long[] classPKs, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean alert, int flagValue) - Specified by:
getEntriesCount
in interfaceAnnouncementsEntryLocalService
-
getEntry
- Specified by:
getEntry
in interfaceAnnouncementsEntryLocalService
- Throws:
PortalException
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceAnnouncementsEntryLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfaceAnnouncementsEntryLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceAnnouncementsEntryLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModel
in interfaceAnnouncementsEntryLocalService
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
getUserEntries
- Specified by:
getUserEntries
in interfaceAnnouncementsEntryLocalService
-
getUserEntriesCount
public int getUserEntriesCount(long userId) - Specified by:
getUserEntriesCount
in interfaceAnnouncementsEntryLocalService
-
updateAnnouncementsEntry
Updates the announcements entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect AnnouncementsEntryLocalServiceImpl 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.
- Specified by:
updateAnnouncementsEntry
in interfaceAnnouncementsEntryLocalService
- Parameters:
announcementsEntry
- the announcements entry- Returns:
- the announcements entry that was updated
-
updateEntry
public AnnouncementsEntry updateEntry(long entryId, String title, String content, String url, String type, Date displayDate, Date expirationDate, int priority) throws PortalException - Specified by:
updateEntry
in interfaceAnnouncementsEntryLocalService
- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceAnnouncementsEntryLocalService
- Specified by:
getCTPersistence
in interfaceCTService<AnnouncementsEntry>
-
getModelClass
- Specified by:
getModelClass
in interfaceAnnouncementsEntryLocalService
- Specified by:
getModelClass
in interfaceCTService<AnnouncementsEntry>
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AnnouncementsEntry>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceAnnouncementsEntryLocalService
- Specified by:
updateWithUnsafeFunction
in interfaceCTService<AnnouncementsEntry>
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<AnnouncementsEntryLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<AnnouncementsEntryLocalService>
-