001
014
015 package com.liferay.portlet.asset.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.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.security.access.control.AccessControlled;
023 import com.liferay.portal.kernel.transaction.Isolation;
024 import com.liferay.portal.kernel.transaction.Propagation;
025 import com.liferay.portal.kernel.transaction.Transactional;
026 import com.liferay.portal.service.BaseService;
027
028
039 @AccessControlled
040 @JSONWebService
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface AssetTagService extends BaseService {
045
050 public com.liferay.portlet.asset.model.AssetTag addTag(long groupId,
051 java.lang.String name,
052 com.liferay.portal.service.ServiceContext serviceContext)
053 throws PortalException;
054
055 public void deleteTag(long tagId) throws PortalException;
056
057 public void deleteTags(long[] tagIds) throws PortalException;
058
059 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
060 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
061 long groupId);
062
063 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
065 long groupId, int start, int end,
066 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc);
067
068 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
069 public int getGroupTagsCount(long groupId);
070
071 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072 public com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
073 long groupId, java.lang.String name, int start, int end);
074
075 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
077 long[] groupIds);
078
079
084 public java.lang.String getOSGiServiceIdentifier();
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
088 throws PortalException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
092 java.lang.String className, long classPK);
093
094 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
096 long groupId, long classNameId, java.lang.String name);
097
098 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
100 long groupId, long classNameId, java.lang.String name, int start,
101 int end,
102 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc);
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
106 long groupId, java.lang.String name, int start, int end);
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
110 long groupId, java.lang.String name, int start, int end,
111 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc);
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
115 long[] groupIds, java.lang.String name, int start, int end);
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
119 long[] groupIds, java.lang.String name, int start, int end,
120 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.asset.model.AssetTag> obc);
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public int getTagsCount(long groupId, java.lang.String name);
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public int getVisibleAssetsTagsCount(long groupId, long classNameId,
127 java.lang.String name);
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public int getVisibleAssetsTagsCount(long groupId, java.lang.String name);
131
132 public void mergeTags(long fromTagId, long toTagId)
133 throws PortalException;
134
135 public void mergeTags(long[] fromTagIds, long toTagId)
136 throws PortalException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
140 java.lang.String name, int start, int end);
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
144 java.lang.String name, int start, int end);
145
146 public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
147 java.lang.String name,
148 com.liferay.portal.service.ServiceContext serviceContext)
149 throws PortalException;
150 }