001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.security.ac.AccessControlled;
024 import com.liferay.portal.service.BaseService;
025
026
039 @AccessControlled
040 @JSONWebService
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface AssetTagService extends BaseService {
044
049
050
055 public java.lang.String getBeanIdentifier();
056
057
062 public void setBeanIdentifier(java.lang.String beanIdentifier);
063
064 public com.liferay.portlet.asset.model.AssetTag addTag(
065 java.lang.String name, java.lang.String[] tagProperties,
066 com.liferay.portal.service.ServiceContext serviceContext)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException;
069
070 public void deleteTag(long tagId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074 public void deleteTags(long[] tagIds)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException;
077
078 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
080 long[] groupIds)
081 throws com.liferay.portal.kernel.exception.SystemException;
082
083 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
085 long groupId)
086 throws com.liferay.portal.kernel.exception.SystemException;
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
090 long groupId, int start, int end,
091 com.liferay.portal.kernel.util.OrderByComparator obc)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095 public int getGroupTagsCount(long groupId)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099 public com.liferay.portlet.asset.model.AssetTagDisplay getGroupTagsDisplay(
100 long groupId, java.lang.String name, int start, int end)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
109 long groupId, java.lang.String name, int start, int end)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException;
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
120 long groupId, long classNameId, java.lang.String name)
121 throws com.liferay.portal.kernel.exception.SystemException;
122
123 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
125 long groupId, long classNameId, java.lang.String name, int start,
126 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.kernel.exception.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
131 long groupId, java.lang.String name, java.lang.String[] tagProperties,
132 int start, int end)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
137 long[] groupIds, java.lang.String name,
138 java.lang.String[] tagProperties, int start, int end)
139 throws com.liferay.portal.kernel.exception.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
143 java.lang.String className, long classPK)
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 int getTagsCount(long groupId, long classNameId,
149 java.lang.String name)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public int getTagsCount(long groupId, java.lang.String name)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public int getTagsCount(long groupId, java.lang.String name,
158 java.lang.String[] tagProperties)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161 public void mergeTags(long fromTagId, long toTagId,
162 boolean overrideProperties)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException;
165
166 public void mergeTags(long[] fromTagIds, long toTagId,
167 boolean overrideProperties)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
173 java.lang.String name, java.lang.String[] tagProperties, int start,
174 int end) throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
178 java.lang.String name, java.lang.String[] tagProperties, int start,
179 int end) throws com.liferay.portal.kernel.exception.SystemException;
180
181 public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
182 java.lang.String name, java.lang.String[] tagProperties,
183 com.liferay.portal.service.ServiceContext serviceContext)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException;
186 }