001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AssetVocabularyLocalService {
043 public com.liferay.portlet.asset.model.AssetVocabulary addAssetVocabulary(
044 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.asset.model.AssetVocabulary createAssetVocabulary(
048 long vocabularyId);
049
050 public void deleteAssetVocabulary(long vocabularyId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteAssetVocabulary(
055 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabulary(
081 long vocabularyId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public com.liferay.portlet.asset.model.AssetVocabulary getAssetVocabularyByUuidAndGroupId(
087 java.lang.String uuid, long groupId)
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.AssetVocabulary> getAssetVocabularies(
093 int start, int end)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public int getAssetVocabulariesCount()
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
101 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public com.liferay.portlet.asset.model.AssetVocabulary updateAssetVocabulary(
105 com.liferay.portlet.asset.model.AssetVocabulary assetVocabulary,
106 boolean merge)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 public com.liferay.portlet.asset.model.AssetVocabulary addVocabulary(
110 long userId,
111 java.util.Map<java.util.Locale, java.lang.String> titleMap,
112 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
113 java.lang.String settings,
114 com.liferay.portal.service.ServiceContext serviceContext)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException;
117
118 public void addVocabularyResources(
119 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
120 boolean addCommunityPermissions, boolean addGuestPermissions)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException;
123
124 public void addVocabularyResources(
125 com.liferay.portlet.asset.model.AssetVocabulary vocabulary,
126 java.lang.String[] communityPermissions,
127 java.lang.String[] guestPermissions)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 public void deleteVocabulary(
132 com.liferay.portlet.asset.model.AssetVocabulary vocabulary)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException;
135
136 public void deleteVocabulary(long vocabularyId)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getCompanyVocabularies(
142 long companyId)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupsVocabularies(
147 long[] groupIds)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public java.util.List<com.liferay.portlet.asset.model.AssetVocabulary> getGroupVocabularies(
153 long groupId)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.asset.model.AssetVocabulary getGroupVocabulary(
159 long groupId, java.lang.String name)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portlet.asset.model.AssetVocabulary getVocabulary(
165 long vocabularyId)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 public com.liferay.portlet.asset.model.AssetVocabulary updateVocabulary(
170 long vocabularyId,
171 java.util.Map<java.util.Locale, java.lang.String> titleMap,
172 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
173 java.lang.String settings,
174 com.liferay.portal.service.ServiceContext serviceContext)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException;
177 }