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, java.lang.String name,
116 java.lang.String[] tagProperties)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119
122 public void mergeTags(long fromTagId, long toTagId)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 public void mergeTags(long fromTagId, long toTagId,
127 boolean overrideProperties)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 public void mergeTags(long[] fromTagIds, long toTagId,
132 boolean overrideProperties)
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 com.liferay.portal.kernel.json.JSONArray search(long groupId,
138 java.lang.String name, java.lang.String[] tagProperties, int start,
139 int end) throws com.liferay.portal.kernel.exception.SystemException;
140
141 public com.liferay.portlet.asset.model.AssetTag updateTag(long tagId,
142 java.lang.String name, java.lang.String[] tagProperties,
143 com.liferay.portal.service.ServiceContext serviceContext)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException;
146 }