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