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.portal.kernel.json.JSONObject getJSONGroupTags(
100 long groupId, java.lang.String name, int start, int end)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException;
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
111 long groupId, long classNameId, java.lang.String name)
112 throws com.liferay.portal.kernel.exception.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
116 long groupId, long classNameId, java.lang.String name, int start,
117 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.kernel.exception.SystemException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
122 long groupId, java.lang.String name, java.lang.String[] tagProperties,
123 int start, int end)
124 throws com.liferay.portal.kernel.exception.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
128 long[] groupIds, java.lang.String name,
129 java.lang.String[] tagProperties, int start, int end)
130 throws com.liferay.portal.kernel.exception.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
134 java.lang.String className, long classPK)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public int getTagsCount(long groupId, long classNameId,
140 java.lang.String name)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public int getTagsCount(long groupId, java.lang.String name)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public int getTagsCount(long groupId, java.lang.String name,
149 java.lang.String[] tagProperties)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 public void mergeTags(long fromTagId, long toTagId,
153 boolean overrideProperties)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157 public void mergeTags(long[] fromTagIds, long toTagId,
158 boolean overrideProperties)
159 throws com.liferay.portal.kernel.exception.PortalException,
160 com.liferay.portal.kernel.exception.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
164 java.lang.String name, java.lang.String[] tagProperties, int start,
165 int end) throws com.liferay.portal.kernel.exception.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
169 java.lang.String name, java.lang.String[] tagProperties, int start,
170 int end) throws com.liferay.portal.kernel.exception.SystemException;
171
172 public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
173 java.lang.String name, java.lang.String[] tagProperties,
174 com.liferay.portal.service.ServiceContext serviceContext)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException;
177 }