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 java.lang.String className, long classPK)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public int getTagsCount(long groupId, long classNameId,
132 java.lang.String name)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public int getTagsCount(long groupId, java.lang.String name)
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public int getTagsCount(long groupId, java.lang.String name,
141 java.lang.String[] tagProperties)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144 public void mergeTags(long fromTagId, long toTagId,
145 boolean overrideProperties)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException;
148
149 public void mergeTags(long[] fromTagIds, long toTagId,
150 boolean overrideProperties)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portal.kernel.json.JSONArray search(long groupId,
156 java.lang.String name, java.lang.String[] tagProperties, int start,
157 int end) throws com.liferay.portal.kernel.exception.SystemException;
158
159 public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
160 java.lang.String name, java.lang.String[] tagProperties,
161 com.liferay.portal.service.ServiceContext serviceContext)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164 }