001
014
015 package com.liferay.portlet.journal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.transaction.Isolation;
022 import com.liferay.portal.kernel.transaction.Propagation;
023 import com.liferay.portal.kernel.transaction.Transactional;
024 import com.liferay.portal.service.BaseLocalService;
025
026
040 @ProviderType
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface JournalStructureLocalService extends BaseLocalService {
044
049
050
055 public java.lang.String getBeanIdentifier();
056
057
062 public void setBeanIdentifier(java.lang.String beanIdentifier);
063
064 public com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
065 com.liferay.portlet.journal.model.JournalStructure structure)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException;
068
069 public com.liferay.portlet.journal.model.JournalStructure addStructure(
070 long userId, long groupId, java.lang.String structureId,
071 boolean autoStructureId, java.lang.String parentStructureId,
072 java.util.Map<java.util.Locale, java.lang.String> nameMap,
073 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
074 java.lang.String xsd,
075 com.liferay.portal.service.ServiceContext serviceContext)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException;
078
079 public void addStructureResources(
080 com.liferay.portlet.journal.model.JournalStructure structure,
081 boolean addGroupPermissions, boolean addGuestPermissions)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 public void addStructureResources(
086 com.liferay.portlet.journal.model.JournalStructure structure,
087 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 public void addStructureResources(long groupId,
092 java.lang.String structureId, boolean addGroupPermissions,
093 boolean addGuestPermissions)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException;
096
097 public void addStructureResources(long groupId,
098 java.lang.String structureId, java.lang.String[] groupPermissions,
099 java.lang.String[] guestPermissions)
100 throws com.liferay.portal.kernel.exception.PortalException,
101 com.liferay.portal.kernel.exception.SystemException;
102
103 public void checkNewLine(long groupId, java.lang.String structureId)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.journal.model.JournalStructure copyStructure(
108 long userId, long groupId, java.lang.String oldStructureId,
109 java.lang.String newStructureId, boolean autoStructureId)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException;
112
113 public com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
114 long id) throws com.liferay.portal.kernel.exception.SystemException;
115
116 public void deleteStructure(
117 com.liferay.portlet.journal.model.JournalStructure structure)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void deleteStructure(long groupId, java.lang.String structureId)
122 throws com.liferay.portal.kernel.exception.PortalException,
123 com.liferay.portal.kernel.exception.SystemException;
124
125 public void deleteStructures(long groupId)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public com.liferay.portlet.journal.model.JournalStructure fetchStructure(
131 long groupId, java.lang.String structureId)
132 throws com.liferay.portal.kernel.exception.SystemException;
133
134 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
135 throws com.liferay.portal.kernel.exception.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public com.liferay.portlet.journal.model.JournalStructure getStructure(
139 long groupId, java.lang.String structureId)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public com.liferay.portlet.journal.model.JournalStructure getStructure(
145 long groupId, java.lang.String structureId,
146 boolean includeGlobalStructures)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
156 long groupId)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
161 long groupId, int start, int end)
162 throws com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public int getStructuresCount(long groupId)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
170 long companyId, long[] groupIds, java.lang.String keywords, int start,
171 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
176 long companyId, long[] groupIds, java.lang.String structureId,
177 java.lang.String name, java.lang.String description,
178 boolean andOperator, int start, int end,
179 com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public int searchCount(long companyId, long[] groupIds,
184 java.lang.String keywords)
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public int searchCount(long companyId, long[] groupIds,
189 java.lang.String structureId, java.lang.String name,
190 java.lang.String description, boolean andOperator)
191 throws com.liferay.portal.kernel.exception.SystemException;
192
193 public com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
194 com.liferay.portlet.journal.model.JournalStructure structure)
195 throws com.liferay.portal.kernel.exception.PortalException,
196 com.liferay.portal.kernel.exception.SystemException;
197
198 public com.liferay.portlet.journal.model.JournalStructure updateStructure(
199 long groupId, java.lang.String structureId,
200 java.lang.String parentStructureId,
201 java.util.Map<java.util.Locale, java.lang.String> nameMap,
202 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
203 java.lang.String xsd,
204 com.liferay.portal.service.ServiceContext serviceContext)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException;
207 }