001
014
015 package com.liferay.portlet.announcements.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.service.BaseService;
024
025
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface AnnouncementsEntryService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
060 public void setBeanIdentifier(java.lang.String beanIdentifier);
061
062 public com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
063 long plid, long classNameId, long classPK, java.lang.String title,
064 java.lang.String content, java.lang.String url, java.lang.String type,
065 int displayDateMonth, int displayDateDay, int displayDateYear,
066 int displayDateHour, int displayDateMinute, boolean autoDisplayDate,
067 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
068 int expirationDateHour, int expirationDateMinute, int priority,
069 boolean alert)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073
078 public com.liferay.portlet.announcements.model.AnnouncementsEntry addEntry(
079 long plid, long classNameId, long classPK, java.lang.String title,
080 java.lang.String content, java.lang.String url, java.lang.String type,
081 int displayDateMonth, int displayDateDay, int displayDateYear,
082 int displayDateHour, int displayDateMinute, int expirationDateMonth,
083 int expirationDateDay, int expirationDateYear, int expirationDateHour,
084 int expirationDateMinute, int priority, boolean alert)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException;
087
088 public void deleteEntry(long entryId)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException;
091
092 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093 public com.liferay.portlet.announcements.model.AnnouncementsEntry getEntry(
094 long entryId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portlet.announcements.model.AnnouncementsEntry updateEntry(
099 long entryId, java.lang.String title, java.lang.String content,
100 java.lang.String url, java.lang.String type, int displayDateMonth,
101 int displayDateDay, int displayDateYear, int displayDateHour,
102 int displayDateMinute, int expirationDateMonth, int expirationDateDay,
103 int expirationDateYear, int expirationDateHour,
104 int expirationDateMinute, int priority)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException;
107 }