Beispiel #1
0
  /**
   * Adds an asset tag property.
   *
   * @param tagId the primary key of the tag
   * @param key the key to be associated to the value
   * @param value the value to which the key will refer
   * @return the created asset tag property
   * @throws PortalException if the user did not have permission to update the asset tag, or if the
   *     key or value were invalid
   * @throws SystemException if a system exception occurred
   */
  public static com.liferay.portlet.asset.model.AssetTagPropertySoap addTagProperty(
      long tagId, java.lang.String key, java.lang.String value) throws RemoteException {
    try {
      com.liferay.portlet.asset.model.AssetTagProperty returnValue =
          AssetTagPropertyServiceUtil.addTagProperty(tagId, key, value);

      return com.liferay.portlet.asset.model.AssetTagPropertySoap.toSoapModel(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
Beispiel #2
0
  /**
   * Returns asset tag properties with the specified group and key.
   *
   * @param companyId the primary key of the company
   * @param key the key that refers to some value
   * @return the matching asset tag properties
   * @throws SystemException if a system exception occurred
   */
  public static com.liferay.portlet.asset.model.AssetTagPropertySoap[] getTagPropertyValues(
      long companyId, java.lang.String key) throws RemoteException {
    try {
      java.util.List<com.liferay.portlet.asset.model.AssetTagProperty> returnValue =
          AssetTagPropertyServiceUtil.getTagPropertyValues(companyId, key);

      return com.liferay.portlet.asset.model.AssetTagPropertySoap.toSoapModels(returnValue);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }