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
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface AssetTagService {
041
046 public com.liferay.portlet.asset.model.AssetTag addTag(
047 java.lang.String name, java.lang.String[] tagProperties,
048 com.liferay.portal.service.ServiceContext serviceContext)
049 throws com.liferay.portal.kernel.exception.PortalException,
050 com.liferay.portal.kernel.exception.SystemException;
051
052 public void deleteTag(long tagId)
053 throws com.liferay.portal.kernel.exception.PortalException,
054 com.liferay.portal.kernel.exception.SystemException;
055
056 public void deleteTags(long[] tagIds)
057 throws com.liferay.portal.kernel.exception.PortalException,
058 com.liferay.portal.kernel.exception.SystemException;
059
060 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
061 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(
062 long[] groupIds)
063 throws com.liferay.portal.kernel.exception.SystemException;
064
065 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
067 long groupId)
068 throws com.liferay.portal.kernel.exception.SystemException;
069
070 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(
072 long groupId, int start, int end,
073 com.liferay.portal.kernel.util.OrderByComparator obc)
074 throws com.liferay.portal.kernel.exception.SystemException;
075
076 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077 public int getGroupTagsCount(long groupId)
078 throws com.liferay.portal.kernel.exception.SystemException;
079
080 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081 public com.liferay.portal.kernel.json.JSONObject getJSONGroupTags(
082 long groupId, java.lang.String name, int start, int end)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
093 long groupId, long classNameId, java.lang.String name)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
098 long groupId, long classNameId, java.lang.String name, int start,
099 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
104 long groupId, java.lang.String name, java.lang.String[] tagProperties,
105 int start, int end)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(
110 java.lang.String className, long classPK)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public int getTagsCount(long groupId, long classNameId,
116 java.lang.String name)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public int getTagsCount(long groupId, java.lang.String name)
121 throws com.liferay.portal.kernel.exception.SystemException;
122
123 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124 public int getTagsCount(long groupId, java.lang.String name,
125 java.lang.String[] tagProperties)
126 throws com.liferay.portal.kernel.exception.SystemException;
127
128 public void mergeTags(long fromTagId, long toTagId,
129 boolean overrideProperties)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 public void mergeTags(long[] fromTagIds, long toTagId,
134 boolean overrideProperties)
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 com.liferay.portal.kernel.json.JSONArray search(long groupId,
140 java.lang.String name, java.lang.String[] tagProperties, int start,
141 int end) throws com.liferay.portal.kernel.exception.SystemException;
142
143 public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
144 java.lang.String name, java.lang.String[] tagProperties,
145 com.liferay.portal.service.ServiceContext serviceContext)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException;
148 }