001
014
015 package com.liferay.portlet.asset.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019
020 import com.liferay.portlet.asset.service.AssetCategoryPropertyServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
066 public class AssetCategoryPropertyServiceSoap {
067 public static com.liferay.portlet.asset.model.AssetCategoryPropertySoap addCategoryProperty(
068 long entryId, java.lang.String key, java.lang.String value)
069 throws RemoteException {
070 try {
071 com.liferay.portlet.asset.model.AssetCategoryProperty returnValue = AssetCategoryPropertyServiceUtil.addCategoryProperty(entryId,
072 key, value);
073
074 return com.liferay.portlet.asset.model.AssetCategoryPropertySoap.toSoapModel(returnValue);
075 }
076 catch (Exception e) {
077 _log.error(e, e);
078
079 throw new RemoteException(e.getMessage());
080 }
081 }
082
083 public static void deleteCategoryProperty(long categoryPropertyId)
084 throws RemoteException {
085 try {
086 AssetCategoryPropertyServiceUtil.deleteCategoryProperty(categoryPropertyId);
087 }
088 catch (Exception e) {
089 _log.error(e, e);
090
091 throw new RemoteException(e.getMessage());
092 }
093 }
094
095 public static com.liferay.portlet.asset.model.AssetCategoryPropertySoap[] getCategoryProperties(
096 long entryId) throws RemoteException {
097 try {
098 java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> returnValue =
099 AssetCategoryPropertyServiceUtil.getCategoryProperties(entryId);
100
101 return com.liferay.portlet.asset.model.AssetCategoryPropertySoap.toSoapModels(returnValue);
102 }
103 catch (Exception e) {
104 _log.error(e, e);
105
106 throw new RemoteException(e.getMessage());
107 }
108 }
109
110 public static com.liferay.portlet.asset.model.AssetCategoryPropertySoap[] getCategoryPropertyValues(
111 long companyId, java.lang.String key) throws RemoteException {
112 try {
113 java.util.List<com.liferay.portlet.asset.model.AssetCategoryProperty> returnValue =
114 AssetCategoryPropertyServiceUtil.getCategoryPropertyValues(companyId,
115 key);
116
117 return com.liferay.portlet.asset.model.AssetCategoryPropertySoap.toSoapModels(returnValue);
118 }
119 catch (Exception e) {
120 _log.error(e, e);
121
122 throw new RemoteException(e.getMessage());
123 }
124 }
125
126 public static com.liferay.portlet.asset.model.AssetCategoryPropertySoap updateCategoryProperty(
127 long categoryPropertyId, java.lang.String key, java.lang.String value)
128 throws RemoteException {
129 try {
130 com.liferay.portlet.asset.model.AssetCategoryProperty returnValue = AssetCategoryPropertyServiceUtil.updateCategoryProperty(categoryPropertyId,
131 key, value);
132
133 return com.liferay.portlet.asset.model.AssetCategoryPropertySoap.toSoapModel(returnValue);
134 }
135 catch (Exception e) {
136 _log.error(e, e);
137
138 throw new RemoteException(e.getMessage());
139 }
140 }
141
142 private static Log _log = LogFactoryUtil.getLog(AssetCategoryPropertyServiceSoap.class);
143 }