1
14
15 package com.liferay.portlet.journal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface JournalStructureLocalService {
50 public com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
51 com.liferay.portlet.journal.model.JournalStructure journalStructure)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
55 long id);
56
57 public void deleteJournalStructure(long id)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteJournalStructure(
62 com.liferay.portlet.journal.model.JournalStructure journalStructure)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
75 long id)
76 throws com.liferay.portal.kernel.exception.PortalException,
77 com.liferay.portal.kernel.exception.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
81 int start, int end)
82 throws com.liferay.portal.kernel.exception.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public int getJournalStructuresCount()
86 throws com.liferay.portal.kernel.exception.SystemException;
87
88 public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
89 com.liferay.portlet.journal.model.JournalStructure journalStructure)
90 throws com.liferay.portal.kernel.exception.SystemException;
91
92 public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
93 com.liferay.portlet.journal.model.JournalStructure journalStructure,
94 boolean merge)
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 public com.liferay.portlet.journal.model.JournalStructure addStructure(
98 long userId, long groupId, java.lang.String structureId,
99 boolean autoStructureId, java.lang.String parentStructureId,
100 java.lang.String name, java.lang.String description,
101 java.lang.String xsd,
102 com.liferay.portal.service.ServiceContext serviceContext)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException;
105
106 public com.liferay.portlet.journal.model.JournalStructure addStructure(
107 java.lang.String uuid, long userId, long groupId,
108 java.lang.String structureId, boolean autoStructureId,
109 java.lang.String parentStructureId, java.lang.String name,
110 java.lang.String description, java.lang.String xsd,
111 com.liferay.portal.service.ServiceContext serviceContext)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException;
114
115 public void addStructureResources(long groupId,
116 java.lang.String structureId, boolean addCommunityPermissions,
117 boolean addGuestPermissions)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void addStructureResources(
122 com.liferay.portlet.journal.model.JournalStructure structure,
123 boolean addCommunityPermissions, boolean addGuestPermissions)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126
127 public void addStructureResources(long groupId,
128 java.lang.String structureId, java.lang.String[] communityPermissions,
129 java.lang.String[] guestPermissions)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 public void addStructureResources(
134 com.liferay.portlet.journal.model.JournalStructure structure,
135 java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 public void checkNewLine(long groupId, java.lang.String structureId)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException;
143
144 public com.liferay.portlet.journal.model.JournalStructure copyStructure(
145 long userId, long groupId, java.lang.String oldStructureId,
146 java.lang.String newStructureId, boolean autoStructureId)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 public void deleteStructure(long groupId, java.lang.String structureId)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException;
153
154 public void deleteStructure(
155 com.liferay.portlet.journal.model.JournalStructure structure)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159 public void deleteStructures(long groupId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portlet.journal.model.JournalStructure getStructure(
165 long id)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.journal.model.JournalStructure getStructure(
171 long groupId, java.lang.String structureId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
177 throws com.liferay.portal.kernel.exception.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
181 long groupId)
182 throws com.liferay.portal.kernel.exception.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
186 long groupId, int start, int end)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public int getStructuresCount(long groupId)
191 throws com.liferay.portal.kernel.exception.SystemException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
195 long companyId, long groupId, java.lang.String keywords, int start,
196 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
201 long companyId, long groupId, java.lang.String structureId,
202 java.lang.String name, java.lang.String description,
203 boolean andOperator, int start, int end,
204 com.liferay.portal.kernel.util.OrderByComparator obc)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public int searchCount(long companyId, long groupId,
209 java.lang.String keywords)
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public int searchCount(long companyId, long groupId,
214 java.lang.String structureId, java.lang.String name,
215 java.lang.String description, boolean andOperator)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218 public com.liferay.portlet.journal.model.JournalStructure updateStructure(
219 long groupId, java.lang.String structureId,
220 java.lang.String parentStructureId, java.lang.String name,
221 java.lang.String description, java.lang.String xsd,
222 com.liferay.portal.service.ServiceContext serviceContext)
223 throws com.liferay.portal.kernel.exception.PortalException,
224 com.liferay.portal.kernel.exception.SystemException;
225 }