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