예제 #1
0
  /**
   * Deletes the asset tag property with the specified ID.
   *
   * @param tagPropertyId the primary key of the asset tag property instance
   * @throws PortalException if an asset tag property with the primary key could not be found or if
   *     the user did not have permission to update the asset tag property
   * @throws SystemException if a system exception occurred
   */
  public static void deleteTagProperty(long tagPropertyId) throws RemoteException {
    try {
      AssetTagPropertyServiceUtil.deleteTagProperty(tagPropertyId);
    } catch (Exception e) {
      _log.error(e, e);

      throw new RemoteException(e.getMessage());
    }
  }
예제 #2
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());
    }
  }
예제 #3
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());
    }
  }