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