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) voidvoidcheckEntries(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.voiddeleteEntries(long companyId) voiddeleteEntries(long classNameId, long classPK) voiddeleteEntries(long companyId, long classNameId, long classPK) voiddeleteEntry(long entryId) voiddeleteEntry(AnnouncementsEntry entry) deletePersistedModel(PersistedModel persistedModel) <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(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.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(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.intReturns 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) intgetEntriesCount(long userId, long classNameId, long[] classPKs, boolean alert, int flagValue) intgetEntriesCount(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) intgetEntriesCount(long companyId, long classNameId, long classPK, boolean alert) intgetEntriesCount(long userId, LinkedHashMap<Long, long[]> scopes, boolean alert, int flagValue) intgetEntriesCount(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) intgetUserEntriesCount(long userId) voidsetWrappedService(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, waitMethods 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:
addAnnouncementsEntryin 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:
addEntryin interfaceAnnouncementsEntryLocalService- Throws:
PortalException
-
checkEntries
- Specified by:
checkEntriesin interfaceAnnouncementsEntryLocalService- Throws:
PortalException
-
checkEntries
- Specified by:
checkEntriesin interfaceAnnouncementsEntryLocalService- Throws:
PortalException
-
createAnnouncementsEntry
Creates a new announcements entry with the primary key. Does not add the announcements entry to the database.- Specified by:
createAnnouncementsEntryin interfaceAnnouncementsEntryLocalService- Parameters:
entryId- the primary key for the new announcements entry- Returns:
- the new announcements entry
-
createPersistedModel
- Specified by:
createPersistedModelin interfaceAnnouncementsEntryLocalService- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
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:
deleteAnnouncementsEntryin 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:
deleteAnnouncementsEntryin 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:
deleteEntriesin interfaceAnnouncementsEntryLocalService
-
deleteEntries
- Specified by:
deleteEntriesin interfaceAnnouncementsEntryLocalService- Throws:
PortalException
-
deleteEntries
- Specified by:
deleteEntriesin interfaceAnnouncementsEntryLocalService- Throws:
PortalException
-
deleteEntry
- Specified by:
deleteEntryin interfaceAnnouncementsEntryLocalService- Throws:
PortalException
-
deleteEntry
- Specified by:
deleteEntryin interfaceAnnouncementsEntryLocalService- Throws:
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfaceAnnouncementsEntryLocalService- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceAnnouncementsEntryLocalService- Specified by:
dslQueryin interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceAnnouncementsEntryLocalService- Specified by:
dslQueryCountin interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceAnnouncementsEntryLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl.- Specified by:
dynamicQueryin 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl.- Specified by:
dynamicQueryin 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:
dynamicQueryCountin 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:
dynamicQueryCountin 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:
fetchAnnouncementsEntryin interfaceAnnouncementsEntryLocalService
-
fetchAnnouncementsEntryByUuidAndCompanyId
Returns the announcements entry with the matching UUID and company.- Specified by:
fetchAnnouncementsEntryByUuidAndCompanyIdin interfaceAnnouncementsEntryLocalService- Parameters:
uuid- the announcements entry's UUIDcompanyId- the primary key of the company- Returns:
- the matching announcements entry, or
nullif a matching announcements entry could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceAnnouncementsEntryLocalService
-
getAnnouncementsEntries
Returns a range of all the announcements entries.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl.- Specified by:
getAnnouncementsEntriesin 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:
getAnnouncementsEntriesCountin interfaceAnnouncementsEntryLocalService- Returns:
- the number of announcements entries
-
getAnnouncementsEntry
Returns the announcements entry with the primary key.- Specified by:
getAnnouncementsEntryin 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:
getAnnouncementsEntryByUuidAndCompanyIdin 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:
getEntriesin 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:
getEntriesin interfaceAnnouncementsEntryLocalService
-
getEntries
public List<AnnouncementsEntry> getEntries(long companyId, long classNameId, long classPK, boolean alert, int start, int end) - Specified by:
getEntriesin 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:
getEntriesin interfaceAnnouncementsEntryLocalService
-
getEntriesCount
public int getEntriesCount(long userId, LinkedHashMap<Long, long[]> scopes, boolean alert, int flagValue) - Specified by:
getEntriesCountin 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:
getEntriesCountin interfaceAnnouncementsEntryLocalService
-
getEntriesCount
public int getEntriesCount(long companyId, long classNameId, long classPK, boolean alert) - Specified by:
getEntriesCountin interfaceAnnouncementsEntryLocalService
-
getEntriesCount
public int getEntriesCount(long userId, long classNameId, long[] classPKs, boolean alert, int flagValue) - Specified by:
getEntriesCountin 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:
getEntriesCountin interfaceAnnouncementsEntryLocalService
-
getEntry
- Specified by:
getEntryin interfaceAnnouncementsEntryLocalService- Throws:
PortalException
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceAnnouncementsEntryLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceAnnouncementsEntryLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceAnnouncementsEntryLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfaceAnnouncementsEntryLocalService- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
getUserEntries
- Specified by:
getUserEntriesin interfaceAnnouncementsEntryLocalService
-
getUserEntriesCount
public int getUserEntriesCount(long userId) - Specified by:
getUserEntriesCountin 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:
updateAnnouncementsEntryin 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:
updateEntryin interfaceAnnouncementsEntryLocalService- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceAnnouncementsEntryLocalService- Specified by:
getCTPersistencein interfaceCTService<AnnouncementsEntry>
-
getModelClass
- Specified by:
getModelClassin interfaceAnnouncementsEntryLocalService- Specified by:
getModelClassin interfaceCTService<AnnouncementsEntry>
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AnnouncementsEntry>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceAnnouncementsEntryLocalService- Specified by:
updateWithUnsafeFunctionin interfaceCTService<AnnouncementsEntry>- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<AnnouncementsEntryLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<AnnouncementsEntryLocalService>
-