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