001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.asset.model.AssetTag;
020    
021    /**
022     * The persistence interface for the asset tag service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see AssetTagPersistenceImpl
030     * @see AssetTagUtil
031     * @generated
032     */
033    public interface AssetTagPersistence extends BasePersistence<AssetTag> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link AssetTagUtil} to access the asset tag persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the asset tag in the entity cache if it is enabled.
042            *
043            * @param assetTag the asset tag
044            */
045            public void cacheResult(com.liferay.portlet.asset.model.AssetTag assetTag);
046    
047            /**
048            * Caches the asset tags in the entity cache if it is enabled.
049            *
050            * @param assetTags the asset tags
051            */
052            public void cacheResult(
053                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags);
054    
055            /**
056            * Creates a new asset tag with the primary key. Does not add the asset tag to the database.
057            *
058            * @param tagId the primary key for the new asset tag
059            * @return the new asset tag
060            */
061            public com.liferay.portlet.asset.model.AssetTag create(long tagId);
062    
063            /**
064            * Removes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param tagId the primary key of the asset tag
067            * @return the asset tag that was removed
068            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portlet.asset.model.AssetTag remove(long tagId)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.asset.NoSuchTagException;
074    
075            public com.liferay.portlet.asset.model.AssetTag updateImpl(
076                    com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            /**
080            * Returns the asset tag with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagException} if it could not be found.
081            *
082            * @param tagId the primary key of the asset tag
083            * @return the asset tag
084            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
085            * @throws SystemException if a system exception occurred
086            */
087            public com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(long tagId)
088                    throws com.liferay.portal.kernel.exception.SystemException,
089                            com.liferay.portlet.asset.NoSuchTagException;
090    
091            /**
092            * Returns the asset tag with the primary key or returns <code>null</code> if it could not be found.
093            *
094            * @param tagId the primary key of the asset tag
095            * @return the asset tag, or <code>null</code> if a asset tag with the primary key could not be found
096            * @throws SystemException if a system exception occurred
097            */
098            public com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(
099                    long tagId) throws com.liferay.portal.kernel.exception.SystemException;
100    
101            /**
102            * Returns all the asset tags where groupId = &#63;.
103            *
104            * @param groupId the group ID
105            * @return the matching asset tags
106            * @throws SystemException if a system exception occurred
107            */
108            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
109                    long groupId)
110                    throws com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Returns a range of all the asset tags where groupId = &#63;.
114            *
115            * <p>
116            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
117            * </p>
118            *
119            * @param groupId the group ID
120            * @param start the lower bound of the range of asset tags
121            * @param end the upper bound of the range of asset tags (not inclusive)
122            * @return the range of matching asset tags
123            * @throws SystemException if a system exception occurred
124            */
125            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
126                    long groupId, int start, int end)
127                    throws com.liferay.portal.kernel.exception.SystemException;
128    
129            /**
130            * Returns an ordered range of all the asset tags where groupId = &#63;.
131            *
132            * <p>
133            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
134            * </p>
135            *
136            * @param groupId the group ID
137            * @param start the lower bound of the range of asset tags
138            * @param end the upper bound of the range of asset tags (not inclusive)
139            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
140            * @return the ordered range of matching asset tags
141            * @throws SystemException if a system exception occurred
142            */
143            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
144                    long groupId, int start, int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException;
147    
148            /**
149            * Returns the first asset tag in the ordered set where groupId = &#63;.
150            *
151            * <p>
152            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
153            * </p>
154            *
155            * @param groupId the group ID
156            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
157            * @return the first matching asset tag
158            * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.asset.model.AssetTag findByGroupId_First(
162                    long groupId,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException,
165                            com.liferay.portlet.asset.NoSuchTagException;
166    
167            /**
168            * Returns the last asset tag in the ordered set where groupId = &#63;.
169            *
170            * <p>
171            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
172            * </p>
173            *
174            * @param groupId the group ID
175            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
176            * @return the last matching asset tag
177            * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found
178            * @throws SystemException if a system exception occurred
179            */
180            public com.liferay.portlet.asset.model.AssetTag findByGroupId_Last(
181                    long groupId,
182                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183                    throws com.liferay.portal.kernel.exception.SystemException,
184                            com.liferay.portlet.asset.NoSuchTagException;
185    
186            /**
187            * Returns the asset tags before and after the current asset tag in the ordered set where groupId = &#63;.
188            *
189            * <p>
190            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
191            * </p>
192            *
193            * @param tagId the primary key of the current asset tag
194            * @param groupId the group ID
195            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
196            * @return the previous, current, and next asset tag
197            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            public com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext(
201                    long tagId, long groupId,
202                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203                    throws com.liferay.portal.kernel.exception.SystemException,
204                            com.liferay.portlet.asset.NoSuchTagException;
205    
206            /**
207            * Returns all the asset tags that the user has permission to view where groupId = &#63;.
208            *
209            * @param groupId the group ID
210            * @return the matching asset tags that the user has permission to view
211            * @throws SystemException if a system exception occurred
212            */
213            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
214                    long groupId)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    
217            /**
218            * Returns a range of all the asset tags that the user has permission to view where groupId = &#63;.
219            *
220            * <p>
221            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
222            * </p>
223            *
224            * @param groupId the group ID
225            * @param start the lower bound of the range of asset tags
226            * @param end the upper bound of the range of asset tags (not inclusive)
227            * @return the range of matching asset tags that the user has permission to view
228            * @throws SystemException if a system exception occurred
229            */
230            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
231                    long groupId, int start, int end)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Returns an ordered range of all the asset tags that the user has permissions to view where groupId = &#63;.
236            *
237            * <p>
238            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
239            * </p>
240            *
241            * @param groupId the group ID
242            * @param start the lower bound of the range of asset tags
243            * @param end the upper bound of the range of asset tags (not inclusive)
244            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
245            * @return the ordered range of matching asset tags that the user has permission to view
246            * @throws SystemException if a system exception occurred
247            */
248            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
249                    long groupId, int start, int end,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            /**
254            * Returns the asset tags before and after the current asset tag in the ordered set of asset tags that the user has permission to view where groupId = &#63;.
255            *
256            * @param tagId the primary key of the current asset tag
257            * @param groupId the group ID
258            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
259            * @return the previous, current, and next asset tag
260            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
261            * @throws SystemException if a system exception occurred
262            */
263            public com.liferay.portlet.asset.model.AssetTag[] filterFindByGroupId_PrevAndNext(
264                    long tagId, long groupId,
265                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266                    throws com.liferay.portal.kernel.exception.SystemException,
267                            com.liferay.portlet.asset.NoSuchTagException;
268    
269            /**
270            * Returns the asset tag where groupId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchTagException} if it could not be found.
271            *
272            * @param groupId the group ID
273            * @param name the name
274            * @return the matching asset tag
275            * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found
276            * @throws SystemException if a system exception occurred
277            */
278            public com.liferay.portlet.asset.model.AssetTag findByG_N(long groupId,
279                    java.lang.String name)
280                    throws com.liferay.portal.kernel.exception.SystemException,
281                            com.liferay.portlet.asset.NoSuchTagException;
282    
283            /**
284            * Returns the asset tag where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
285            *
286            * @param groupId the group ID
287            * @param name the name
288            * @return the matching asset tag, or <code>null</code> if a matching asset tag could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public com.liferay.portlet.asset.model.AssetTag fetchByG_N(long groupId,
292                    java.lang.String name)
293                    throws com.liferay.portal.kernel.exception.SystemException;
294    
295            /**
296            * Returns the asset tag where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
297            *
298            * @param groupId the group ID
299            * @param name the name
300            * @param retrieveFromCache whether to use the finder cache
301            * @return the matching asset tag, or <code>null</code> if a matching asset tag could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public com.liferay.portlet.asset.model.AssetTag fetchByG_N(long groupId,
305                    java.lang.String name, boolean retrieveFromCache)
306                    throws com.liferay.portal.kernel.exception.SystemException;
307    
308            /**
309            * Returns all the asset tags.
310            *
311            * @return the asset tags
312            * @throws SystemException if a system exception occurred
313            */
314            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
315                    throws com.liferay.portal.kernel.exception.SystemException;
316    
317            /**
318            * Returns a range of all the asset tags.
319            *
320            * <p>
321            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
322            * </p>
323            *
324            * @param start the lower bound of the range of asset tags
325            * @param end the upper bound of the range of asset tags (not inclusive)
326            * @return the range of asset tags
327            * @throws SystemException if a system exception occurred
328            */
329            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
330                    int start, int end)
331                    throws com.liferay.portal.kernel.exception.SystemException;
332    
333            /**
334            * Returns an ordered range of all the asset tags.
335            *
336            * <p>
337            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
338            * </p>
339            *
340            * @param start the lower bound of the range of asset tags
341            * @param end the upper bound of the range of asset tags (not inclusive)
342            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
343            * @return the ordered range of asset tags
344            * @throws SystemException if a system exception occurred
345            */
346            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
347                    int start, int end,
348                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349                    throws com.liferay.portal.kernel.exception.SystemException;
350    
351            /**
352            * Removes all the asset tags where groupId = &#63; from the database.
353            *
354            * @param groupId the group ID
355            * @throws SystemException if a system exception occurred
356            */
357            public void removeByGroupId(long groupId)
358                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            /**
361            * Removes the asset tag where groupId = &#63; and name = &#63; from the database.
362            *
363            * @param groupId the group ID
364            * @param name the name
365            * @throws SystemException if a system exception occurred
366            */
367            public void removeByG_N(long groupId, java.lang.String name)
368                    throws com.liferay.portal.kernel.exception.SystemException,
369                            com.liferay.portlet.asset.NoSuchTagException;
370    
371            /**
372            * Removes all the asset tags from the database.
373            *
374            * @throws SystemException if a system exception occurred
375            */
376            public void removeAll()
377                    throws com.liferay.portal.kernel.exception.SystemException;
378    
379            /**
380            * Returns the number of asset tags where groupId = &#63;.
381            *
382            * @param groupId the group ID
383            * @return the number of matching asset tags
384            * @throws SystemException if a system exception occurred
385            */
386            public int countByGroupId(long groupId)
387                    throws com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * Returns the number of asset tags that the user has permission to view where groupId = &#63;.
391            *
392            * @param groupId the group ID
393            * @return the number of matching asset tags that the user has permission to view
394            * @throws SystemException if a system exception occurred
395            */
396            public int filterCountByGroupId(long groupId)
397                    throws com.liferay.portal.kernel.exception.SystemException;
398    
399            /**
400            * Returns the number of asset tags where groupId = &#63; and name = &#63;.
401            *
402            * @param groupId the group ID
403            * @param name the name
404            * @return the number of matching asset tags
405            * @throws SystemException if a system exception occurred
406            */
407            public int countByG_N(long groupId, java.lang.String name)
408                    throws com.liferay.portal.kernel.exception.SystemException;
409    
410            /**
411            * Returns the number of asset tags.
412            *
413            * @return the number of asset tags
414            * @throws SystemException if a system exception occurred
415            */
416            public int countAll()
417                    throws com.liferay.portal.kernel.exception.SystemException;
418    
419            /**
420            * Returns all the asset entries associated with the asset tag.
421            *
422            * @param pk the primary key of the asset tag
423            * @return the asset entries associated with the asset tag
424            * @throws SystemException if a system exception occurred
425            */
426            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
427                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Returns a range of all the asset entries associated with the asset tag.
431            *
432            * <p>
433            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
434            * </p>
435            *
436            * @param pk the primary key of the asset tag
437            * @param start the lower bound of the range of asset tags
438            * @param end the upper bound of the range of asset tags (not inclusive)
439            * @return the range of asset entries associated with the asset tag
440            * @throws SystemException if a system exception occurred
441            */
442            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
443                    long pk, int start, int end)
444                    throws com.liferay.portal.kernel.exception.SystemException;
445    
446            /**
447            * Returns an ordered range of all the asset entries associated with the asset tag.
448            *
449            * <p>
450            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
451            * </p>
452            *
453            * @param pk the primary key of the asset tag
454            * @param start the lower bound of the range of asset tags
455            * @param end the upper bound of the range of asset tags (not inclusive)
456            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
457            * @return the ordered range of asset entries associated with the asset tag
458            * @throws SystemException if a system exception occurred
459            */
460            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
461                    long pk, int start, int end,
462                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            /**
466            * Returns the number of asset entries associated with the asset tag.
467            *
468            * @param pk the primary key of the asset tag
469            * @return the number of asset entries associated with the asset tag
470            * @throws SystemException if a system exception occurred
471            */
472            public int getAssetEntriesSize(long pk)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Returns <code>true</code> if the asset entry is associated with the asset tag.
477            *
478            * @param pk the primary key of the asset tag
479            * @param assetEntryPK the primary key of the asset entry
480            * @return <code>true</code> if the asset entry is associated with the asset tag; <code>false</code> otherwise
481            * @throws SystemException if a system exception occurred
482            */
483            public boolean containsAssetEntry(long pk, long assetEntryPK)
484                    throws com.liferay.portal.kernel.exception.SystemException;
485    
486            /**
487            * Returns <code>true</code> if the asset tag has any asset entries associated with it.
488            *
489            * @param pk the primary key of the asset tag to check for associations with asset entries
490            * @return <code>true</code> if the asset tag has any asset entries associated with it; <code>false</code> otherwise
491            * @throws SystemException if a system exception occurred
492            */
493            public boolean containsAssetEntries(long pk)
494                    throws com.liferay.portal.kernel.exception.SystemException;
495    
496            /**
497            * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
498            *
499            * @param pk the primary key of the asset tag
500            * @param assetEntryPK the primary key of the asset entry
501            * @throws SystemException if a system exception occurred
502            */
503            public void addAssetEntry(long pk, long assetEntryPK)
504                    throws com.liferay.portal.kernel.exception.SystemException;
505    
506            /**
507            * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
508            *
509            * @param pk the primary key of the asset tag
510            * @param assetEntry the asset entry
511            * @throws SystemException if a system exception occurred
512            */
513            public void addAssetEntry(long pk,
514                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
519            *
520            * @param pk the primary key of the asset tag
521            * @param assetEntryPKs the primary keys of the asset entries
522            * @throws SystemException if a system exception occurred
523            */
524            public void addAssetEntries(long pk, long[] assetEntryPKs)
525                    throws com.liferay.portal.kernel.exception.SystemException;
526    
527            /**
528            * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
529            *
530            * @param pk the primary key of the asset tag
531            * @param assetEntries the asset entries
532            * @throws SystemException if a system exception occurred
533            */
534            public void addAssetEntries(long pk,
535                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
536                    throws com.liferay.portal.kernel.exception.SystemException;
537    
538            /**
539            * Clears all associations between the asset tag and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
540            *
541            * @param pk the primary key of the asset tag to clear the associated asset entries from
542            * @throws SystemException if a system exception occurred
543            */
544            public void clearAssetEntries(long pk)
545                    throws com.liferay.portal.kernel.exception.SystemException;
546    
547            /**
548            * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
549            *
550            * @param pk the primary key of the asset tag
551            * @param assetEntryPK the primary key of the asset entry
552            * @throws SystemException if a system exception occurred
553            */
554            public void removeAssetEntry(long pk, long assetEntryPK)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
559            *
560            * @param pk the primary key of the asset tag
561            * @param assetEntry the asset entry
562            * @throws SystemException if a system exception occurred
563            */
564            public void removeAssetEntry(long pk,
565                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
566                    throws com.liferay.portal.kernel.exception.SystemException;
567    
568            /**
569            * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
570            *
571            * @param pk the primary key of the asset tag
572            * @param assetEntryPKs the primary keys of the asset entries
573            * @throws SystemException if a system exception occurred
574            */
575            public void removeAssetEntries(long pk, long[] assetEntryPKs)
576                    throws com.liferay.portal.kernel.exception.SystemException;
577    
578            /**
579            * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
580            *
581            * @param pk the primary key of the asset tag
582            * @param assetEntries the asset entries
583            * @throws SystemException if a system exception occurred
584            */
585            public void removeAssetEntries(long pk,
586                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
587                    throws com.liferay.portal.kernel.exception.SystemException;
588    
589            /**
590            * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
591            *
592            * @param pk the primary key of the asset tag
593            * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset tag
594            * @throws SystemException if a system exception occurred
595            */
596            public void setAssetEntries(long pk, long[] assetEntryPKs)
597                    throws com.liferay.portal.kernel.exception.SystemException;
598    
599            /**
600            * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
601            *
602            * @param pk the primary key of the asset tag
603            * @param assetEntries the asset entries to be associated with the asset tag
604            * @throws SystemException if a system exception occurred
605            */
606            public void setAssetEntries(long pk,
607                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
608                    throws com.liferay.portal.kernel.exception.SystemException;
609    }