1
19
20 package com.liferay.portlet.tags.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface TagsEntryLocalService {
54 public com.liferay.portlet.tags.model.TagsEntry addTagsEntry(
55 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
56 throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.tags.model.TagsEntry createTagsEntry(
59 long entryId);
60
61 public void deleteTagsEntry(long entryId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException;
64
65 public void deleteTagsEntry(
66 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.tags.model.TagsEntry getTagsEntry(long entryId)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portal.PortalException;
81
82 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getTagsEntries(
84 int start, int end) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public int getTagsEntriesCount() throws com.liferay.portal.SystemException;
88
89 public com.liferay.portlet.tags.model.TagsEntry updateTagsEntry(
90 com.liferay.portlet.tags.model.TagsEntry tagsEntry)
91 throws com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
94 java.lang.String name)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 public com.liferay.portlet.tags.model.TagsEntry addEntry(long userId,
99 java.lang.String name, java.lang.String[] properties)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException;
102
103 public void checkEntries(long userId, java.lang.String[] names)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException;
106
107 public void deleteEntry(long entryId)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException;
110
111 public void deleteEntry(com.liferay.portlet.tags.model.TagsEntry entry)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException;
114
115 public boolean hasEntry(long companyId, java.lang.String name)
116 throws com.liferay.portal.SystemException;
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getAssetEntries(
120 long assetId) throws com.liferay.portal.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries()
124 throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
128 java.lang.String className, long classPK)
129 throws com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
133 long classNameId, long classPK)
134 throws com.liferay.portal.SystemException;
135
136 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
138 long groupId, long companyId, long classNameId, java.lang.String name)
139 throws com.liferay.portal.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> getEntries(
143 long groupId, long companyId, long classNameId, java.lang.String name,
144 int start, int end) throws com.liferay.portal.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public int getEntriesSize(long groupId, long companyId, long classNameId,
148 java.lang.String name) throws com.liferay.portal.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public com.liferay.portlet.tags.model.TagsEntry getEntry(long entryId)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public com.liferay.portlet.tags.model.TagsEntry getEntry(long companyId,
157 java.lang.String name)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public long[] getEntryIds(long companyId, java.lang.String[] names)
163 throws com.liferay.portal.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public java.lang.String[] getEntryNames()
167 throws com.liferay.portal.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.lang.String[] getEntryNames(java.lang.String className,
171 long classPK) throws com.liferay.portal.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.lang.String[] getEntryNames(long classNameId, long classPK)
175 throws com.liferay.portal.SystemException;
176
177 public void mergeEntries(long fromEntryId, long toEntryId)
178 throws com.liferay.portal.PortalException,
179 com.liferay.portal.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
183 long companyId, java.lang.String name, java.lang.String[] properties)
184 throws com.liferay.portal.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portlet.tags.model.TagsEntry> search(
188 long companyId, java.lang.String name, java.lang.String[] properties,
189 int start, int end) throws com.liferay.portal.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public com.liferay.portal.kernel.json.JSONArray searchAutocomplete(
193 long companyId, java.lang.String name, java.lang.String[] properties,
194 int start, int end) throws com.liferay.portal.SystemException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public int searchCount(long companyId, java.lang.String name,
198 java.lang.String[] properties)
199 throws com.liferay.portal.SystemException;
200
201 public com.liferay.portlet.tags.model.TagsEntry updateEntry(long entryId,
202 java.lang.String name)
203 throws com.liferay.portal.PortalException,
204 com.liferay.portal.SystemException;
205
206 public com.liferay.portlet.tags.model.TagsEntry updateEntry(long userId,
207 long entryId, java.lang.String name, java.lang.String[] properties)
208 throws com.liferay.portal.PortalException,
209 com.liferay.portal.SystemException;
210 }